Skip to main content

Manipulate satoshi-related prices in Python 3, simple and sweet.

Project description

> satoshi

Manipulate satoshi-related prices in Python 3, simple and sweet 💵 ₿🍬

Why complicate?

The idea behind this project is to provide Python programmers with a simple, light and intuitive package to manipulate satoshis.

This can be extremely useful on future/perpetual markets and crypto exchanges that don't automatically associate XBT balances to an USD value. With > satoshi you can use a single function to convert your satoshis to any fiat currency :)

No need to handle more requests and currency mangling in your code, simply use > satoshi and, therefore, CryptoCompare's open API.

Installation

pip install satoshi

Usage

include satoshi
satoshi.to_fiat(984223) # satoshi to usd
satoshi.to_fiat(18923, 'BRL') # satoshi to reais

Feel free to run example.py for a demo.

Notes

Project idealized while listening to this song.

Feel free to become a collaborator.

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

satoshi-0.1.4.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

satoshi-0.1.4-py3-none-any.whl (5.3 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