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: Issues, https://github.com/dragazo/nb2pb/issues Project-URL: Source Code, https://github.com/dragazo/nb2pb
# 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 Distribution
Built Distributions
Hashes for nb2pb-0.1.9-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c8be463b15f9004ffe344504440af51534a4e6756024702c6b75fb5c7ea4007 |
|
MD5 | 6e2508d3af30791337a8e4b93c05f142 |
|
BLAKE2b-256 | e49eea33c747fdc8f22669b4bf0b4ebc0912a6572ec3af8dad7cdfadcdec935a |
Hashes for nb2pb-0.1.9-py3-none-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df7dd660c3efc79df064413dfcdd6696b22e05dd8b59e1289c08fc8fbead3bf5 |
|
MD5 | 4d9188e1b9a745092252852ea052945f |
|
BLAKE2b-256 | 943a2be7b1670db8a0d86bfa7247d5afe6b37a34b92c130140f6b951067872d9 |
Hashes for nb2pb-0.1.9-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 656ac5ba3543253ef2613526c331379abea00ca78602be6a39d32bc035373625 |
|
MD5 | b264ce1c7c65e48490b2cdfc924e3190 |
|
BLAKE2b-256 | 55ff7cc2f31aed89c1b57f1c862f8a125bd5809a7c7adda7937f4751a996d631 |
Hashes for nb2pb-0.1.9-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 098a05d0470625050760ca82498dc72e0be94526f1935e88cadc69d3ceacd337 |
|
MD5 | cda514f1b7048ffa25986242209e7fa1 |
|
BLAKE2b-256 | e4da0c6707a969142429b14766af7304efe1519d72baf1c6380ecda543d21e0f |