Skip to main content

A simple, yet secure Bitcoin utility library

Project description


oogway is a simple, yet secure Bitcoin utility library for Python.

Supported Versions Build License

>>> from oogway import Key
>>> key = Key(mnemonic_strength=256, passphrase="bitcoin")
>>> key.mnemonic
'hungry believe click napkin aerobic make skirt early vibrant suffer trumpet pupil prize ecology bleak citizen absent chief feed skin vast enter this female'
>>> key.wif # wif private key
>>> key.address("Bech32") # Bech32 (segwit) address
>>> key.pubkey("unc") # uncompressed public key

The library allows you to easily generate Bitcoin keypairs or create, sign and broadcast transactions. It can also do other things such as validate addresses (cryptographically) or safely convert and operate between bitcoin units. oogway also supports multisig.

oogway also has a built-in CLI to simplify some tasks:

$ oogway validate 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy 1BWJVUqZKbs6nXbsrh0boyjckqdoKIk5wa

[VALID | P2SH] 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2
[INVALID] 1BWJVUqZKbs6nXbsrh0boyjckqdoKIk5wa


$ pip install oogway


Read the library documentation at

The documentation is automatically updated after each commit to the master branch. Every pull request adding or modifying features must contain a documentation update (Markdown).

Docs are generated using VuePress. To run the docs locally, do:

$ cd docs/
$ npm install
$ npm run docs:dev


Add yourself to authors and make a pull request on a new branch. Update the documentation if necessary.


  • oogway is one of many Python Bitcoin libraries. It was heavily inspired by ofek/bit. oogway tries to focus on security while remaining simple and accessible.

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

oogway-0.7.1.tar.gz (45.9 kB view hashes)

Uploaded source

Built Distribution

oogway-0.7.1-py3-none-any.whl (57.5 kB view hashes)

Uploaded py3

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