bit

Bitcoin made easy.

https://github.com/ofek/bit

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.5%) to scientific vocabulary

Keywords

bitcoin cryptocurrencies libraries payments python

Keywords from Contributors

version
Last synced: 6 months ago · JSON representation

Repository

Bitcoin made easy.

Basic Info
  • Host: GitHub
  • Owner: ofek
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage: https://ofek.dev/bit/
  • Size: 1.18 MB
Statistics
  • Stars: 1,299
  • Watchers: 44
  • Forks: 221
  • Open Issues: 64
  • Releases: 0
Topics
bitcoin cryptocurrencies libraries payments python
Created over 9 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog License Authors

README.rst

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 `_
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 `_ and
`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 ``_.

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 ``_
- `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

Owner

  • Name: Ofek Lev
  • Login: ofek
  • Kind: user
  • Location: Knowhere
  • Company: @datadog

I like developing beautiful APIs.

GitHub Events

Total
  • Issues event: 5
  • Watch event: 67
  • Issue comment event: 4
  • Pull request event: 7
  • Fork event: 13
Last Year
  • Issues event: 5
  • Watch event: 67
  • Issue comment event: 4
  • Pull request event: 7
  • Fork event: 13

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 343
  • Total Committers: 17
  • Avg Commits per committer: 20.176
  • Development Distribution Score (DDS): 0.35
Past Year
  • Commits: 1
  • Committers: 1
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
ofek o****r@g****m 223
Bjarne Magnussen b****n@g****m 87
Teran McKinney s****1@g****g 6
Teran McKinney t****y 5
Philipp Sippl p****l@g****m 4
pedr0-fr p****2@g****m 4
Bjarne Magnussen b****n@t****m 3
ChristianOConnor 4****r 2
Qxe5 8****5 1
Nathan Lim 4****0 1
Max 9****k 1
Martín Gaitán g****n@g****m 1
GauthamramRavichandran 3****n 1
Yarob Al-Taay e****t@g****m 1
b-kelly b****y 1
chikko80 5****0 1
visveshkhanna 7****a 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 83
  • Total pull requests: 37
  • Average time to close issues: 2 months
  • Average time to close pull requests: 14 days
  • Total issue authors: 60
  • Total pull request authors: 22
  • Average comments per issue: 2.93
  • Average comments per pull request: 3.03
  • Merged pull requests: 21
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 4
  • Pull requests: 7
  • Average time to close issues: 2 days
  • Average time to close pull requests: about 1 hour
  • Issue authors: 4
  • Pull request authors: 4
  • Average comments per issue: 0.25
  • Average comments per pull request: 0.43
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • Th0rgal (6)
  • deliugard (5)
  • voxcdr (4)
  • afeezaziz (3)
  • OSoup (3)
  • 7hacker (2)
  • cibermosso (2)
  • ghost (2)
  • enty8080 (2)
  • ChristianOConnor (2)
  • EazyServer (2)
  • pedr0-fr (2)
  • joemarct (1)
  • apparao-aremanda1 (1)
  • arepadeperemi (1)
Pull Request Authors
  • bjarnemagnussen (8)
  • pedr0-fr (6)
  • ijunxyz123 (5)
  • paulocoutinhox (2)
  • DillerDurak (2)
  • ebonnal (2)
  • kyurais (2)
  • EazyServer (1)
  • NateNate60 (1)
  • philsippl (1)
  • ManFromSiberia (1)
  • dollarparity (1)
  • alteralt (1)
  • GauthamramRavichandran (1)
  • brunneis (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 19,921 last-month
  • Total dependent packages: 6
    (may contain duplicates)
  • Total dependent repositories: 62
    (may contain duplicates)
  • Total versions: 28
  • Total maintainers: 3
pypi.org: bit

Bitcoin made easy.

  • Versions: 19
  • Dependent Packages: 6
  • Dependent Repositories: 61
  • Downloads: 19,907 Last month
Rankings
Downloads: 1.7%
Dependent repos count: 1.9%
Stargazers count: 1.9%
Average: 2.3%
Dependent packages count: 2.3%
Forks count: 3.7%
Maintainers (1)
Last synced: 7 months ago
pypi.org: ufobit

UFO made easy.

  • Versions: 9
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 14 Last month
Rankings
Stargazers count: 1.9%
Forks count: 3.7%
Dependent packages count: 10.0%
Average: 13.7%
Dependent repos count: 21.8%
Downloads: 31.2%
Maintainers (2)
Last synced: 6 months ago

Dependencies

pyproject.toml pypi
setup.py pypi