Skip to main content

A modern Python interface to the Bitcoin Core RPC, offering both synchronous and asynchronous support.

Project description

BitBridge 🌉

BitBridge offers a seamless Python interface to the Bitcoin Core RPC, simplifying interactions with the Bitcoin protocol. With support for both synchronous and asynchronous operations, BitBridge is perfectly suited for diverse applications - from web platforms and backend services to data analytics tools.

🌟 Features

  • Dual Mode Operations: Supports both synchronous and asynchronous operations, giving you the flexibility to choose based on your application's needs.

  • Modularity at Core: Designed with a modular architecture, BitBridge can easily be extended and integrated into a variety of systems.

  • Complete RPC Integration: Comprehensive coverage of all RPC methods offered by Bitcoin Core, ensuring you have everything you need for Bitcoin interactions in one place.

🚀 Installation

pip install BitBridge

🎯 Quick Start

Synchronous Mode:

from bitbridge import BitBridgeFacade, BitBridgeConfig

# Configure RPC server details
config = BitBridgeConfig(url="http://127.0.0.1:8332", username="your_username", password="your_password")
bridge = BitBridgeFacade(config)

def fetch_best_block():
    # Retrieve the best block hash
    best_block_hash = bridge.blockchain.get_best_block_hash()
    # Additional operations...

Asynchronous Mode:

from bitbridge import AsyncBitBridgeFacade, BitBridgeConfig

# Configure RPC server details
config = BitBridgeConfig(url="http://127.0.0.1:8332", username="your_username", password="your_password")
bridge = AsyncBitBridgeFacade(config)

async def fetch_best_block():
    # Retrieve the best block hash
    best_block_hash = await bridge.blockchain.get_best_block_hash()
    # Additional operations...

🛠 Status

🚧 Development Phase: Please note that BitBridge is still in its initial development phase. Some features might be experimental.

📜 License

BitBridge is open-sourced under the MIT License.

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

bitbridge-0.3.5.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

bitbridge-0.3.5-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file bitbridge-0.3.5.tar.gz.

File metadata

  • Download URL: bitbridge-0.3.5.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.8.2 CPython/3.11.5

File hashes

Hashes for bitbridge-0.3.5.tar.gz
Algorithm Hash digest
SHA256 e833322cc6d96bfa33f1a32c3bb90632bbe873ec54c458c802ec9975f6827216
MD5 a4ac0dd687321d80962fcc711452a8e0
BLAKE2b-256 1775dd666f767d285c007549cfbb5c2add2f297e3b8559b7b36c7524adff5b60

See more details on using hashes here.

File details

Details for the file bitbridge-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: bitbridge-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.8.2 CPython/3.11.5

File hashes

Hashes for bitbridge-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b410df7cd60060358239a5e231a4b365ed4397fba6e2ecf5dd3754b2a81eb6c7
MD5 2d4048c9742a6abded791f9fa5692f28
BLAKE2b-256 3f53e20c936e34b47f5d005fa54cb95c3cd389e7a71b4ba4772226f053318b93

See more details on using hashes here.

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