{ "info": { "author": "Ontology", "author_email": "contact@ont.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Build Tools" ], "description": "\n===========================================\nPython compiler for the Neo Virtual Machine\n===========================================\n\nOverview\n--------\n\nThe ``neo-boa`` compiler is a tool for compiling Python files to the\n``.avm`` format for usage in the `Neo Virtual\nMachine `__ which is used to\nexecute contracts on the `Neo\nBlockchain `__.\n\nThe compiler supports a subset of the Python language ( in the same way\nthat a *boa constrictor* is a subset of the Python snake species)\n\nWhat does it currently do\n^^^^^^^^^^^^^^^^^^^^^^^^^\n\n- Compiles a subset of the Python language to the ``.avm`` format for\n use in the `Neo Virtual\n Machine `__\n- Works for Python 3.6+\n- Adds debugging map for debugging in neo-python or other NEO debuggers\n\n\nWhat will it do\n^^^^^^^^^^^^^^^\n\n- Compile a larger subset of the Python language\n\nGet Help or give help\n^^^^^^^^^^^^^^^^^^^^^\n\n- Open a new\n `issue `__ if you\n encounter a problem.\n- Or ping **@localhuman** on the `NEO official community\n chatroom `__.\n- Pull requests welcome. New features, writing tests and documentation\n are all needed.\n\nInstallation\n------------\n\nMake sure you are using a Python 3.6 or greater virtual environment\n\nPip\n^^^\n\n::\n\n pip install neo-boa\n\nDocker\n^^^^^^\n\nThis project contains a Dockerfile to batch compile Python smart\ncontracts. Clone the repository and navigate into the docker sub\ndirectory of the project. Run the following command to build the\ncontainer:\n\n::\n\n docker build -t neo-boa .\n\nThe neo-boa Docker container takes a directory on the host containing\npython smart contracts as an input and a directory to compile the .avm\nfiles to as an output. It can be executed like this:\n\n::\n\n docker run -it -v /absolute/path/input_dir:/python-contracts -v /absolute/path/output_dir:/compiled-contracts neo-boa\n\nThe -v (volume) command maps the directories on the host to the\ndirectories within the container.\n\nManual\n^^^^^^\n\nClone the repository and navigate into the project directory. Make a\nPython 3 virtual environment and activate it via:\n\n::\n\n python3 -m venv venv\n source venv/bin/activate\n\nor, to install Python 3.6 specifically:\n\n::\n\n virtualenv -p /usr/local/bin/python3.6 venv\n source venv/bin/activate\n\nThen, install the requirements:\n\n::\n\n pip install -r requirements.txt\n\nUsage\n-----\n\nThe compiler may be used like in the following example:\n\n::\n\n from boa.compiler import Compiler\n\n Compiler.load_and_save('path/to/your/file.py')\n\nDocs\n----\n\nYou can `read the docs\nhere `__.\n\nTests\n-----\n\nAll tests are located in ``boa_test/test``. Tests can be run with the following command ``python -m unittest discover boa_test``\n\nLicense\n-------\n\n- Open-source `MIT `__.\n- Main author is `localhuman `__.\n\nDonations\n---------\n\nAccepted at **ATEMNPSjRVvsXmaJW4ZYJBSVuJ6uR2mjQU**\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ontio/neo-boa", "keywords": "compiler NEO .avm blockchain smartcontract development dApp", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "ont-boa", "package_url": "https://pypi.org/project/ont-boa/", "platform": "", "project_url": "https://pypi.org/project/ont-boa/", "project_urls": { "Homepage": "https://github.com/ontio/neo-boa" }, "release_url": "https://pypi.org/project/ont-boa/0.4.9/", "requires_dist": [ "coz-bytecode (==0.5.1)", "astor", "twine ; extra == 'dev'", "wheel ; extra == 'dev'", "sphinx ; extra == 'dev'", "autopep8 ; extra == 'dev'", "pep8 ; extra == 'dev'", "sphinx-rtd-theme ; extra == 'dev'", "coverage ; extra == 'test'" ], "requires_python": ">=3.6", "summary": "A Python compiler for the Neo Virtual Machine on the Ontology Blockchain", "version": "0.4.9" }, "last_serial": 4574454, "releases": { "0.4.9": [ { "comment_text": "", "digests": { "md5": "64c9c9ffa3bbc58cff3dd746e82bd211", "sha256": "024146f73076dc6a30620de569ae943a08679bbc98d44be3e1e27eafc9e00667" }, "downloads": -1, "filename": "ont_boa-0.4.9-py3-none-any.whl", "has_sig": false, "md5_digest": "64c9c9ffa3bbc58cff3dd746e82bd211", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 116936, "upload_time": "2018-12-08T05:56:01", "url": "https://files.pythonhosted.org/packages/8c/19/a27a7ccf52df35c257b3aa7e03c96b6d959a678c34ad600c985f7e79dca7/ont_boa-0.4.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c6e2e621d2c1fb26b0f16fba9943a834", "sha256": "dcdf8bdc21de45081aadf0c3481ca9b3e6cf8868dc562c0c83cbf63fbabcb518" }, "downloads": -1, "filename": "ont-boa-0.4.9.tar.gz", "has_sig": false, "md5_digest": "c6e2e621d2c1fb26b0f16fba9943a834", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 65241, "upload_time": "2018-12-08T05:56:04", "url": "https://files.pythonhosted.org/packages/04/66/07d35cb647eb46cff61f1a681d1cb57492cc7393dd0f8625588a4db275c6/ont-boa-0.4.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "64c9c9ffa3bbc58cff3dd746e82bd211", "sha256": "024146f73076dc6a30620de569ae943a08679bbc98d44be3e1e27eafc9e00667" }, "downloads": -1, "filename": "ont_boa-0.4.9-py3-none-any.whl", "has_sig": false, "md5_digest": "64c9c9ffa3bbc58cff3dd746e82bd211", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 116936, "upload_time": "2018-12-08T05:56:01", "url": "https://files.pythonhosted.org/packages/8c/19/a27a7ccf52df35c257b3aa7e03c96b6d959a678c34ad600c985f7e79dca7/ont_boa-0.4.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c6e2e621d2c1fb26b0f16fba9943a834", "sha256": "dcdf8bdc21de45081aadf0c3481ca9b3e6cf8868dc562c0c83cbf63fbabcb518" }, "downloads": -1, "filename": "ont-boa-0.4.9.tar.gz", "has_sig": false, "md5_digest": "c6e2e621d2c1fb26b0f16fba9943a834", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 65241, "upload_time": "2018-12-08T05:56:04", "url": "https://files.pythonhosted.org/packages/04/66/07d35cb647eb46cff61f1a681d1cb57492cc7393dd0f8625588a4db275c6/ont-boa-0.4.9.tar.gz" } ] }