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
This is a simple Python module to get the current Lira price and Sayrafa price in USD
To install the required packages, run the following command:
pip3 install -r requirements.txtTo run the example, execute the following command:
python3 lebanese.pyTo use the module in your own Python application, import the addedollar module:
import addedollarYou can then use the following functions:
addedollar.price()- returns the current Lira price in USDaddedollar.sayrafa()- returns the current Sayrafa price in USDaddedollar.update()- updates dollar/sayrafa prices, recommended to run it every 10 minutesaddedollar.json()- returns a JSON object containing both prices
You can integrate this module into your own applications by importing the addedollar module and using the functions as described above.