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 --cargo-extra-args="--features pyo3" `
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.5-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27633c5e941d28b42a9d4753a9af81006925bb5582459f21ab86a9471534461f |
|
MD5 | f447d110c6f95a83153612cb27a0ee7f |
|
BLAKE2b-256 | d54ffed9c5f5a2126bd5bf0bec97d90c399359f33ab25dfb2dc75b23bdecae4d |
Hashes for nb2pb-0.1.5-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0582281ef71be47c38c93f6e650fd30aaccc822a98e39c2a8fe14f7f223c239 |
|
MD5 | e89b061133f97be3a12281d2d88dfaf8 |
|
BLAKE2b-256 | 7fe3e1aa6e2d4cf892ad8b77f38f06ae86eca9c0bb3903753251e1345e6d1dc1 |
Hashes for nb2pb-0.1.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3978bd111f0657e53c43eb1bca59bb5bf90e50f299501e179fab1877561727d1 |
|
MD5 | 0345d75376c0f9f47a8f93f32ad0a4f0 |
|
BLAKE2b-256 | 0328e6cab4f58391a8f8b39b7e0282344edd218a21f6c77a0635535da3326335 |
Hashes for nb2pb-0.1.5-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f7423fcfbe1a831684bb268053b559188d4caf45e82450e51c34552d10a496a |
|
MD5 | 5f6da60d87f5ac43812c0c0ce3d3b315 |
|
BLAKE2b-256 | f2a1cd38d42c86e46d7fd1fc17b176e571f20c117f519ba87316ef72565b1046 |
Hashes for nb2pb-0.1.5-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a513819b180b9d09e209c5dd854c7f8f5c16289d7ecf1d3d6b1b58d26aff2373 |
|
MD5 | edf6153eae1e570248d7a0574485dcb8 |
|
BLAKE2b-256 | a7228a49fa61ab1434bef497057ca3106daa1c17a4aa589fad1dc29b71730d8e |
Hashes for nb2pb-0.1.5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8994294b22cd4afa18553f495526fbef51108da10c9af558f09889c5b5083852 |
|
MD5 | 4d1712e844b92113a672670cdb3ad9fd |
|
BLAKE2b-256 | 46c7fa3fba4fe689f2ed29491fd230c9351aab924b4d61bb371ebc931045bb69 |
Hashes for nb2pb-0.1.5-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 955dee3514763c9ce4b34a1e83f7a97638f30d069d2ab4307623da50a1c93eaa |
|
MD5 | a52b9c71d427b10ebe74d12b9bd7054b |
|
BLAKE2b-256 | 0fb5e6a7d5295a0c68529e25d76f5919baeb616560abb927ddf82870ee89adb1 |
Hashes for nb2pb-0.1.5-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef6ed3983ff7593562332649f372cc172cce2f338ced36a2cb78b61227f716d1 |
|
MD5 | 7252e0c89469f8a86877dccdb75bc1e9 |
|
BLAKE2b-256 | 7b94e1f5e5337a96ee8a579856ffa65ba40c9898a1294db9c8130b72aac6a618 |
Hashes for nb2pb-0.1.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90c043769ef3ce236b5dec65b620e3899accfa0bf6be1e7f238757b2b63e3ee2 |
|
MD5 | d5261411f300a4b02d621098582172f6 |
|
BLAKE2b-256 | 1b283257a9410f74acd3bec18aebf96b9fbf7fa3f7a0ddbba5070efc073005ce |
Hashes for nb2pb-0.1.5-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 621346ab97e7d83517dec42a4246c462a69c86f439c03d36ee0735de716f42fc |
|
MD5 | 4df233d59822c8f68145e449fcb5c8a4 |
|
BLAKE2b-256 | b1dcc49895738e183c75b374fc9c83db7e2b1cf918d2e5203d449f2dc232d8d2 |
Hashes for nb2pb-0.1.5-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 903e1e78a4a3bfb91e12b9ece5ba2e3e625ecdcd696317882716af20c8de8d0a |
|
MD5 | bf5c7b5e9349f3c0f4352fbb625d9504 |
|
BLAKE2b-256 | 6adec2c5f0f07f009c2ee0920909365200ee17e1f057ef2e4bd80febdff52dcd |
Hashes for nb2pb-0.1.5-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a50bea9b2e05f028a523ebf1f745ba200a10319e41c7a2918e1026c0e791fa3 |
|
MD5 | 60cbbd29eff836a41052069c661bbfa9 |
|
BLAKE2b-256 | 86ede038d2aebe4b64b5589948464c6bc01d6773a97bda8287f4d6aa9af2ce5a |
Hashes for nb2pb-0.1.5-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3962569ae1a1695a0db41696830edae9a566abf0d1b2b38ed08d482150d8bfa |
|
MD5 | 68df0fee39490d58135e47c109c89b1b |
|
BLAKE2b-256 | 5807213df0d62934a23b1d554a25cd439a0cfd9dd7b47f6de25d38bac377c58e |
Hashes for nb2pb-0.1.5-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcf556c3c98e9cb664dd46ed4dc7ff32ece81973249f33ac4412055ed0572220 |
|
MD5 | 11606a46ad3c733ba7dd81eb4c05b5c2 |
|
BLAKE2b-256 | 658065ee4e84b9b63f0e8e619e4837bc16a710eea9b7eb53202df8bdf5bb8a52 |
Hashes for nb2pb-0.1.5-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 074984a6d765ef5be517845107b424bdd6da21d0ec1d18ccb5aa0b84ec658832 |
|
MD5 | 805e91d26d2f710588f5e9bc58e20c3e |
|
BLAKE2b-256 | bde667efac663379b809c087f7a3650765492f01acec55b7c6e811f893cdeba8 |
Hashes for nb2pb-0.1.5-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ba5cffe5a5064b09981c9614761803380e6565e1fcc18d3351762e85fb84954 |
|
MD5 | 8a0210cb6f14c811ac914f549f72c400 |
|
BLAKE2b-256 | 90ac34e27419edae8f269b9854449e2ad4793b33ce03b6ea9cdebb9b334cd31f |