GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — bdk-python-OLD/setup.py at master · bitcoindevkit/bdk-python-OLD
This repository was archived by the owner on Aug 21, 2025. It is now read-only.
Expand file tree/ Copy pathsetup.pyMore file actions 73 lines (60 loc) · 1.92 KB / Copy pathsetup.pyFile metadata and controls73 lines (60 loc) · 1.92 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 #!/usr/bin/env python import os from setuptools import setup from setuptools_rust import Binding, RustExtension LONG_DESCRIPTION = """# bdkpython The Python language bindings for the [Bitcoin Dev Kit](https://github.com/bitcoindevkit). ## Install the package ```shell pip install bdkpython ``` ## Simple example ```python import bdkpython as bdk descriptor = "wpkh(tprv8ZgxMBicQKsPcx5nBGsR63Pe8KnRUqmbJNENAfGftF3yuXoMMoVJJcYeUw5eVkm9WBPjWYt6HMWYJNesB5HaNVBaFc1M6dRjWSYnmewUMYy/84h/0h/0h/0/*)" db_config = bdk.DatabaseConfig.MEMORY() blockchain_config = bdk.BlockchainConfig.ELECTRUM( bdk.ElectrumConfig( "ssl://electrum.blockstream.info:60002", None, 5, None, 100 ) ) blockchain = bdk.Blockchain(blockchain_config) wallet = bdk.Wallet( descriptor=descriptor, change_descriptor=None, network=bdk.Network.TESTNET, database_config=db_config, ) # print new receive address address_info = wallet.get_address(bdk.AddressIndex.LAST_UNUSED) address = address_info.address index = address_info.index print(f"New BIP84 testnet address: {address} at index {index}") # print wallet balance wallet.sync(blockchain, None) balance = wallet.get_balance() print(f"Wallet balance is: {balance.total}") """ rust_ext = RustExtension( target="bdkpython.bdkffi", path="./bdk-ffi/Cargo.toml", binding=Binding.NoBinding, ) setup( name='bdkpython', version='0.6.0.dev0', description="The Python language bindings for the Bitcoin Development Kit", long_description=LONG_DESCRIPTION, long_description_content_type='text/markdown', rust_extensions=[rust_ext], zip_safe=False, packages=['bdkpython'], package_dir={'bdkpython': './src/bdkpython'}, url="https://github.com/bitcoindevkit/bdk-python", license="MIT or Apache 2.0", ) |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |