Expand description
Python bindings for IPFRS using PyO3
This module provides a Python-friendly API for IPFRS, enabling seamless integration with Python applications.
§Features
- Pythonic API design with snake_case naming
- Automatic type conversions
- Context manager support (
withstatements) - Async/await support
- Rich error messages
§Example
import ipfrs
# Create a client
client = ipfrs.Client()
# Add data
cid = client.add(b"Hello, IPFRS!")
print(f"CID: {cid}")
# Get data back
data = client.get(cid)
print(f"Data: {data.decode()}")
# Check if block exists
exists = client.has(cid)
print(f"Exists: {exists}")