A simple and easy-to-use Python library for retrieving current currency exchange rates.
Project description
pycurrencychecker
A simple and easy-to-use Python library for retrieving current currency exchange rates. It uses free services to provide up-to-date data and requires API keys from https://exchangerate.host/.
Installation
You can install the library directly from PyPI using pip:
pip install pycurrencychecker
Usage
Below is a basic example of how to use the library:
from pycurrencychecker import CurrencyChecker
# Initialize the CurrencyChecker object
checker = CurrencyChecker(api_key="YOUR_API_KEY")
# Get the exchange rate from USD to EUR
rate = checker.get_exchange_rate("USD", "EUR")
print(f"Exchange rate from USD to EUR: {rate}")
Features
- Retrieve up-to-date exchange rates for multiple currencies.
- Support for over 150 global currencies.
- Easy integration with Python projects.
Requirements
- Python 3.7 or higher.
- A valid API key from ExchangeRate Host.
Contributions
Contributions are welcome! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a branch for your feature (
git checkout -b feature/new-feature). - Make your changes and commit them (
git commit -m 'Add new feature'). - Push to the branch (
git push origin feature/new-feature). - Open a Pull Request.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Contact
If you have questions or suggestions, feel free to open an issue in the repository or contact me directly.
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 pycurrencychecker-1.0.1.tar.gz.
File metadata
- Download URL: pycurrencychecker-1.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e0ab46f99639cbca75092514835d513035cc1d61d49a6e09996e25cc511b602
|
|
| MD5 |
3dd1bc072ad9eaded71ae58d60ed1ebb
|
|
| BLAKE2b-256 |
ba25bb2fdd98c4c346a14faa16b540113b2e2f01a441750e08c0f657807b546d
|
File details
Details for the file pycurrencychecker-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pycurrencychecker-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f88e3dc3c224507602c7e3145611a9525343416ac710bf7be7e398ecb3d67479
|
|
| MD5 |
86f16c035dd7b7525392fd2b7093c0ef
|
|
| BLAKE2b-256 |
6183a011e72f41f16471f6cec9333f22fdddeceee1b0c3aafb0f15b606c4f487
|