Getting currencies and differencies from CBAR
Project description
# Getting currencies and differencies from CBAR
- ## How to install
- Install pip package
` pip install Django-cbar-currency `
- Configure directory for file
In settings.py file set a directory ` CBAR_CURRENCY_ROOT = os.path.join(BASE_DIR, 'media', 'cbar') `
- ## How to import
` from cbar_currency import Currency `
- ## Functions
- Currency.cron_script()
This function gets currency list with their values, differences and right them to file
- Currency.get_list()
This function reads currency file and returns all currencies with their values and differencies as list
- Currency.get_specific_currencies(currencyList)
This function returns specific currencies list which you give You should give currency names as list, for example [‘USD’, ‘EUR’, ‘RUB’]
- Currency.get_currencies_by_priority(currencyList)
This function returns all currencies list but currencies which you give will stay at the top of the list You should give currency names as list, for example [‘USD’, ‘EUR’, ‘RUB’]
- Currency.get_list_from_cbar(date)
This function returns all currencies list without differencies for the specific date
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
File details
Details for the file cbar_currency-1.0.5.tar.gz
.
File metadata
- Download URL: cbar_currency-1.0.5.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27dc5cb957288669ee4629f7f427d90bdd8004b960b90216f749f8b7d69ab38b |
|
MD5 | a47d7bcc7bc23841d29e99a361b3f29a |
|
BLAKE2b-256 | 5984a388f93a8d53c41f797e4a31da8d9be61a5b4175b12045d781b7e59aca0c |