All Projects → ofek → Bit

ofek / Bit

Licence: mit
Bitcoin made easy.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Bit

Cryptocurrency Robot
Open source telegram bot for cryptocurrencies.
Stars: ✭ 21 (-97.81%)
Mutual labels:  bitcoin, cryptocurrencies
Lnd
Lightning Network Daemon ⚡️
Stars: ✭ 5,623 (+486.95%)
Mutual labels:  bitcoin, payments
Profit Trailer Settings
Place to store and stay up to date with configs & strategies from the CryptoGnome Group
Stars: ✭ 335 (-65.03%)
Mutual labels:  bitcoin, cryptocurrencies
awesome-bitcoin-cash
Bitcoin Cash projects & resources
Stars: ✭ 28 (-97.08%)
Mutual labels:  payments, cryptocurrencies
Eclair
A scala implementation of the Lightning Network.
Stars: ✭ 892 (-6.89%)
Mutual labels:  bitcoin, payments
Crypto Rl
Deep Reinforcement Learning toolkit: record and replay cryptocurrency limit order book data & train a DDQN agent
Stars: ✭ 328 (-65.76%)
Mutual labels:  bitcoin, cryptocurrencies
Bitcoinlib
Bitcoin Core RPC compatible, battle-tested .NET library and RPC wrapper for Bitcoin and Altcoins
Stars: ✭ 350 (-63.47%)
Mutual labels:  bitcoin, cryptocurrencies
Bitcoin Chart Cli
Bitcoin chart for the terminal as command line util
Stars: ✭ 221 (-76.93%)
Mutual labels:  bitcoin, cryptocurrencies
Lightpay
Atomic swaps for the Lightning Payment Network
Stars: ✭ 17 (-98.23%)
Mutual labels:  bitcoin, payments
Blockchain
Compilation of useful documents and scientific papers about Blockchain & cryptocurrencies.
Stars: ✭ 751 (-21.61%)
Mutual labels:  bitcoin, cryptocurrencies
Coinapi Sdk
SDKs for CoinAPI
Stars: ✭ 238 (-75.16%)
Mutual labels:  bitcoin, cryptocurrencies
Lnbook
Mastering the Lightning Network (LN)
Stars: ✭ 931 (-2.82%)
Mutual labels:  bitcoin, payments
Eclair Mobile
An Android wallet for the Lightning Network
Stars: ✭ 231 (-75.89%)
Mutual labels:  bitcoin, payments
Ln Pay
A minimalistic payment only wallet for Lightning Network
Stars: ✭ 29 (-96.97%)
Mutual labels:  bitcoin, payments
Breezmobile
Lightning Network mobile client
Stars: ✭ 225 (-76.51%)
Mutual labels:  bitcoin, payments
Wolfbot
Crypto currency trading bot written in TypeScript for NodeJS
Stars: ✭ 335 (-65.03%)
Mutual labels:  bitcoin, cryptocurrencies
Socktrader
🚀 Websocket based trading bot for 💰cryptocurrencies 📈
Stars: ✭ 152 (-84.13%)
Mutual labels:  bitcoin, cryptocurrencies
Gekko Backtesttool
Batch backtest, import and strategy params optimalization for Gekko Trading Bot. With one command you will run any number of backtests.
Stars: ✭ 203 (-78.81%)
Mutual labels:  bitcoin, cryptocurrencies
Rotki
A portfolio tracking, analytics, accounting and tax reporting application that protects your privacy
Stars: ✭ 689 (-28.08%)
Mutual labels:  bitcoin, cryptocurrencies
Bitgosdk Php
BitGo SDK written in PHP
Stars: ✭ 22 (-97.7%)
Mutual labels:  bitcoin, payments

Bit: Bitcoin made easy.

.. image:: https://img.shields.io/pypi/v/bit.svg?style=flat-square :target: https://pypi.org/project/bit

.. image:: https://img.shields.io/travis/ofek/bit.svg?branch=master&style=flat-square :target: https://travis-ci.org/ofek/bit

.. image:: https://img.shields.io/codecov/c/github/ofek/bit.svg?style=flat-square :target: https://codecov.io/gh/ofek/bit

.. image:: https://img.shields.io/pypi/pyversions/bit.svg?style=flat-square :target: https://pypi.org/project/bit

.. image:: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square :target: https://en.wikipedia.org/wiki/MIT_License


Bit is Python's fastest <https://ofek.github.io/bit/guide/intro.html#why-bit>_ Bitcoin 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 <https://github.com/requests/requests>_ and Keras <https://github.com/keras-team/keras>_.

Bit is so easy to use, in fact, you can do this:

.. code-block:: python

>>> from bit import Key
>>>
>>> my_key = Key(...)
>>> my_key.get_balance('usd')
'12.51'
>>>
>>> # Let's donate!
>>> outputs = [
>>>     # Wikileaks
>>>     ('1HB5XMLmzFVj8ALj6mfBsbifRoD4miY36v', 0.0035, 'btc'),
>>>     # Internet Archive
>>>     ('1Archive1n2C579dMsAu3iC6tWzuQJz8dN', 190, 'jpy'),
>>>     # The Pirate Bay
>>>     ('129TQVAroeehD9fZpzK51NdZGQT4TqifbG', 3, 'eur'),
>>>     # xkcd
>>>     ('14Tr4HaKkKuC1Lmpr2YMAuYVZRWqAdRTcr', 2.5, 'cad')
>>> ]
>>>
>>> my_key.send(outputs)
'9f59f5c6757ec46fdc7440acbeb3920e614c8d1d247ac174eb6781b832710c1c'

Here is the transaction <https://blockchain.info/tx/9f59f5c6757ec46fdc7440acbeb3920e614c8d1d247ac174eb6781b832710c1c>_.

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 (and testnet chain) 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.
  • Legacy P2PKH and Segwit nested-P2WPKH transactions
  • Legacy P2SH and Segwit nested-P2WSH 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.

.. code-block:: bash

$ pip install bit

Documentation

Docs are hosted by Github Pages_ and are automatically built and published by Travis after every successful commit to Bit'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_

.. _PyPI: https://pypi.org/project/bit .. _hosted by Github Pages: https://ofek.github.io/bit .. _Gregory Maxwell: https://github.com/gmaxwell .. _ECC: https://en.wikipedia.org/wiki/Elliptic_curve_cryptography .. _arubi: https://github.com/fivepiece .. _fuzeman: https://github.com/fuzeman .. _Python Package Index: https://pypi.org

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].