Skip to main content

Draham

screenshot

Installation

Getting started with draham is very simple. Just install the package via pip

pip install --user draham

Usage

Because draham pulls its data from the CoinMarketCap API, you will unfortuneraly need to create a developer account and generate an API KEY. The basic plan is free and affords you 10K calls per month.

draham requires a configuration file in the ini format. By default it will look for a .drahamrc file under your home directory.

Here's how it should look like

[auth]
api_key=your_api_key_without_quotes

other (optional) settings include symbols and currency.

[options]
; default symbols are: BTC,BCH,DASH,LTC,ETH,XMR,XRP,BNB
; symbols must be separated by a comma. Quotes are not allowed.
symbols=BTC,ETH,BCH

; default currency is: USD
currency=USD

Command line options

  • --tor - Use tor as a proxy before reaching the API
  • --detailed - Get a more detailed view of the prices (1h price change, 24h volume, total circulating supply)
  • --config - specify a path to a custom config file (default is $HOME/.drahamrc)

Currently, draham supports the following currencies:

  • 🇩🇿 Algerian Dinar (DZD)
  • 🇺🇸 US Dollar (USD)
  • 🇬🇧 British Pound (GBP)
  • 🇪🇺 Euro (EUR)
  • 🇦🇺 Australian Dollar (AUD)
  • 🇨🇦 Canadian Dollar (CAD)
  • 🇯🇵 Japanese Yen (JPY)

License

This project is distributed under the WTFPL public license.

Issues and Contributing

Contributions to draham are most welcome. If you encounter bugs, please report them via issues. You can of course submit fixes and new features via of merge requests.

If you fork this project on GitHub, I kindly ask you that you credit me as the original creator of the project.

Release files for draham 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for draham 1.0.1
File Size Uploaded
draham-1.0.1.tar.gz 5.5 kB Details

Release files / draham-1.0.1.tar.gz

Download URL draham-1.0.1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8e6ec8a902cba833b8fbd5d6b9054dcaf6b6c8cd5cb73bda4e605093eb0809a1
BLAKE2b-256 checksum
How to use checksums
f658eb6a518b656e150e514266fcb232be50f7ac18c1500f6b068f63d704f4bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page