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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for bitbridge-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60b68f35800c15bf30fa118f76bf9255c4be03ec3d1db05942d7fb116878a447 |
|
MD5 | 24549b0800649fe186cc27929cf83ca4 |
|
BLAKE2b-256 | cfb0a05e2c63a2a0b63fa995caffa2ef829c18070db79a14db8f301b874b5f07 |