Skip to main content

Currency Converter Lite

A lightweight, offline-ready Python library for currency conversion with support for caching exchange rates.

Features

  • Convert between any two currencies using Yahoo or Google Finance.
  • Caches exchange rates for offline use.
  • Simple and easy-to-use API.

Installation

Install the library using pip:

pip install currency-converter-lite

Usage

from currency_converter.converter import CurrencyConverter

Initialize converter

# using Yahoo finance

converter = CurrencyConverter(use_yahoo=True)
# using Google finance

converter = CurrencyConverter(use_yahoo=False)

Convert 100 USD to EUR

amount_in_eur = converter.convert(100, "USD", "EUR")
print(f"100 USD is {amount_in_eur} EUR")

License

This project is licensed under the MIT License.

Copyright (c) 2024 Ameer Adeigbe

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: ...

Metadata

Release files for currency-converter-lite 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for currency-converter-lite 0.1.0
File Size Uploaded Provenance Actions
currency_converter_lite-0.1.0.tar.gz 4.0 kB Without provenance Details for currency_converter_lite-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for currency-converter-lite 0.1.0
File Interpreter ABI Platform Actions
currency_converter_lite-0.1.0-py3-none-any.whl Python 3 none any Details for currency_converter_lite-0.1.0-py3-none-any.whl

Total release size: 7.7 kB

Release files / currency_converter_lite-0.1.0.tar.gz

Download URL currency_converter_lite-0.1.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ddda0bb1382210658eea9feb1bf87de6a9803b36efe4c26f30318ae5afbe042b
BLAKE2b-256 checksum
How to use checksums
f60498b076b0daa87114d4728c693fa29647b20d758cdc042796d5a878c20e3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.3

Release files / currency_converter_lite-0.1.0-py3-none-any.whl

Download URL currency_converter_lite-0.1.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f193d83b14a5ad70cc36f80085e28a43c23d1f639c1cd56a5acd2b080c7bc93
BLAKE2b-256 checksum
How to use checksums
cf33eba6d73e2dc73a5446525cf4123aa8141643cdfb7f199b74f147fae981ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.3

Security for currency-converter-lite 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page