All Projects → anshulxyz → exch

anshulxyz / exch

Licence: MIT License
a command-line tool to see currency exchange rates

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to exch

cliar
Create modular Python CLIs with type annotations and inheritance
Stars: ✭ 47 (+135%)
Mutual labels:  commandline, click
jira-cli
🔥 [WIP] Feature-rich interactive Jira command line.
Stars: ✭ 809 (+3945%)
Mutual labels:  cli-app, terminal-app
cmdr
POSIX-compliant command-line UI (CLI) parser and Hierarchical-configuration operations
Stars: ✭ 94 (+370%)
Mutual labels:  commandline, cli-app
Utlyz-CLI
Let's you to access your FB account from the command line and returns various things number of unread notifications, messages or friend requests you have.
Stars: ✭ 30 (+50%)
Mutual labels:  click, cli-app
Nephos
Project Nephos [GSoC '18]: Automated recording, processing, and uploading of TV streams for Universities.
Stars: ✭ 20 (+0%)
Mutual labels:  click, cli-app
currency-converter
💰 Easily convert between 32 currencies
Stars: ✭ 16 (-20%)
Mutual labels:  currency, currency-exchange
Cobra
A Commander for modern Go CLI interactions
Stars: ✭ 24,437 (+122085%)
Mutual labels:  commandline, cli-app
oidc-agent
oidc-agent for managing OpenID Connect tokens on the command line
Stars: ✭ 47 (+135%)
Mutual labels:  commandline, cli-app
Manage
Command Line Manager + Interactive Shell for Python Projects
Stars: ✭ 111 (+455%)
Mutual labels:  commandline, click
Socli
Stack overflow command line client. Search and browse stack overflow without leaving the terminal 💻
Stars: ✭ 911 (+4455%)
Mutual labels:  commandline, terminal-app
Initior
A command line application that let's you initialize your new projects the right way, replaces npm and yarn's init 🎆
Stars: ✭ 17 (-15%)
Mutual labels:  cli-app, terminal-app
pyGinit
A simple github automation cli
Stars: ✭ 15 (-25%)
Mutual labels:  click, cli-app
Typon
A multi-featured typing practice tool that runs on a terminal emulator which can turn any text file into a typing game.
Stars: ✭ 53 (+165%)
Mutual labels:  cli-app, terminal-app
currency-api
Free Currency Exchange Rates API with 150+ Currencies & No Rate Limits
Stars: ✭ 507 (+2435%)
Mutual labels:  currency, currency-exchange
Ttyplot
a realtime plotting utility for terminal/console with data input from stdin
Stars: ✭ 532 (+2560%)
Mutual labels:  commandline, cli-app
dynamic-cli
A Modern, user-friendly command-line HTTP client for the API testing, and if you're stuck - Search and browse StackOverflow without leaving the CLI
Stars: ✭ 151 (+655%)
Mutual labels:  commandline, terminal-app
php-currency-api
Standardized wrapper for popular currency rate APIs. Currently supports FixerIO, CurrencyLayer, Open Exchange Rates and Exchange Rates API.
Stars: ✭ 17 (-15%)
Mutual labels:  currency, currency-exchange
malli-cli
Command-line interface from the comfort of a metosin/malli schema
Stars: ✭ 36 (+80%)
Mutual labels:  cli-app
py-spotme
A CLI tool that creates AWS spot instances on the fly
Stars: ✭ 16 (-20%)
Mutual labels:  commandline
Click-Counter-Bot
A telegram bot module for how to count total clicks on button.
Stars: ✭ 23 (+15%)
Mutual labels:  click

exch

travis CI stability badge python version supported badge code coverage percentage of the current build badge PyPI version of the app badge

An application to see the currency exchange rates right from your command-line.

Features:

  • offline support
  • default curreny
  • list the available currencies

Installation

$ pip install exch

basic usage

$ exch -a 99 -b USD -t INR
99.0 USD = 6372.61 INR

$ exch --amount 199 --base EUR --target JPY
199.0 EUR = 25613.29 JPY

Demo

asciicast

Commands

Short Long Description Example
-t --target Currency you're converting to. exch -t INR
-b --base Currency you're converting from. exch -b EUR
-a --amount Amount of money to convert exch -a 99
-st --set_target Set the new tagert currency exch -t CAD -st
-sb --set_base Set the new tagert currency exch -b USD -sb
--help Show help message. exch --help
currencies List the Currencies that are available. exch currencies
sync Get the latest exchange rates for local use exch sync

Advance usage

Default amount is 1

$ exch -b USD -t PHP
1.0 USD = 51.23 PHP

Default currencies

When no base or target given, the program assumes the default currencies.

$ exch
1.0 USD = 64.02 INR

Set the currency in use as default with -sb for base and -st for target.

$ exch -a 99 -b EUR -t NZD -sb -st
99.0 EUR = 168.00 NZD

$ exch
1.0 EUR = 1.70 NZD

Built with

Programming language

Libraries used:

  • Click - for making the command-line interface
  • Requests - for API calls

Contribution

For contribution, please refer CONTRIBUTING.md

Changlog

For changelog, please refer CHANGELOG.md

License

This project is licensed under the MIT License - see the LICENSE file for details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].