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.4-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 575aaea16cd14b1d1644207bcf3118874509ce9a120c57fdec8ffe4651a8bc14 |
|
MD5 | 1e7e305daf169414996f390c7e0a4a20 |
|
BLAKE2b-256 | 2054f0e47303c1788f51f14731a23fe924287825cbd9d8ba0aa7cbfc074ba35d |
Hashes for nb2pb-0.1.4-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ef51212a9d7bc77f3a21daae526edc81fabcb8fba8eb2aa034bcf49f51d9a2f |
|
MD5 | 4ea8fbb76ba0468126052a75a5f06c1d |
|
BLAKE2b-256 | f3f4d8806311cbcd276dd32a9222236c3ff0d1e04418f61bdc22ebf85ba98339 |
Hashes for nb2pb-0.1.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da491a1a0620523e652b106997036edf9f4f0907877e9d043518fb99b9cfcc5b |
|
MD5 | bad3e7ad1e108c53bb02c45b8a84d0f0 |
|
BLAKE2b-256 | 1b4d6e56e298cbe5267233bf447548a3ac348c191682b1bf27dc09938c239f1b |
Hashes for nb2pb-0.1.4-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c3f22b04887457091b2eb8cfd67805831391e48948bd988f16403d5996c5ca9 |
|
MD5 | 873afed0e4d39e295c22733d9f7f82f9 |
|
BLAKE2b-256 | e6fcfcd90c9cbaf5cfda4e8420cfab74f92627e1481b91a4d3b6e0db046bf847 |
Hashes for nb2pb-0.1.4-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5d1644a9f7a9648d1804149543f177617c9e1c29599281662ad314fb3b34b4e |
|
MD5 | 1b5a83f045507f0d76346f344c7843a1 |
|
BLAKE2b-256 | a869debbb2d0d2ae86f362b0c8c22e73ddbaeb15b3f5c836fcfe02e1255f14b7 |
Hashes for nb2pb-0.1.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57bd8cef2ec8db5dcd29f8850b6e1ea5ded90dbd9e27e0da72eec689cd786781 |
|
MD5 | 642546fd672e06c899d30c15eb15e072 |
|
BLAKE2b-256 | 37a5b19a0fbdab40fe2b4df8ae6c039921cc062571572130d7ceed96dc451a04 |
Hashes for nb2pb-0.1.4-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43a8c3e7b287b3a84ecf283af558c059264794d634473693845f67757e099476 |
|
MD5 | e891d563c16560f3489f417218121700 |
|
BLAKE2b-256 | bfed6b9e849cf582f3c8ff3dcece43f1c71daac961b03ecde00c2b73ade1b21a |
Hashes for nb2pb-0.1.4-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87cc08cf536089c12db9eba5fb07e3c7b938ecf064534f9206eb0802405213ad |
|
MD5 | ab85e27fa38389e271b5d307203905f7 |
|
BLAKE2b-256 | 4ea39773f7d1ffd25d241392a11b3b867d9f2816ef7fd5831c2d1758722820ee |
Hashes for nb2pb-0.1.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5995fed501567b5d66f4a3d5c2dc323e935a04ba6a2fef4dfe0afe5875a926d |
|
MD5 | 4d1ded55e158719c8223877a85f57b69 |
|
BLAKE2b-256 | 7d3a3f2ad8056b6fd009a6208c1b7eee0b2f11c98ab6ce439cb32b04e7896fd3 |
Hashes for nb2pb-0.1.4-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a820be9f4816829971384edf1dd6995ab81bf1bd015bced1d6311a38a103dcc |
|
MD5 | cb3f65204645e2281d0b45910de99456 |
|
BLAKE2b-256 | f2907720a6e1c1260baa25adae87105d635707e11e9b4bf584f0992aae82788c |
Hashes for nb2pb-0.1.4-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dae394790eb14c0f4e4204544110ba3007a74d51d260bc03de18881f92e9f59 |
|
MD5 | f123c4772d35cd2ce4e523da9745a855 |
|
BLAKE2b-256 | b565f5319bccaba5f0dc738753cf327e4a722aba17e50b0c244c235fcfc5831f |
Hashes for nb2pb-0.1.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8cd8996c05c8bdb759b2a700fa1a7a274d5485232cb596e85c0723e2486398e |
|
MD5 | 3f16d7e417180fb49e0e7f32a71e8633 |
|
BLAKE2b-256 | b7f5bd5e90ac47aa4b1ab421bb38a72958495ba8d77288792ba63686488f120f |
Hashes for nb2pb-0.1.4-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c49e52bb0be519b7a3421a099aa0f11565ab728e18e50b518a23c3e655077ff3 |
|
MD5 | 79fc48677243f274dd2119e9069f5080 |
|
BLAKE2b-256 | 270cebb7867190851e0ddba1123e792a2fbadd4ade7c6e077aac9c402c817772 |
Hashes for nb2pb-0.1.4-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ffb3f6638e5974885964429b13998aafe6aaf87474829e4528de0eedba51558 |
|
MD5 | d84e178ab0ff94456d017f4b980eb10e |
|
BLAKE2b-256 | 0c3cab5f4b2e9f1c8069312dbb9106ab4ad90f5622024e1cf246c199e3d4bd35 |
Hashes for nb2pb-0.1.4-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fcc998a12331c6b0b0668b171b53af3b8374ab2f869233a84d34e8a1711d16a |
|
MD5 | ddc2da8c516675d77f0e8dca3189d2de |
|
BLAKE2b-256 | e71b0c98fcd699276efd602f6ff75896ab72005dc489fe7e90f141c4283d9f61 |
Hashes for nb2pb-0.1.4-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 329ca300c3e11a11c736d970640ada9c90f97fd351073c2f9ef36552dc5c9af4 |
|
MD5 | d55186431dd27da1829d6af8bcdca06c |
|
BLAKE2b-256 | d34bbcc6f555257f57870953fb986c470fbb908bb02cb5f3636e475f21695253 |