purebyte
Tiny byte-level AI models on your CPU. PureByte is an architecture and a runtime for AI Specialists: models of 1 to 29 MiB that read raw bytes and answer with decisions, scores and exact byte ranges instead of generated text. A short decision takes 0.8 to 1.5 ms on a 12-core desktop CPU (3 to 6 ms on one thread), offline, with the same bits from every CPU kernel and thread count of a platform, and the same decisions and spans expected across platforms.
This package bundles the native PureByte runtime and its purebyte command, with thin Python bindings (standard
library only). It runs any PureByte model file, including the three example specialists of the first release: pii
(masks personal data), secrets-code (finds credentials in code) and secrets-bin (finds credentials in binaries).
Install
pip install purebyte
purebyte models pull pii # an example specialist, checked against its SHA-256
Command line
purebyte redact --model pii ticket.txt # personal data masked, the rest copied byte for byte
purebyte scan --model secrets-code . # leaked credentials in a repository
purebyte scan --model my-model.gguf data/ # any model you trained
purebyte bench --model pii # latency and throughput on this machine
Python
import purebyte
redaction = purebyte.redact(open("ticket.txt", "rb").read(), model="pii")
print(redaction.output.decode())
result = purebyte.scan("settings.py", model="secrets-code")
for finding in result.findings:
print(finding.file, finding.line, finding.col, finding.snippet_masked)
Detected values are masked in every output unless you explicitly ask to reveal them.
Learn more
- The architecture, the examples, benchmarks and documentation: https://github.com/purebyte-ai/purebyte
- Train your own specialist: https://github.com/purebyte-ai/purebyte-train/blob/main/docs/training.md
- The Python API: https://github.com/purebyte-ai/purebyte/blob/main/docs/api.md#python
- Licenses: the code is Apache-2.0; the released model weights have their own license (https://github.com/purebyte-ai/purebyte/blob/main/MODEL_LICENSE.md).
Metadata
Release files for purebyte 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| purebyte-1.0.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| purebyte-1.0.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 | Details |
| purebyte-1.0.0-py3-none-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl | Python 3 | none | Linux glibc 2.28+ ARM64, Linux glibc 2.27+ ARM64 | Details |
| purebyte-1.0.0-py3-none-macosx_11_0_x86_64.whl | Python 3 | none | macOS 11.0+ x86-64 | Details |
| purebyte-1.0.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
Total release size: 5.7 MB
Release files / purebyte-1.0.0-py3-none-win_amd64.whl
| Download URL | purebyte-1.0.0-py3-none-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
243c83147c6bcdf397697e76539db733787334d8abc7972d6ac5bd1b6d790bf9
|
|
BLAKE2b-256 checksum How to use checksums |
73d8318e4202803c2b70d8dbd8c47122f52719519ea902373b71677c4fbd2df9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / purebyte-1.0.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | purebyte-1.0.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
5cfe141fdcee04d17fa9dc0d4784ffacc45697ecc8db5f0bb11e49b2c750e14c
|
|
BLAKE2b-256 checksum How to use checksums |
143836ca1acb55a4ceb53664477280e1c23c39b953f444ea48bd621f374e8785
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / purebyte-1.0.0-py3-none-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
| Download URL | purebyte-1.0.0-py3-none-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
d763b1bce4740edc70bdf7479cb7abd57f571a21426148d778758ff0c9751190
|
|
BLAKE2b-256 checksum How to use checksums |
aa661431392855203b2bc7b98f558095005db1cc11b4df9ecca230b8900d1f4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / purebyte-1.0.0-py3-none-macosx_11_0_x86_64.whl
| Download URL | purebyte-1.0.0-py3-none-macosx_11_0_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Python 3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
6bd781caafde1ab4a0d1a36d65a74daefa9a6f32d73bb60af06268f3e0f9b058
|
|
BLAKE2b-256 checksum How to use checksums |
6635a7cdb3b64cb5105d9df06391351cb0bbd90f308fdf8d4cd2d48ed3def6ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / purebyte-1.0.0-py3-none-macosx_11_0_arm64.whl
| Download URL | purebyte-1.0.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 965.0 kB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b6e9127a1ea1512933979835bbc5d08cea17e70dde56dcfa9f91413a3b0c8199
|
|
BLAKE2b-256 checksum How to use checksums |
aa851d2f6f0431706a4abf7a3439510ed683c8884ebaac8fb49316c9375022b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency log