Skip to main content

A library to fetch exchange rates between different currencies without requiring an API key.

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

Contributions

Contributions are welcome! If you'd like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a branch for your feature (git checkout -b feature/new-feature).
  3. Make your changes and commit them (git commit -m 'Add new feature').
  4. Push to the branch (git push origin feature/new-feature).
  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycurrencychecker-1.0.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycurrencychecker-1.0.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file pycurrencychecker-1.0.0.tar.gz.

File metadata

  • Download URL: pycurrencychecker-1.0.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for pycurrencychecker-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1e667c13fbc69c17db4a4874b6718adbd0a64471e913b205e55c7e08414a7088
MD5 fdd17fe9fe3894c9413dd827de03b842
BLAKE2b-256 002a93a5953de9a3bd61f4a4ef50a4f324fc371d69a1ee1a70a37dcc7ab70adb

See more details on using hashes here.

File details

Details for the file pycurrencychecker-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pycurrencychecker-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ffb04d5b8ffcbf9949f9bd32f4b2ff0c1babbb37b21b812ad2ff185280a13479
MD5 a15d6364f8e931700456190cc816a9a5
BLAKE2b-256 70380adb9743e432d7c6ecf6b77d45e758eb3af8b0111097b78fe0136d3f3328

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page