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: Source Code, https://github.com/dragazo/nb2pb Project-URL: Issues, https://github.com/dragazo/nb2pb/issues
# 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.6-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 513117a8f67089f7d19c6becc4b1f2cc7eb08241be6a31000ed1612b6931af0b |
|
MD5 | 8b7c8bea2680845431596be6f77991a8 |
|
BLAKE2b-256 | 273a460fc687421996e0c765be90d6ad3e7aa8632a726b01eea4d0b6a0044f59 |
Hashes for nb2pb-0.1.6-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52095545ffb4b1c4b8c2c7c54e1669abe4efef746be94e1cefa532323959ce2a |
|
MD5 | e189984498c26502b8cd8822ce9ce976 |
|
BLAKE2b-256 | 49f4dd36c8fc5e134d035bb7cc13b33c9d2a74b4cd818189822096d7fbf9509c |
Hashes for nb2pb-0.1.6-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f80b085bbb2a25a888a52d1a13a1d259ad9a13cc781f756001cf663cd7e9e67b |
|
MD5 | b3c82990594bd989ec6f470850b2c58b |
|
BLAKE2b-256 | c119a5ccaf22f57be3d6627a9b5d066a7342b9b55b9203bd47178c639040fc52 |
Hashes for nb2pb-0.1.6-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35f927a1302bd9c43c94b0ce78dc64c386ba6bd90c0b0f8bcac1ff96624cac7d |
|
MD5 | 591a10a28e3108e655aa528d98833a9a |
|
BLAKE2b-256 | 78cb4e1d66b5551c9e1b048ca10f19eb42f59184068eec9ac8de8049cbba59b7 |
Hashes for nb2pb-0.1.6-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 512c9fc6aceb3fb2c8f5b14cc4dfaffa86f18674e787f9016a86396a350f3a95 |
|
MD5 | 758caaea89000866c263c51d82792a5b |
|
BLAKE2b-256 | 3ae5e238138306e9be7dd582137135cf8d0145ab2ec36367fe9264702b98b54a |
Hashes for nb2pb-0.1.6-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4951011c9793a5c2339e6a868e5ac72f2b744611975616ff09bfd05556eb8e77 |
|
MD5 | 16a672bd102005ce46581a56c0261a8e |
|
BLAKE2b-256 | 0e874b8bc190a75e2d228228e673402c1935aa7e7faf0bec1cfd426a358da2e9 |
Hashes for nb2pb-0.1.6-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abc78d98c9ceff851a4500cfc1128c3c69220d1f52ff604cb820f3e8f9412b27 |
|
MD5 | 862050a9a280d7c88c5c28af8ea32abd |
|
BLAKE2b-256 | 04fda197e601e14030c65d909744e87c3ce3e82fcdcdfd80d6c48217cfe8af7a |
Hashes for nb2pb-0.1.6-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f154270f566ba6150e1ccddc1306b71156e179c9e25f77139716a0a8a5ed7611 |
|
MD5 | 15b6a775096aada055d731c60b46de82 |
|
BLAKE2b-256 | 42bef4931447d6c9a21d497b9652eb36ea1aa621de90bf055fd10e82c1445726 |
Hashes for nb2pb-0.1.6-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b39b827b922c08ecf9543a39b70b84694a358c2b3e08dde3dc5882ff9cce5b42 |
|
MD5 | f4b25249f1e464b965561ce89a6ff2b0 |
|
BLAKE2b-256 | 57323985e961813262822942ca7adff178cc2206bb738c9691346d670bebdcd0 |
Hashes for nb2pb-0.1.6-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 579503fe4923893cdaad8119c43bf4965aedb33a9ea71938c49fdf758801bbab |
|
MD5 | 036cb52d06eafc5f5d7fdf6f0e1f8fbb |
|
BLAKE2b-256 | e5efb186ce45d786c8f50a6eace9814b3936b1cde7af7ce2fc810872e4953f6e |
Hashes for nb2pb-0.1.6-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5050b263a626ad4096f47c75c332bb437d555a9b7647d8ca9bbc75404c5f1cd5 |
|
MD5 | da3c6e0ae1f88f4cfb6dc9d2af6859eb |
|
BLAKE2b-256 | f9526492d868aa279ffb65e8e0251b3df26c8685055cb43725a359050569cd12 |
Hashes for nb2pb-0.1.6-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87d7efc649db90d716e6f1c1225564cd18ae7ab710901bf0c07393e1386dc3f4 |
|
MD5 | 7c7415c84a42fba0e71a303eac257a1b |
|
BLAKE2b-256 | 7cc42aba17556320aa27a10ec2abf63fcfbdac334994550130b1a821885ab37d |
Hashes for nb2pb-0.1.6-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8265f48b2b7103d3c13b6b362b8c026b06c2ba1f598c2441a210d11afa6d585 |
|
MD5 | 02e21e46eaff2963bac72d31327c7c97 |
|
BLAKE2b-256 | f76e8e4fc198b2bc6520043be1c74aacf78506c78696439d86cce83af6418516 |
Hashes for nb2pb-0.1.6-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf4e1022ca6a795fb32089c0b72a3fa8b9c1131b43879ca46ca2227dfd5ca953 |
|
MD5 | 5611926269be83f66df11a53e47840fa |
|
BLAKE2b-256 | 4a8be692c347fd895dc45bd6427dbd342baacd1b437444fdc96b7707d4e532c5 |
Hashes for nb2pb-0.1.6-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5eee8c4da82d07177716cb7034a552bfbe53fbff868a288199d456128c2277f |
|
MD5 | db035ed2ddc96c8e9685a52b7e96b854 |
|
BLAKE2b-256 | a84baa8a1ac830021e49cf0c1589f987581e16289aab5bcc541ab57c390c77dd |
Hashes for nb2pb-0.1.6-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e795932d8789687bffe9d0db622b78feaeb8f6d34a1c2554ba4c8825667e7de |
|
MD5 | b42be1a1a3a83825bda078bf2c1c60d0 |
|
BLAKE2b-256 | dae934073875686cf66e447c3d6d0235e1e041c1e7fce9e614deed4a35706b3e |
Hashes for nb2pb-0.1.6-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 929398457d64f1504486ec5cc7d1d0aca3b28b502a9496c2d9e25cc1f8d2577c |
|
MD5 | a8c8784ca47bf699436ac9daa46d0043 |
|
BLAKE2b-256 | d11d23f2ca2d900130e1a384cd92b0613926c90489449697465eb465dd42cee9 |