Skip to main content

A comprehensive currency conversion library with CLI

Project description

Currency Converter

A comprehensive Python library for currency conversion with real-time exchange rates and a user-friendly CLI.

Features

  • Real-time currency conversion
  • Support for multiple currencies
  • Caching of exchange rates
  • Fallback mechanism for rate fetching
  • Flexible formatting options
  • Command-line interface

Installation

pip install currency-converter-ext

Usage

As a Library

from currency_converter.main import CurrencyConverter

# Initialize converter
converter = CurrencyConverter()

# Convert currencies
result = converter.convert(100, 'USD', 'EUR')
print(result)  # Outputs converted amount

CLI Usage

# Launch the CLI
currency-converter

Requirements

  • Python 3.7+
  • requests library

License

MIT License

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

currency_converter_ext-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

currency_converter_ext-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file currency_converter_ext-0.1.0.tar.gz.

File metadata

  • Download URL: currency_converter_ext-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.6

File hashes

Hashes for currency_converter_ext-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1b5d7f953bfae5fad5a4fa64cff4ccad50236cfc9ad29be8b8387d1b5dd2eecc
MD5 df6b56f690184d33104293bf6b511add
BLAKE2b-256 5eed9d2a124438f3000d801823cd671151ba3c869a276a9f07935aa0a525749e

See more details on using hashes here.

File details

Details for the file currency_converter_ext-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for currency_converter_ext-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec82001dbfdd8da2017d1c42669ebefb81a071e82959c7d0e1cf10380038a76e
MD5 822c7cef41686fb4d8737a715acdea5e
BLAKE2b-256 07b9e435274729d3c083f0a910e6cc0341c66853021f21465c86220d48a8c246

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