Skip to main content

Python SDK and CLI for building AI agents with onchain actions.

Project description

PyBitrum v1.0.0

PyBitrum is a state-of-the-art, high-fidelity Web3 IDE designed for the Arbitrum ecosystem. It enables developers to write smart contracts using a Pythonic syntax, which is automatically transformed into both Solidity and Vyper, compiled, and verified via a massive industrial-grade test suite.

🚀 Key Features

  • Dual-Compiler Pipeline: Write once in Python, compile simultaneously to Solidity and Vyper.
  • 100% Validation: Verified against 100 industrial-grade smart contracts (DeFi, Governance, NFTs).
  • Cloud-Synced Workspace: Persistent file storage and user profiles powered by Supabase.
  • Pitch Black UI: A premium, industrial-grade interface designed for maximum focus and aesthetics.
  • Integrated Terminal: Live logs, deployment feedback, and real-time compilation details.

📚 Documentation

For detailed technical information, please refer to the following:


🏗 Project Architecture

graph TD
    User((Developer)) -->|Writes Code| Frontend[Next.js Frontend]
    Frontend -->|Auth / Sync| Supabase[(Supabase Cloud)]
    Frontend -->|Compile Request| Backend[Node.js / Express Backend]
    Backend -->|Transform Logic| Compiler[Python / Flask Service]
    Compiler -->|Solidity Code| Backend
    Compiler -->|Vyper Code| Backend
    Backend -->|Compiled Artifacts| Frontend
    Frontend -->|Transaction| Arbitrum[Arbitrum Sepolia Testnet]

System Components

  1. Frontend (Next.js 15): The user interface, built with React and Tailwind CSS. Handles file management, authentication via GitHub, and wallet interactions.
  2. Backend (Node.js/Express): The orchestration layer. Manages API routes, user-scoped Supabase clients, and coordinates with the compiler service.
  3. Compiler Service (Python/Flask): The dual-engine that translates Pythonic syntax into valid Solidity and Vyper code using an AST-based transformer.
  4. Testing Suite (Python): A comprehensive suite of 100 contracts used to validate the compiler's output parity.

📂 Directory Structure

  • /frontend: Next.js web application.
  • /backend: Express.js API server.
  • /compiler: Python transformation and compilation service.
  • /deployment: Smart contract deployment scripts and configurations.
  • /docs: Detailed documentation and architecture guides.
  • /tests: The 100-contract industrial test suite.

🛠 Setup & Installation

1. Prerequisites

  • Node.js (v18+)
  • Python (v3.9+)
  • Solidity Compiler (solc)
  • Vyper Compiler (vyper 0.4.0+)

2. Quick Start

From the root directory:

# Install dependencies
npm install

# Start all services (Frontend, Backend, Compiler)
npm run dev

3. Running the Test Suite

# Activate compiler environment
cd compiler
source venv/bin/activate

# Run the 100-contract validation
python ../tests/runner.py

📜 License

MIT License - PyBitrum 1.0.0

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

pybitrum-1.0.0.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pybitrum-1.0.0-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file pybitrum-1.0.0.tar.gz.

File metadata

  • Download URL: pybitrum-1.0.0.tar.gz
  • Upload date:
  • Size: 26.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pybitrum-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f485acb7311ddbfe56a784ebfb4313c12a3e1a39938d135b8a1f1ff5906b69a3
MD5 3d0bd07a0bc633b1e360ea731066812f
BLAKE2b-256 fe21d7fa9513429d9f67f0dca7a79a06d088d0563d4795592586a7df5469c749

See more details on using hashes here.

File details

Details for the file pybitrum-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pybitrum-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 28.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pybitrum-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae4903594831cf86981f76dfd9a1f81b97851ee51a70d9f00e476da5e72ed5db
MD5 eca0849ee43edb2d146c59fa0505e56f
BLAKE2b-256 568b14bfdf042b738d0ec709db0b43d47c5ffecb1990784db6ec226adf162b40

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page