Skip to main content

Simple program that shows the BTC price taken from the Money on Chain API Rest

Project description

Fancy BTC Price

Simple program that shows the BTC price taken from the Money on Chain API Rest

Refrences

Requirements

  • Python 3.6+

Installation

From the Python package index (PyPI)

Run:

$ pip3 install fancy-btc-price

From source

Download from Github

Standing inside the folder, run:

$ pip3 install -r requirements.txt

For install the dependencies and then run:

$ pip3 install .

Run

user@host:~$ fancy_btc_price
1₿=21685$
user@host:~$

More options

user@host:~$ fancy_btc_price --help
Usage: fancy_btc_price [OPTIONS]

  Simple program that shows the BTC price

  Taken from the Money on Chain API Rest (moneyonchain.com)

Options:
  -v, --verbose                Enables verbose mode
  --version                    Show version and exit
  -m, --max-age INTEGER RANGE  Max price age without showing a warning (in
                               minutes)  [default: 3; 1<=x<=120]
  -h, --help                   Show this message and exit.
user@host:~$

Why?

Mainly to be used by the Gnome Shell Extension Executor. This Gnome extension execute multiple shell commands periodically with separate intervals and display the output in gnome top bar.

screenshot

Fancy BTC Price was developed some time ago but due to the need to install a new desktop pc, it was published to simplify this task.

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

fancy_btc_price-0.1.1.tar.gz (15.8 kB view hashes)

Uploaded Source

Built Distribution

fancy_btc_price-0.1.1-py3-none-any.whl (16.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page