Magic Flow Python SDK
A comprehensive Python SDK for building applications that interact with the Flow blockchain network. This SDK provides a complete set of tools for developers to query, transact, and build on Flow.
Features
- 🔗 Complete Flow Integration - Full support for Flow blockchain operations
- 🚀 Async/Await Support - Modern Python async programming patterns
- 🔐 Advanced Signing - Support for complex transaction signing scenarios
- 📊 Query Capabilities - Query blocks, accounts, events, and transactions
- 🛠️ Script Execution - Execute Cadence scripts on the Flow network
- 🏗️ Account Management - Create and manage Flow accounts
- 📝 Contract Deployment - Deploy, update, and manage smart contracts
- 🧪 Emulator Compatible - Works with Flow Emulator for local development
Quick Start
Installation
Requires Python 3.10 or higher.
pip install magic-flow
Or with Poetry:
poetry add magic-flow
Basic Usage
import asyncio
from magic_flow.client import flow_client
async def main():
async with flow_client(host="127.0.0.1", port=3569) as client:
# Get the latest block
block = await client.get_latest_block()
print(f"Latest block height: {block.height}")
# Get account information
account = await client.get_account(address="0x01")
print(f"Account balance: {account.balance}")
if __name__ == "__main__":
asyncio.run(main())
Documentation
- 📖 Complete Guide - Comprehensive documentation
- 🔧 API Reference - Detailed API documentation
- 💡 Examples - Code examples and tutorials
Development
This SDK is fully compatible with the Flow Emulator and can be used for local development.
Requirements
- Python 3.10+
- Flow Emulator (for local development)
Contributing
We welcome contributions! Please see our Contributing Guide for details.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributors
Made with contrib.rocks.
Metadata
Release files for magic-flow 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| magic_flow-0.1.11.tar.gz | 36.2 kB | Without provenance | Details for magic_flow-0.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| magic_flow-0.1.11-py3-none-any.whl | Python 3 | none | any | Details for magic_flow-0.1.11-py3-none-any.whl |
Total release size: 87.4 kB
Release files / magic_flow-0.1.11.tar.gz
| Download URL | magic_flow-0.1.11.tar.gz |
|---|---|
| Size | 36.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6dec075952cb532ef771e58358e52ce91a0c8338a0aa3d6940c3766791aae996
|
|
BLAKE2b-256 checksum How to use checksums |
019bebbcc9d8357aa8d5e7e79da70f74f7fe64b04aaedc46c95e4fe6256b47fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.7 Darwin/25.0.0
|
Release files / magic_flow-0.1.11-py3-none-any.whl
| Download URL | magic_flow-0.1.11-py3-none-any.whl |
|---|---|
| Size | 51.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05d9722c31592743fcee8c1c3b4d64b5f07f00d492e698d6589a86320745b055
|
|
BLAKE2b-256 checksum How to use checksums |
8960e64828c1d5a82558e832f2fbf399a83ea65ccbbcba30e00693dc23072947
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.7 Darwin/25.0.0
|
Security for magic-flow 0.1.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.