<p>Take a look at Peter Todd's <a href="https://github.com/petertodd/python-bitcoinlib" rel="nofollow noreferrer">python-bitcoinlib</a>.</p>

<p>From the github repo:</p>

<blockquote>
  <p>This Python2/3 library provides an easy interface to the bitcoin data structures and protocol. The approach is low-level and "ground up", with a focus on providing tools to manipulate the internals of how Bitcoin works.</p>
</blockquote>

CC BY-SA 3.0
2017-11-13T18:22:51.723Z
2017-11-13T18:22:51.723Z
0xb10c
<p>Check-out the node-directory <a href="https://github.com/alexanderjsingleton/crypto-cuck-coin" rel="nofollow noreferrer">within my Github repo</a> experimenting with a scalable cryptocurrency.</p>

CC BY-SA 3.0
2017-11-13T17:24:09.250Z
2017-11-13T17:24:09.250Z
alexanderjsingleton
<p>Take a look at <a href="https://pybtc.readthedocs.io" rel="nofollow noreferrer">https://pybtc.readthedocs.io</a> , pybtc python bitcoin library </p>

CC BY-SA 4.0
2018-07-05T07:41:33.877Z
2018-07-05T07:41:33.877Z
bitaps.com
<p>I need a good library for bitcoin and other BTC-like cryptocurrencies in python.
I'm looking for something similar to <a href="https://github.com/bitcoinjs/bitcoinjs-lib" rel="nofollow noreferrer">bitcoinjs</a> but in python. <br>
Minimal requirements: </p>

<ul>
<li>generate an EC keypair and get public address from the public key</li>
<li>generate an EC keypair and compress it to WIF format.</li>
<li>get an EC keypair from WIF</li>
<li>generate a number of EC keypairs (a HD wallet) from a given seed</li>
<li>build a transaction </li>
<li>broadcast transaction</li>
</ul>

<p>If you know any good cryptocurrency libraries let me know!</p>

<python><library>
Bitcoin library in python
dnnagy
# Bitcoin library in python

(Asked by: username_0 on 2017-11-13)

I need a good library for bitcoin and other BTC-like cryptocurrencies in python.
I'm looking for something similar to [bitcoinjs](https://github.com/bitcoinjs/bitcoinjs-lib) but in python.   
Minimal requirements:

* generate an EC keypair and get public address from the public key
* generate an EC keypair and compress it to WIF format.
* get an EC keypair from WIF
* generate a number of EC keypairs (a HD wallet) from a given seed
* build a transaction
* broadcast transaction

If you know any good cryptocurrency libraries let me know!

**Tags:** python, library


---

## 3 answers

### Answer by username_1 on 2017-11-13. Score: 2

Take a look at Peter Todd's [python-bitcoinlib](https://github.com/petertodd/python-bitcoinlib).

From the github repo:

> This Python2/3 library provides an easy interface to the bitcoin data structures and protocol. The approach is low-level and "ground up", with a focus on providing tools to manipulate the internals of how Bitcoin works.


---

### Answer by username_2 on 2017-11-13. Score: 1

Check-out the node-directory [within my Github repo](https://github.com/username_2/crypto-cuck-coin) experimenting with a scalable cryptocurrency.


---

### Answer by username_3 on 2018-07-05. Score: 0

Take a look at <https://pybtc.readthedocs.io> , pybtc python bitcoin library


---

