currency-converter

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Currency Converter

货币转换器

Convert between currencies with exchange rates and formatting.
借助汇率和格式设置功能在不同货币之间进行转换。

Features

功能特性

  • Exchange Rates: Convert between 150+ currencies
  • Historical Rates: Date-based conversions
  • Batch Conversion: Process multiple amounts
  • Currency Formatting: Locale-specific formatting
  • CSV Support: Convert currency columns
  • Rate Caching: Efficient API usage
  • 汇率转换:支持150+种货币之间的转换
  • 历史汇率:基于日期的转换
  • 批量转换:处理多笔金额
  • 货币格式化:特定区域设置的格式处理
  • CSV支持:转换货币列
  • 汇率缓存:高效使用API

CLI Usage

CLI 使用方法

bash
python currency_converter.py --amount 100 --from USD --to EUR
python currency_converter.py --file amounts.csv --from_col usd --to EUR --output converted.csv
bash
python currency_converter.py --amount 100 --from USD --to EUR
python currency_converter.py --file amounts.csv --from_col usd --to EUR --output converted.csv

Dependencies

依赖项

  • forex-python>=1.8
  • pandas>=2.0.0
  • forex-python>=1.8
  • pandas>=2.0.0