Welcome to PYBGL

Python library for Bitgesell.

Current version is 3.0.

Key Features

  • Supports addresses types PUBKEY, P2PKH, P2SH, P2SH-PWPKH, P2WPKH, P2WSH.

  • Supports BIP32(Hierarchical Deterministic Wallets), BIP39(Mnemonic code generation)

  • Supports BIP141(Segregated Witness)

  • Transaction constructor

  • Mining pool basic primitives

Quick library Installation

$ git clone git://github.com/bitaps-com/pybgl
$ cd pybgl
$ python3 setup.py install

Getting Started

Usage example:

import pybgl
a = pybgl.Address()

What’s new in pybgl 3.0 ?

  • Mnemonic code generation (BIP39)

  • Hierarchical Deterministic Wallets (BIP32)

  • Wallet class implemented acording BIP44

  • Imporved transaction deserialization perfomance

  • Multisig transacton signing regardless of sequence

Source code

The project is hosted on GitHub

Please feel free to file an issue on the bug tracker if you have found a bug or have some suggestion in order to improve the library.


  • Python 3.3.3+

  • secp256k1

Authors and License

The pybgl package was initially written by Aleksey Karpov and development continues with contributors.

Recent contributors:

It’s GPL-3.0 licensed and freely available.

Feel free to improve this package and send a pull request to GitHub.