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.2-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13924835db21422382f63c874c4ca5d8a7cc10dc211ee66a016dd74f7733df7a |
|
MD5 | 6cb42f1419b088765f8d69168a9ee530 |
|
BLAKE2b-256 | 9dfd9e6176f44df23c6c429651856c832cc52732b2e52ccf4935a5696fc4ae9c |
Hashes for nb2pb-0.1.2-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcb2e692778fd30ee3724b30f1c3c27fdc3a7a0fb9a8e4eb65122ac34a7c2620 |
|
MD5 | 5be5b4e766ac26c36aa40b2167ea2e86 |
|
BLAKE2b-256 | c7dc95010335c353690df84bb493f3312ded2fd0188cd7cdda624042e96919e6 |
Hashes for nb2pb-0.1.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28953f9186c3c105c5bd6524584ab230dc2858093e5e8303aa27119eddbf42cf |
|
MD5 | 90e0b6ffb3fa29de39666c177e02d448 |
|
BLAKE2b-256 | 0553eddec8e4b0bd2ad2d6308669499e4a43816a2270c0f2b21e7169bdf8483a |
Hashes for nb2pb-0.1.2-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79b0364b2df7415b010f50027cb5690a25a23a4cd1434b6550b251991944a2d5 |
|
MD5 | 1706de42211fe2a7e79d1d2921bc93a9 |
|
BLAKE2b-256 | b15c948ddcdfa923d1fbf61504aa420bd61e2ecbc643c2af9cb8d5f612a53c02 |
Hashes for nb2pb-0.1.2-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7df00a593ff222fc93eaf13e44d008f76426c7e014eb15ab17efe4ffaa39341b |
|
MD5 | e9bb8d7429ef07993d23f6e8de04e5d3 |
|
BLAKE2b-256 | 2463e19c1d0b9618931bf56fea58b0be5f2c172035cafb846d82e672130f4716 |
Hashes for nb2pb-0.1.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec54766f8ddcbafeadbce0527c7a941a8a504621fe9957526565b7110403725d |
|
MD5 | e72be6c8a0fd2d7f222370ba9925d56f |
|
BLAKE2b-256 | fba086e1c870b234eb6791e1648438156c91021553914c7d6cbf4d8b99e5895e |
Hashes for nb2pb-0.1.2-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edab6271235f393695c0c2b772bbcd4ec1e0251036b7b92f0e4e1539259fd73c |
|
MD5 | 1118d916b027cd21917e60d3e3870d14 |
|
BLAKE2b-256 | 7caaeda9999291f6fa3b8481d54e59496a5bf6ea867b8621cbcfa9ab780c4a21 |
Hashes for nb2pb-0.1.2-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 837159a884230f1fe564b755ff69c951425a8dcb797d0cd8f431654cc30106c3 |
|
MD5 | e586dcc4dc135d10c371747d50066bb1 |
|
BLAKE2b-256 | d5008ce8ccd034ce21d01b0c3ac7f696f81104c4c45992afde0b3c931cc42a65 |
Hashes for nb2pb-0.1.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df071774a80c322b99e6cbdf78d3db893932e4b31c8df843f7fa32994b11cb19 |
|
MD5 | ccacead9ed3d2adf705ff01ac06d07ed |
|
BLAKE2b-256 | 002e5fda28a9ee9f47fd99c49c5a9e72b64de2cda6c0558da37b73439986558b |
Hashes for nb2pb-0.1.2-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3e5026ae262700bf0f70db8fd27b1278e59b542df036befcc491f018a6cbb48 |
|
MD5 | 0d4baef2e59de026c4fb6f4df70b54dc |
|
BLAKE2b-256 | 96f31df9926d47e30306189ecf7a244633402c77166a5ed341946ad0f322abea |
Hashes for nb2pb-0.1.2-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19d6143e4bdc6d87eca7626b1bbb8a535bbaa2e159cba13d0605f8aca1b05de1 |
|
MD5 | 10487c113490f46a0de0eb9807de14b4 |
|
BLAKE2b-256 | adf538e37f2587774440d2abfc44ba6c2f1dab2563cb2a91999952f4bdd2be5c |
Hashes for nb2pb-0.1.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a570fa865c5c1e3fc6084ca009e919d55cca3fcd2c2d5045580f3ced2519c6b |
|
MD5 | 5c41ad9f7b28309d7067180d7635cbfb |
|
BLAKE2b-256 | c6f8856c5ca20461f702a60947a0d0b0cc86b3648f9cf1e881d293493d2c5d18 |
Hashes for nb2pb-0.1.2-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cadf52bc9ae5bd000a3eec09048d278c7543c940e4b4778069130a5b70683d4d |
|
MD5 | 6b3d823148b391393519dc1374a1cf89 |
|
BLAKE2b-256 | 939705ffc144d30eb5629e3f3d63a0291aa261c23ebc8f542663c0e9b5828da5 |
Hashes for nb2pb-0.1.2-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 633074c6476afafda2fe7ca146ab0b02efa567ee55d82830a4eb0daa60cac0fd |
|
MD5 | e84dfb30a05a2375c16865fef7127b2f |
|
BLAKE2b-256 | f3a78aa0869d5d526e33617eb18aad2590c254e46667d5498c7b2b49ae6f050c |
Hashes for nb2pb-0.1.2-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 496a5cf315221e4eb06ee1b7c4514b7a72eba6652b569a23e9d1a712120e7dcf |
|
MD5 | 7fc52141eff382f6a0fe1bdf0d2908e1 |
|
BLAKE2b-256 | 68c1631ead6beb75876926637aa2ce6e2937836b3403fc3795e98602f449ada1 |
Hashes for nb2pb-0.1.2-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 848f8f824d177c3c98f0ecc5d1d9e33ff6b1b8699376696b74f3a490f17c4e1d |
|
MD5 | cfa95414612d994e2b16b8ba03fc4362 |
|
BLAKE2b-256 | d59d8f828595a21dd79d57e7f47c4dfdb06da59e0a4046721aaea87fab04cb30 |