Netbyte
Byte code, rope flexibility with versatile networking.
About
Netbyte is a compiled intermediary language, with a compiler and virtual machine, written for Python. It has a slightly Lisp-inspired syntax, with an Assembly/Batch-like statement flow logic, and is quite flexible. Most of the things you can do in Python, you can do with binary files and Netbyte.
Its flexibility comes from the fact it can store anything in two forms:
-
Python objects - Instruction, Operation, Function, etc.
-
Binary compiled code, the target of the compiler, and what the interpreter runs. This is what should be sent by sockets when sending instructions, not pickled Python objects.
It is not meant to be used as a direct language. Like Neko, it is meant to be used as a compilation target, but, unlike Neko, the compiled binary code is merely an architecture, so that you can make hierarchies out of it.
For example, we can have a Python dictionary; let's say it's just a
list of functions used by specific objects (actors) or other functional
attributes and items of a network game, where each entry has a key
name, and its value is a list of Instructions, which compiled string —
netbyte.Netbyte().compile(*instructions) — can be transferred around
with TCP, and stored into other people's function lists using
netbyte.Netbyte().read(binary_code), so that everyone knows what instructions
to run if a certain function X is called on an object MyObject.
For more examples, check the Programs folder.
How to Use?
You will need Python 3 to be able to use Netbyte.
To install, run:
pip install -U git+https://github.com/Gustavo6046/Netbyte.git
To set up the Standard Library directory, run:
stdlibdir.bat
To compile a program, run:
python -m netbyte compile input.nbc [output.nbe]
To execute, run:
python -m netbyte run input.nbe [arguments - see Stdlib/args.nbc or Programs/printfile.nbc]
Metadata
Release files for Netbyte 0.1.6.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| Netbyte-0.1.6.3.tar.gz | 12.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Netbyte-0.1.6.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.0 kB
Release files / Netbyte-0.1.6.3.tar.gz
| Download URL | Netbyte-0.1.6.3.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34c0dca5622e3c24464283499bd6730e6465ef5a44ccdc7e18991ea321f28961
|
|
BLAKE2b-256 checksum How to use checksums |
a8145b65f0ff73fa8173444d1c9d3791428d1c0120d189d7df9d7ebcc37473dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
|
Release files / Netbyte-0.1.6.3-py3-none-any.whl
| Download URL | Netbyte-0.1.6.3-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0915028d620d69634c75154465c7c70aaa96d4688e9932e8d917b668bd8b0c3
|
|
BLAKE2b-256 checksum How to use checksums |
eb72bd5d6a4bfd63b8a54e9c5dbba3ec23cc8dd9e7a735e96335ea69d2bc4073
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
|
Security for Netbyte 0.1.6.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.