A small library for currency conversion
Project description
This library allows you to convert currencies at current rates using open APIs.
LIBRARIES USED:
- pandas
- openpyxl
- requests Install for the library to work correctly.
HOW TO USE:
-
To enable/disable debug messages, use: convcur.mngdebug = True (or False) (Messages are disabled by default)
-
To assign variables, use: manager.setp("name", value, "CURRENCY") Usage example: manager.setp("Laptop", 200, "USD")
-
To call a variable, use: convcur.manager.name.CURRENCY Usage example: print(manager.Laptop.USD)
200.0
- To convert a variable to a different currency, change the currency value in the existing variable to the desired one. Example: print(manager.Laptop.EUR)
173.24
- To force a currency.xlsx update, use force_update=True in CurrencyManager(). Example: manager = convcur.CurrencyManager(force_update=True)
EXAMPLE PROGRAM:
import convcur convcur.mngdebug = True manager = convcur.CurrencyManager() manager.setp("Laptop", 200, "USD") print(manager.Laptop.EUR)
IMPORTANT:
- Internet access is required to create/update currencies.xlsx. If you don't have currencies.xlsx created, you can use USD, EUR, JPY, GBP, and CNY (they won't update without internet access).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file convcur-0.1.0.tar.gz.
File metadata
- Download URL: convcur-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2da2cc36e9bc009298194eb283acf54eb47db1bc5967a1a2c468b741708f657
|
|
| MD5 |
62990675f831e866aaf6e79db8cb7f3e
|
|
| BLAKE2b-256 |
287b51407484262e2c13ca82e1e224baf9555a66bcaf4b02b0bfd440cb265357
|
File details
Details for the file convcur-0.1.0-py3-none-any.whl.
File metadata
- Download URL: convcur-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15e24c0ea83bf0ff2a1189fa2bb5c65246fabcd02d70df2d661bfa098ba92f25
|
|
| MD5 |
7a998b6c846bcfde599912a7c8e7e479
|
|
| BLAKE2b-256 |
eab9814b6f7fde099d99834bc870fed6870bbf137e980de56dea17d615bb7634
|