Home

Awesome

Python2Noir

Generate Noir code through python.

Description

Easy to quickly convert python libraries to Noir contracts

Directory structure

Build guide

Import package

linux

pip install setuptools
git clone https://github.com/storswiftlabs/python2noir.git
python setup.py sdist
pip install ./dist/python2noir-0.1.tar.gz

windows

pip install setuptools
git clone https://github.com/storswiftlabs/python2noir.git
python setup.py bdist_wininst
# execute exe file
./python2noir-0.1.win-amd64.exe

Example

# clone repository 
git clone https://github.com/storswiftlabs/python2noir.git
# execute testcase: python generated Noir code
python  -m unittest tests/transpiler/context/test_context.py