Skip to main content

Python compiler for the Neo Virtual Machine

Overview

A Python compiler for the Neo Virtual Machine

What does it currently do

  • Compiles a subset of the Python language to the .avm format for use in the Neo Virtual Machine

  • Works for Python 3.4 and 3.5

What will it do

  • Compile a larger subset of the Python language

  • Support Python 3.6

Get Help or give help

  • Open a new issue if you encounter a problem.

  • Or ping @localhuman on the NEO Slack.

  • Pull requests welcome. New features, writing tests and documentation are all needed.

Installation

Pip

pip install neo-boa

Manual

Clone the repository and navigate into the project directory. Make a Python 3 virtual environment and activate it via

python3 -m venv venv
source venv/bin/activate

or to install Python 3.5 specifically

virtualenv -p /usr/local/bin/python3.5 venv
source venv/bin/activate

Then install requirements

pip install -r requirements.txt

Usage

The compiler may be used like the following

from boa.compiler import Compiler

Compiler.load_and_save('path/to/your/file.py')

Tests

Tests are important.

License

Donations

Accepted at ATEMNPSjRVvsXmaJW4ZYJBSVuJ6uR2mjQU

Metadata

Release files for neo-boa 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neo-boa 0.2.0
File Size Uploaded
neo-boa-0.2.0.tar.gz 55.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for neo-boa 0.2.0
File Interpreter ABI Platform
neo_boa-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 140.8 kB

Release files / neo-boa-0.2.0.tar.gz

Download URL neo-boa-0.2.0.tar.gz
Size 55.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3eae92bad90841ceed0dcf713502f4b897c703f9f0165d61f34aba316c9a80e4
BLAKE2b-256 checksum
How to use checksums
b7eb78fbacb734f8ea4e62810892eb00e6d884eeb384a492361af5912a3d61cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / neo_boa-0.2.0-py3-none-any.whl

Download URL neo_boa-0.2.0-py3-none-any.whl
Size 85.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9f82bdf0facd14c700b1a0cb3644ca2bdbe3573c1d2ae2d254b624150d51afb
BLAKE2b-256 checksum
How to use checksums
b6056dd379a974592e3e3f285969b49c64d5342adadb886a1d480c1e010f1412
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.7.2

2 release files

0.7.0

1 release file

0.6.0

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

1 release file

0.2.2

2 release files

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.5

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page