Skip to content

Python Module To Get The LBP And Sayrafa Exchange Rate (Live)

Notifications You must be signed in to change notification settings

Mahmoud7Osman/AddeDollarApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

It's 2 AM, I Got The Inspiration To Create Something Like This I Don't Even
 Know Why I Wrote This Module, Anyway it took me 4 Minutes, But Deployment took 30 mins cuz i forgot the password, anyway, i hope that Lebanon will recover, Adda w 2Doud <3 

Live Lira Price and Sayrafa Price

This is a simple Python module to get the current Lira price and Sayrafa price in USD

Installation

To install the required packages, run the following command:

pip3 install -r requirements.txt

Usage

To run the example, execute the following command:

python3 lebanese.py

To use the module in your own Python application, import the addedollar module:

import addedollar

You can then use the following functions:

  • addedollar.price() - returns the current Lira price in USD
  • addedollar.sayrafa() - returns the current Sayrafa price in USD
  • addedollar.update() - updates dollar/sayrafa prices, recommended to run it every 10 minutes
  • addedollar.json() - returns a JSON object containing both prices

Integration

You can integrate this module into your own applications by importing the addedollar module and using the functions as described above.

About

Python Module To Get The LBP And Sayrafa Exchange Rate (Live)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages