Crates.io | nb2pb |
lib.rs | nb2pb |
version | 0.1.14 |
source | src |
created_at | 2022-01-29 01:55:39.752715 |
updated_at | 2024-08-16 17:30:11.1646 |
description | Compiles NetsBlox projects into PyBlox projects |
homepage | |
repository | https://github.com/dragazo/nb2pb |
max_upload_size | |
id | 523373 |
size | 252,313 |
nb2pb
NetsBlox is an educational block-based programming environment (based on Snap!) which has a focus on advanced CS topics such as distributed computing, cybersecurity, and the internet of things.
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.
In addition to being a native rust crate available on crates.io, nb2pb
also has (simplified) Python bindings, 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.
To use nb2pb
as a Python package, you can simply install it through pip.
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
.
If this is the case, feel free to submit an issue 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.
To build a wheel on the local system for installed versions of CPython and PyPy, run the following command:
maturin build --release --features pyo3