Compiles NetsBlox projects into PyBlox projects
Project description
License: MIT OR Apache-2.0 Requires-Python: >=3.6 Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM Project-URL: Source Code, https://github.com/dragazo/nb2pb Project-URL: Issues, https://github.com/dragazo/nb2pb/issues
# nb2pb
[NetsBlox](https://netsblox.org/) is an educational block-based programming environment (based on [Snap!](https://snap.berkeley.edu/)) which has a focus on advanced CS topics such as distributed computing, cybersecurity, and the internet of things. [PyBlox](https://github.com/dragazo/PyBlox) is an educational Python environment which supports most of the same features as NetsBlox, but which has students program in native (unrestricted) Python rather than the block-based language. nb2pb is a rust crate that allows for the compilation of NetsBlox (nb) project files into PyBlox (pb) project files.
## How to Use
In addition to being a native rust crate available on crates.io, nb2pb also has (simplified) [Python bindings](https://pypi.org/project/nb2pb/), which are used by PyBlox. As the python bindings are our main interest, they will be kept up to date as the rust crate evolves.
## Installation
To use nb2pb as a Python package, you can simply install it through pip.
`sh pip install nb2pb `
We build wheels for several operating systems and versions of python (>=3.6). However, if there is not a wheel for your platform, pip will have to compile the rust crate from source, which will require installing [cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html). If this is the case, feel free to [submit an issue](https://github.com/dragazo/nb2pb/issues/new) including your operating system and processor architecture, and we can see if your system can be officially supported (without needing to be compiled by users) in the future.
## Building Wheels
To build a wheel on the local system for installed versions of CPython and PyPy, run the following command:
`sh maturin build --release `
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 Distributions
Built Distributions
Hashes for nb2pb-0.1.10-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d05f2577b4cdc983000ed6e6b3a86cad992310b80fa6b5dc1b05e3d836a2b52a |
|
MD5 | 439f1aa1e8d5f9f8cfd95c5422176ed1 |
|
BLAKE2b-256 | 99b192871466aa980594c7cb3be9a33cb0b3de95062f2e303aca2b758cb48672 |
Hashes for nb2pb-0.1.10-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b7ea7ee53ca1fc1cbc15152d9fde5d107879d86d91692984811df2299e16527 |
|
MD5 | a960e0406e9ab536bc3b13cf655be7f0 |
|
BLAKE2b-256 | 1fda4d7799b597396f8d2faa9792d9db6dfa3985e0cb80f52574e56d8e95066a |
Hashes for nb2pb-0.1.10-py3-none-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 934e823159fc4980c259cbfdbd4f346f18c03b46c4458514893a97da21ad4cc6 |
|
MD5 | b4582f05b5513c35d61e3a8acd9b288e |
|
BLAKE2b-256 | 2d5826e377474629b8068f44e3b247663c12b36ca254bfabc5a31f0641bba518 |