dollars-0.2.0
توضیحات
Converts everything to dollars using up to date rates for free
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dollars-0.2.0 |
| نام | dollars |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Lasse Schuirmann |
| ایمیل نویسنده | lasse.schuirmann@gmail.com |
| آدرس صفحه اصلی | http://github.com/aerupt/dollars |
| آدرس اینترنتی | https://pypi.org/project/dollars/ |
| مجوز | MIT |
$$$
===
Converts amounts of any (a lot!) currency to dollars.
This will use https://openexchangerates.org/ as a backend. It will cache
the rates for you and pull in the new values hourly so your data will
never be older than almost 2 hours in the worst case. For that, you will
be able to use the free plan.
This is how you use it:
::
$ pip install dollars
$ export OXR_APP_ID=... # Your freely achieved app id
$ ipython
In [1]: from dollars import dollar
In [2]: dollar('EUR', 5)
Out[2]: 5.271147845154761
Stop worrying, start converting!
نیازمندی
| مقدار | نام |
|---|---|
| ~=2.13.0 | requests |
نحوه نصب
نصب پکیج whl dollars-0.2.0:
pip install dollars-0.2.0.whl
نصب پکیج tar.gz dollars-0.2.0:
pip install dollars-0.2.0.tar.gz