A powerful suite of tools that harnesses the full potential of Python on Neo N3.
Developers worldwide have embraced Python because of the versatility and wide range of applications it offers. Python’s flexibility makes it a go-to language for building everything from web applications to machine learning models. COZ created the NeoPython Suite to provide you with a seamless Python experience on NeoN3.
One of the most mature Python-based development solutions for smart contracts in the blockchain industry.
BOA offers quick and easy smart contract development, with a full-featured pythonic approach to get you up and running in under 30 minutes. Our user-friendly interface and detailed documentation make it easy for even the most novice developer to dive in and start building a project right away. Say goodbye to the headaches and delays of traditional smart contract development, and say hello to BOA!
1pip install neo3-boa
2
3-----------foobar.py---------------
4from boa3.builtin.compile_time import NeoMetadata, public, metadata
5
6@metadata
7def manifest_metadata() -> NeoMetadata:
8 """
9 A demo smart contract
10 """
11 meta = NeoMetadata()
12 meta.author = "COZ, Inc."
13 meta.description = "A very simple smart contract."
14 meta.email = "[email protected]"
15 meta.supported_standards = []
16 return meta
17
18@public
19def foo() -> str:
20 """
21 Gets the JSON formatted collection
22 :param collection_id: The byte formatted collection_id
23 :return: A dictionary representing the collection
24 """
25 return "bar"
26--------------------------------
27
28neo3-boa compile foobar.py
29
Features
Quick prototyping
Quickly prototype, deploy, and test Python contracts with VSCode plugin support through the Neo Debugger Toolkit.
Integration
Integrate your smart contract build and test process into your automated pipeline for an unrestrained dApp.
360 Support
Extensive contract examples and documentation ensure a quick start and successful project execution.
Flexible
Get Python contracts compiled to .nef and .manifest.json formats, allowing usage in the NeoVM.
The ultimate solution for trouble-free interaction using Python with the Neo blockchain.
Meet Mamba, the powerful tool that removes the complexity of building data structures to interact with smart contracts and modify the blockchain's state. Whether you prefer to handcraft transactions or execute instructions through the virtual machine, Mamba offers a smooth experience tailored to your needs. Find out for yourself how Mamba streamlines the process of blockchain interaction like never before.
1pip install neo-mamba
2
3--------------------------------
4import asyncio
5from neo3.api.wrappers import ChainFacade, NeoToken
6
7
8async def main():
9 facade = ChainFacade.node_provider_mainnet()
10 neo = NeoToken()
11 print(
12 await facade.test_invoke(neo.balance_of("Nbsphyrdyz8ufeWKkNR1MUH2fuLABmqtqU"))
13 )
14
15
16if __name__ == "__main__":
17 asyncio.run(main())
18
Features
Simple N3 Access
Simplified access to Neo3 blockchain with documented, typed, and tested building blocks to minimize the entry barrier.
IDE Support
Reliable IDE support by cross-checking with C# reference code.