Reference implementation for Bech32 and segwit addresses.
Since this implementation wasn't in a place that was easy to use for Python programmers I took it from from https://github.com/rustyrussell/lightning-payencode and published on GitHub and on PyPI.
pip install bech32
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size bech32-1.0.0-py3-none-any.whl (3.5 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size bech32-1.0.0.tar.gz (3.0 kB)||File type Source||Python version None||Upload date||Hashes View|