GithubHelp home page GithubHelp logo

gokomer / exrates Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 20 KB

Exrates is a simple Python application to get exchange rates

License: MIT License

Python 100.00%
python exchange-rates exchange rates

exrates's Introduction

Exrates

Exrates is a simple Python application to get exchange rates from https://exchangeratesapi.io/

Installation

Exrates requires Python3 and depends on Requests library.

pip install exrates

Usage

usage: Exrates [-h] [-b BASE] [-c AMOUNT] [-i INTERVAL] [-a ALARM] [--version] symbols

positional arguments:
  symbols               Currencies seperated by comma

options:
  -h, --help            show this help message and exit
  -b BASE, --base BASE  Base currency (default: USD)
  -c AMOUNT, --amount AMOUNT
                        Amount (default: 1)
  -i INTERVAL, --interval INTERVAL
                        Alarm check interval in seconds (default: 1)
  -a ALARM, --alarm ALARM
                        Alarm value to check crossings (default: 0)
  --version             show program's version number and exit

Examples

Base currency is USD

# exrates try
Base currency is: USD
TRY 6.5815

You can set the amount with -c or --amount

# exrates try 164.5375
Base currency is: USD
TRY 164.5375

You can change base currency with -b option

# exrates try -b eur
Base currency is: EUR
TRY 5.8842199374

You can use multiple currencies by seperating them with a comma

# exrates try,cad
Base currency is: USD
CAD 1.5098
TRY 6.5815

You can use set alarm for a certain threshold and get notification

# exrates try -a 7.50 -i 5
Base currency is: USD
TRY 7.4204
Activated alarms: {'TRY': 7.6574}

exrates's People

Contributors

atakansarioglu avatar deepsource-autofix[bot] avatar deepsourcebot avatar gokomer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

atakansarioglu

exrates's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.