Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nb2pb-0.1.5.tar.gz (18.8 kB view hashes)

Uploaded Source

Built Distributions

nb2pb-0.1.5-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.7 MB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ x86-64

nb2pb-0.1.5-cp310-none-win_amd64.whl (785.0 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

nb2pb-0.1.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.5+ x86-64

nb2pb-0.1.5-cp310-cp310-macosx_10_7_x86_64.whl (912.6 kB view hashes)

Uploaded CPython 3.10 macOS 10.7+ x86-64

nb2pb-0.1.5-cp39-none-win_amd64.whl (785.0 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

nb2pb-0.1.5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

nb2pb-0.1.5-cp39-cp39-macosx_10_7_x86_64.whl (912.9 kB view hashes)

Uploaded CPython 3.9 macOS 10.7+ x86-64

nb2pb-0.1.5-cp38-none-win_amd64.whl (785.1 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

nb2pb-0.1.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

nb2pb-0.1.5-cp38-cp38-macosx_10_7_x86_64.whl (913.1 kB view hashes)

Uploaded CPython 3.8 macOS 10.7+ x86-64

nb2pb-0.1.5-cp37-none-win_amd64.whl (784.9 kB view hashes)

Uploaded CPython 3.7 Windows x86-64

nb2pb-0.1.5-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

nb2pb-0.1.5-cp37-cp37m-macosx_10_7_x86_64.whl (913.1 kB view hashes)

Uploaded CPython 3.7m macOS 10.7+ x86-64

nb2pb-0.1.5-cp36-none-win_amd64.whl (785.0 kB view hashes)

Uploaded CPython 3.6 Windows x86-64

nb2pb-0.1.5-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.5+ x86-64

nb2pb-0.1.5-cp36-cp36m-macosx_10_7_x86_64.whl (912.4 kB view hashes)

Uploaded CPython 3.6m macOS 10.7+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page