<p>Actually python library <a href="https://github.com/richardkiss/pycoin" rel="nofollow noreferrer">pycoin</a> seems to be sufficient for both testnet and mainnet address. I had just missed it the first time I checked the library.</p>

<p>It also provides a powerful command line tool.</p>

CC BY-SA 3.0
2016-12-13T12:12:26.727Z
2016-12-13T12:12:26.727Z
karask
<p>Also excellent commentary about pycoin on Richard Kiss's Blog <a href="http://blog.richardkiss.com/?p=313" rel="nofollow noreferrer">On BIP0032 and Bitcoin Deterministic Wallets</a></p>

<p>Then also there is Vitalik Buterin's <a href="https://github.com/vbuterin/pybitcointools" rel="nofollow noreferrer">Pybitcointools</a></p>

<p>Where these commands exist:</p>

<pre><code>    bip32_master_key : (seed) -&gt; bip32 master key
    bip32_ckd : (private or public bip32 key, i) -&gt; child key
    bip32_privtopub : (private bip32 key) -&gt; public bip32 key
    bip32_extract_key : (private or public bip32_key) -&gt; privkey or pubkey
</code></pre>

CC BY-SA 3.0
2017-02-11T17:49:13.423Z
2017-02-11T17:49:13.423Z
xordaniel
<p>There is also the 21 Bitcoin Library
<a href="https://21.co/learn/#reference-21-library" rel="nofollow noreferrer">https://21.co/learn/#reference-21-library</a></p>

CC BY-SA 3.0
2017-02-11T13:53:49.160Z
2017-02-11T13:53:49.160Z
grajsek
<p>I require a library that I can create (and later import) a HD master key, which I will use to generate hundreds of addresses for both testnet and mainnet!</p>

<p>Ideally, I need a python library (but had trouble of finding a good library for both testnet and mainnet addresses.</p>

<p>An example of how to create testnet addresses would be greatly appreciated (default functionality seems to be for mainnet, e.g. pybitcointools)</p>

<p>Good libraries for other languages are also very welcome!</p>

<testnet><python><bip32-hd-wallets><library>
Library for generating HD keys/addresses (ideally for python)
karask
# Library for generating HD keys/addresses (ideally for python)

(Asked by: username_0 on 2016-12-12)

I require a library that I can create (and later import) a HD master key, which I will use to generate hundreds of addresses for both testnet and mainnet!

Ideally, I need a python library (but had trouble of finding a good library for both testnet and mainnet addresses.

An example of how to create testnet addresses would be greatly appreciated (default functionality seems to be for mainnet, e.g. pybitcointools)

Good libraries for other languages are also very welcome!

**Tags:** testnet, python, bip32-hd-wallets, library


---

## 3 answers

### Answer by username_0 on 2016-12-13. Score: 3

Actually python library [pycoin](https://github.com/richardkiss/pycoin) seems to be sufficient for both testnet and mainnet address. I had just missed it the first time I checked the library.

It also provides a powerful command line tool.


---

### Answer by username_1 on 2017-02-11. Score: 1

Also excellent commentary about pycoin on Richard Kiss's Blog [On BIP0032 and Bitcoin Deterministic Wallets](http://blog.richardkiss.com/?p=313)

Then also there is Vitalik Buterin's [Pybitcointools](https://github.com/vbuterin/pybitcointools)

Where these commands exist:

```
    bip32_master_key : (seed) -> bip32 master key
    bip32_ckd : (private or public bip32 key, i) -> child key
    bip32_privtopub : (private bip32 key) -> public bip32 key
    bip32_extract_key : (private or public bip32_key) -> privkey or pubkey

```


---

### Answer by username_2 on 2017-02-11. Score: 0

There is also the 21 Bitcoin Library
<https://21.co/learn/#reference-21-library>


---

