python3-currencyconverter

2024-05-17 22:37 UTC
  • Xyne

Metadata

Description: Module and command-line tool for currency conversion and rate retrieval.
Latest Version: 2021
Source Code: src/
Architecture:
  • any
Dependencies:
Build Dependencies:
  • python-setuptools
Arch Repositories:
  • [xyne-any]
  • [xyne-i686]
  • [xyne-x86_64]
AUR Page: python3-currencyconverter
Tags:

About

The module provides dynamic retrieval of current currency exchange rates with 5 minute caching of results by default.

The package includes a command-line tool named currency_converter that follows a simple input format for quick conversions.

Check the source code or currency_converter help message for information about the source of the rates, as it occasionally changes due to interface issues.

Example

$ currency_converter USD EUR 100 500 57.34
USD         EUR
--------    --------
100.0000     72.7834
500.0000    363.9170
 57.3400     41.7340

Currency Converter Help Message

$ currency_converter --help

usage: currency_converter [-h] [--ttl TTL]
                          <fromCurrency> <toCurrency> <amount> [<amount> ...]

Convert currencies using rates retrieved from
http://download.finance.yahoo.com/d/quotes.csv

positional arguments:
  <fromCurrency>
  <toCurrency>
  <amount>

options:
  -h, --help      show this help message and exit
  --ttl TTL       Cached data time-to-live, in seconds.

See http://finance.yahoo.com/currency-converter/ for currency codes.
Contact
echo xyne.archlinux.org | sed 's/\./@/'
Validation
XHTML 1.0 Strict CSS level 3 Atom 1.0