UFO made easy.
Project description
UFOBit is Python’s fastest Uniform Fiscal Object library and was designed from the beginning to feel intuitive, be effortless to use, and have readable source code. It is heavily inspired by Requests and Keras. Based on Ofek’s Bit code.
UFOBit is so easy to use, in fact, you can do this:
>>> from ufobit import Key
>>>
>>> my_key = Key(...)
>>> my_key.get_balance('ufo')
'378.623'
>>>
>>> outputs = [
>>> ('Bz9rtnrFgjEC6Tv6CWpHz8EYFwJJJnwwjq', 25, 'ufo'),
>>> ('Bu6rsw6ineEDUuH1Ph5CRzVqTt7s3skgDq', 50, 'satoshi'),
>>> ('C5urCiXUyAnsrnKf7RaB2oBpdKxo51Vkpc', 0.02, 'usd'),
>>> ('CFhf3Pk3T3MhFvAidRZJ9cxkJ8DurLYmo1', 1, 'rub'),
>>> ]
>>>
>>> my_key.send(outputs)
'cfecc199a5c6e6bc24610366e8eda36571162e9e3f7c419f0b6095c257acc5fc'
Here is the transaction https://chainz.cryptoid.info/ufo/tx.dws?1576204.htm.
Features
Python’s fastest available implementation (100x faster than closest library)
Seamless integration with existing server setups
Supports keys in cold storage
Fully supports 25 different currencies
First class support for storing data in the blockchain
Deterministic signatures via RFC 6979
Access to the blockchain through multiple APIs for redundancy
Exchange rate API, with optional caching
Optimal transaction fee API, with optional caching
Compressed public keys by default
Multiple representations of private keys; WIF, PEM, DER, etc.
Standard P2PKH transactions
If you are intrigued, continue reading. If not, continue all the same!
Installation
Bit is distributed on PyPI as a universal wheel and is available on Linux/macOS and Windows and supports Python 3.5+ and PyPy3.5-v5.7.1+. pip >= 8.1.2 is required.
$ pip install ufobit
Documentation
Docs are hosted by Github Pages and are automatically built and published by Travis after every successful commit to UFOBit’s master branch.
Credits
Logo courtesy of https://textcraft.net
Gregory Maxwell (Bitcoin core dev) for teaching me a bit of ECC math
arubi in #bitcoin for helping me understand transaction gotchas
fuzeman for bestowing me the name bit on the Python Package Index
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
File details
Details for the file ufobit-0.4.4.tar.gz
.
File metadata
- Download URL: ufobit-0.4.4.tar.gz
- Upload date:
- Size: 26.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 427c0f9591729e79f35e44ee949285bf8c6c213389ece9e53cccf2664a0a274a |
|
MD5 | f43b0fcefa9b1e0d36d73b106afd9360 |
|
BLAKE2b-256 | ebfde7b78915bccbfbee4cdf6c3a41575c76db709aa74a3b88daefd2930c7496 |