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.3-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce516a0548939bb30c5214ee72746d43291153ad5be3cbb7892490c362b7af37 |
|
MD5 | 9df9707d9c1b3347b29af628208ec246 |
|
BLAKE2b-256 | 5cccac9feb51a78ea98a16cef3371982616b618d90c323fa51f086b790e19cea |
Hashes for nb2pb-0.1.3-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fdb0cf2ceaab02a4af75f6cbf5a9b0884fa2cc6c5fc24b9e1cbe952461165f1 |
|
MD5 | 07fdbf0109d5597e9266dfd5cea443dd |
|
BLAKE2b-256 | 84aa0f6d1efd7b13cbd7fe4a7ed932986afe5432e716c0f586ab6d9425113574 |
Hashes for nb2pb-0.1.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9936101eb704aa11a03e9fa5a04e3b0eb35903a5908834bc77cffd94a6b897b3 |
|
MD5 | 68cd37f8ae80460fea176a1a0e75029b |
|
BLAKE2b-256 | 268cbc4817b53e5637f71e4819d0331950ca9d659eaa9d935bc750ca505c88f7 |
Hashes for nb2pb-0.1.3-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16e3d3ac804dcf85c8deb810c6d3fb0fff65e558bdc683ec9f861f1d3e3e02ec |
|
MD5 | fed617b2055e7d9c35170aceab3175c1 |
|
BLAKE2b-256 | 3e0f62ab99093eae5edec02ad344f17bb9ef078d99afc4f4b8d83bcf7fcd522a |
Hashes for nb2pb-0.1.3-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd012f97f37c85a68c68c690bd5535e7cdb8bae08310e1614d7bf6cbef3f48e7 |
|
MD5 | 7b721f3ded233b55400dd11011f84ea8 |
|
BLAKE2b-256 | 3432b42ae6714c2de1f6f8f9fe109edf0d6b6ff5c57e7df1216acb8466ef259f |
Hashes for nb2pb-0.1.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dfa189f9c1ed2bfc862151e226a3bb2d3318f3602883f0c4167769499a98fcd |
|
MD5 | 4295d344e2bcf3e684873b7d39c55dfb |
|
BLAKE2b-256 | 4faea9a5e34e58e68745542bcbf663d24b158c7e5e5c6f52ce5990b0d772cf7c |
Hashes for nb2pb-0.1.3-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 206552de04f901574f7a8632428ad38e35bc8a79c372699408be84e9a428045c |
|
MD5 | 3f423cc4f1922fcea18869f0e5e40e08 |
|
BLAKE2b-256 | 5cf0cec8cdf254f36bdc0051991c3c68d8245dde9703e4d417aa77c682d6f33b |
Hashes for nb2pb-0.1.3-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cc5335a50d4c4813ae1a8d7e9b55760451e81624aa1d7a7516943b633927e37 |
|
MD5 | cec7513408c302eb82cc38c25912bae2 |
|
BLAKE2b-256 | 3569defc822eb48f00aab67e39afb6876b8cd59909562c173a38069495449de7 |
Hashes for nb2pb-0.1.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d2e0168e97a6db01390a72e6ba388985f736a1d6c1288644d9cfa835d580545 |
|
MD5 | efdc154d2a3a89dbefbbdcf4d686c369 |
|
BLAKE2b-256 | a37158c68cbcd8a0e0bb48c9589e75017632f21d2ff764c5edce8fd46276cc4f |
Hashes for nb2pb-0.1.3-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05f278c73eb7e0ac5e6d29d8ad6eb33a3c183ede885deca17c7374ba67f87af5 |
|
MD5 | 11e56bb19a6cc83f27c3fc8fe89246d6 |
|
BLAKE2b-256 | 322a59edc7c663eb3cac17332692399a89b9c632300340e92f36b2bb8c22e99a |
Hashes for nb2pb-0.1.3-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 904121663a72d1ae75516f1e763462a065f09433fc301454f0d03e11c12c7274 |
|
MD5 | 3994b77a23fc7029111e001d91635d92 |
|
BLAKE2b-256 | ec348b2498ebe9880add14ac64854e14b447d1b13715b8723c94e5df90b1593b |
Hashes for nb2pb-0.1.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8783bd8a846dd4ea2aaaba631958531ba26d774b9b9da1b0fe0f2a3cac42c06 |
|
MD5 | e60f678d03929f8ad4e7a70af8bd1e11 |
|
BLAKE2b-256 | 4ad35d82f04beb1ef75ef1a09ccd0b70d489cee3f1b69a5e2106199fcd79503f |
Hashes for nb2pb-0.1.3-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fc45740053f9980a1ca23bf3557144c471df30ef32dedf17268dfe7f44b774f |
|
MD5 | 235bfe6ab7ce500a4df4081fb3cdfaf2 |
|
BLAKE2b-256 | c58a38207b363b275f6da25c483fd6a386742311f125272bd9b2e810b45a2266 |
Hashes for nb2pb-0.1.3-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f05d07927c802daf53cbc44eab5ae7f6dfb83d7a5f1822d59110fc7ad01dee76 |
|
MD5 | 8f9beb46b6b879055b383ca427649ea4 |
|
BLAKE2b-256 | 29f75e88ab7aba5df5ad49245a8cfc5967d787855ce660ce431e24f373f4b974 |
Hashes for nb2pb-0.1.3-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a848345c4f6ca32c4815df8d384024ce3868cacb35b111c885e81c8a0e92f14a |
|
MD5 | 8e52110d2e405b8b5b7c49021d268ef7 |
|
BLAKE2b-256 | 48130a9eb8c48a716b1c3824697d93e83d0ed8075d2580de3e89c00c7471c54d |
Hashes for nb2pb-0.1.3-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5346d3ed40f17bb50f3eeba59af918465a2c74322c3253f8af1e872a7098f46 |
|
MD5 | c74d6608fd790b1fdd4deec1d7f40e3d |
|
BLAKE2b-256 | f20f2f692aa1b832f49c3db705032a0b4244b51a04b5bcf9c338b3b2a24b5af9 |