Mycelium — Python-first smart-contract + agent toolchain for Stellar/Soroban (one install: DSL, SDK, CLI, compiler). Install: pip install mycelium-stellar; import mycelium.
Project description
Mycelium
The Python-first framework for smart-contract development and agentic orchestration on Stellar/Soroban.
Installing mycelium gives you the whole toolchain in one shot:
import mycelium— the contract-authoring DSL (@contract,@external,@view, typed primitives) plus the SDK facade (AgentContext,HiveClient, x402).import mycelium_sdk— the on-chain agent SDK (signing, live Soroban contract calls, hive discovery, escrow/x402, AI adapters).- the
myceliumCLI command —init,newwallet,compile,check,deploy,register,agent. - the Python → Soroban-WASM compiler.
Install
pip install mycelium
# optional AI-framework adapters:
pip install "mycelium[langgraph]" # or [gemini] / [anthropic]
Quickstart
mycelium init my_agent
cd my_agent
mycelium newwallet
mycelium compile
mycelium deploy --network testnet
mycelium register
from mycelium import AgentContext, HiveClient
ctx = AgentContext(keypair_path=".mycelium/wallet.json", network_type="testnet")
hive = HiveClient(ctx)
hive.register("sentinel_alpha", ["data-analysis"], "https://sentinel.example/api")
print(hive.resolve_agent("sentinel_alpha"))
The mycelium compile / deploy commands need the stellar CLI (v27.0.0); the
compiler auto-downloads it on first use.
Licensed under MIT.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mycelium_stellar-0.1.0.tar.gz.
File metadata
- Download URL: mycelium_stellar-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f86c7c2e6ba4bdb76fe38eaa1aa534ade7349c5df1f21fa82f1393f824c6a1c
|
|
| MD5 |
4a43e01b6a1d9e7b0f66d510fd9076a8
|
|
| BLAKE2b-256 |
19af36b2e62c2f6470ecc04707a87675f3252e8a37c367046bde3d63e506ddb6
|
File details
Details for the file mycelium_stellar-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mycelium_stellar-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e75561f2596bedb78f4353eea5f5f180c94684723c8f6a9f7d05b32cefbbc320
|
|
| MD5 |
f5b5f1dc984b8bd3a117740445dd2877
|
|
| BLAKE2b-256 |
2d4bef674274f0674a020917503a2ac83c63ee1edcd408fa14fdedf6da165bce
|