pylite3
Fast, Zero-Copy Python bindings for lite3.
pylite3 provides high-performance access to lite3 formatted data. It follows the lazy-parsing philosophy (similar to pysimdjson or simdjson), allowing you to access specific fields in large documents instantly without paying the cost of full deserialization.
Data is read directly from the underlying memory buffer—Zero Copy.
🚀 Key Features
- Zero-Copy Loading: Creates a proxy object in microseconds, regardless of document size.
- Lazy Access: Values are only materialized to Python objects when you ask for them.
- Memory Safe: Automatically manages the lifetime of the underlying buffer using Python's reference counting.
- Pythonic API: Works like a
dict(keys/values/items) orlist(slicing/indexing), but faster. - Native Hooks: Supports
object_hook,default, and more for custom serialization/deserialization. - Recursive Writers: Includes a
dumps()function to serialize complex nested Python structures intolite3.
⚡ Benchmarks
Comparison vs pysimdjson for initial load time. Because pylite3 is lazy, it returns control to your program immediately.
| Dataset | Size | pysimdjson (Parse) | pylite3 (Lazy) | Speedup |
|---|---|---|---|---|
| canada.json | 2.25 MB | 68,768 µs | 5.7 µs | 12,047x |
| citm_catalog.json | 1.72 MB | 49,471 µs | 3.6 µs | 13,803x |
| twitter.json | 631 KB | 24,189 µs | 2.0 µs | 12,354x |
See Functionality & Performance for more details.
📦 Installation
Requires a C compiler and Python 3.9+.
# Using uv (Recommended)
uv pip install pysimdjson
# Build from source
git clone --recurse-submodules https://github.com/fastserial/pylite3.git
cd pylite3
# If you already cloned without submodules:
git submodule update --init --recursive
uv pip install -e .
🛠 Usage
Reading Data
import pylite3
# Assume 'data' is bytes containing encoded lite3 data
obj = pylite3.loads(data)
# Access fields instantly
print(obj["users"][0]["name"]) # 'John Doe'
# Check types without converting
if obj["metadata"].is_object:
print("Metadata found")
# Iterate object keys (new!)
for key in obj["users"][0]:
print(f"User key: {key}")
# Slicing support (new!)
first_two_users = obj["users"][:2]
# Convert to standard dictionary
user_dict = dict(obj["users"][0]) # or .as_dict()
Writing Data
import pylite3
payload = {
"id": 12345,
"features": ["lazy", "fast"],
"meta": {"version": 2.0}
}
# Serialize to bytes
encoded_bytes = pylite3.dumps(payload)
📚 Documentation
🤝 Contributing
Contributions are welcome! Please check the Makefile for useful development commands.
make install # Install dependencies
make build # Compile extension
make benchmark # Run verification
make test # Run E2E tests
make coverage # Generate coverage report
Metadata
Release files for pylite3 0.0.1
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 | Actions |
|---|---|---|---|---|
| pylite3-0.0.1.tar.gz | 195.8 kB | With provenance | Details for pylite3-0.0.1.tar.gz |
Built distributions (wheels)
Total release size: 6.3 MB
Release files / pylite3-0.0.1.tar.gz
| Download URL | pylite3-0.0.1.tar.gz |
|---|---|
| Size | 195.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ebbadf68a1887bdf7607cb29647393f227eccd2d00c30d68118fa3d0ca584ac
|
|
BLAKE2b-256 checksum How to use checksums |
63eb54465085029947b2777b98d90696f91beb22a7a14cb5a50d3704faba5320
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 18, 2025.
Transparency logRelease files / pylite3-0.0.1-cp312-cp312-musllinux_1_2_x86_64.whl
| Download URL | pylite3-0.0.1-cp312-cp312-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 501.3 kB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
9145b6731d79df945191d3f5bbbac27d5832f425309c46fe5dd9538110f8f0ab
|
|
BLAKE2b-256 checksum How to use checksums |
751de86899fbcd6d5081ac0fe5382a08e01776eb25c46d8a7c13d4053d38f151
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 18, 2025.
Transparency logRelease files / pylite3-0.0.1-cp312-cp312-musllinux_1_2_i686.whl
| Download URL | pylite3-0.0.1-cp312-cp312-musllinux_1_2_i686.whl |
|---|---|
| Size | 482.6 kB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-32 |
|
SHA-256 checksum How to use checksums |
22fa132e57ee31ab6107a7c213abde2f6cfcfb2c1494eb40584e94b9a6fd417d
|
|
BLAKE2b-256 checksum How to use checksums |
39f4c1dc43e93ea84c81cb3f6c8dd13de240ff1577b6c78ec02e5f6e783026f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 18, 2025.
Transparency logRelease files / pylite3-0.0.1-cp312-cp312-musllinux_1_2_aarch64.whl
| Download URL | pylite3-0.0.1-cp312-cp312-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 481.5 kB |
| Tags | CPython 3.12 Linux musl 1.2+ ARM64 |
|
SHA-256 checksum How to use checksums |
984ca650463561b1ebe52fe10e8dea7d0ff871499195f07e8b59241eb3067b99
|
|
BLAKE2b-256 checksum How to use checksums |
21eec8e5f62fad343efcee28141ee3a88ebefe237ba9b36f2040272b5a542fc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 18, 2025.
Transparency logRelease files / pylite3-0.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pylite3-0.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 507.7 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
2381d49aaaedd8f9ab961a5550c065ab2385a9dcfe87fac7960ed9bd7e8049db
|
|
BLAKE2b-256 checksum How to use checksums |
3577e50b61d473ab227467d631cda14db33717dcd03ea6ffc32ad7b9a0459901
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 18, 2025.
Transparency logRelease files / pylite3-0.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | pylite3-0.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 495.5 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
65634c8db5a4f7c6278c78a50014e00f47a7b049e6293867a61a70ce8dd61e87
|
|
BLAKE2b-256 checksum How to use checksums |
4a24dd46c79cd3c96d8d572e690a75fed5e64bef4190250df29dd4c359ee3710
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 18, 2025.
Transparency logRelease files / pylite3-0.0.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
| Download URL | pylite3-0.0.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl |
|---|---|
| Size | 477.2 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-32 Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
6c69bf9936f707fe9a17a3febb1e36eccbccef9925dfe88258bb7d3b829813ba
|
|
BLAKE2b-256 checksum How to use checksums |
59ee2820e34cc8135b05c6dc0498893b56f5f71df72b2b9aebea58e89e440d95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 18, 2025.
Transparency logRelease files / pylite3-0.0.1-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | pylite3-0.0.1-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 75.4 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b4681fd47ff1686013fbdbf148c7f2025112b91dbae872dd28fbddbdb727b98a
|
|
BLAKE2b-256 checksum How to use checksums |
9d14b073ea5b849f8f399c759536ee4d9dd378080aea62bdef32c0f29a51a61b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 18, 2025.
Transparency logRelease files / pylite3-0.0.1-cp311-cp311-musllinux_1_2_x86_64.whl
| Download URL | pylite3-0.0.1-cp311-cp311-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 499.9 kB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
d2871f0000b6f3829d74244c4ad34c733ad7c58277520be9ddcf7a195f6a8916
|
|
BLAKE2b-256 checksum How to use checksums |
b28097dbeeb19aaf394360da941e4b851edd43dbe8273620574d9ffb80f891ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 18, 2025.
Transparency logRelease files / pylite3-0.0.1-cp311-cp311-musllinux_1_2_i686.whl
| Download URL | pylite3-0.0.1-cp311-cp311-musllinux_1_2_i686.whl |
|---|---|
| Size | 485.9 kB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-32 |
|
SHA-256 checksum How to use checksums |
ec376b0542f9f1943abc59605fd81a8db54a03fd740dd449421e86d7c7b51cb6
|
|
BLAKE2b-256 checksum How to use checksums |
3fe741891d3f6809d55c5879381dd847cc889acbbdf5b8b19e320f6a2fe19574
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 18, 2025.
Transparency logRelease files / pylite3-0.0.1-cp311-cp311-musllinux_1_2_aarch64.whl
| Download URL | pylite3-0.0.1-cp311-cp311-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 488.9 kB |
| Tags | CPython 3.11 Linux musl 1.2+ ARM64 |
|
SHA-256 checksum How to use checksums |
3f1698e61631a629a254beef8b9a20d7fa8016d29016141aeb0d94abc0e22aa6
|
|
BLAKE2b-256 checksum How to use checksums |
d69578b38de1c7bf9970acefe3938ece43966af7f7ad996daee677a73679ca4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 18, 2025.
Transparency logRelease files / pylite3-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pylite3-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 503.9 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
680ab43e2ed7ebb639a9cfb1e17cc1be6258e0a3ff9a9c42c4a303f574b51d25
|
|
BLAKE2b-256 checksum How to use checksums |
215157cb00d8fa9a13e6791e87c1c20757e7e962aa3b635edd7470b36cf0c1ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 18, 2025.
Transparency logRelease files / pylite3-0.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | pylite3-0.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 499.9 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
7d5d3db0fc5c4f72b4e159993d58d7107d06859f0e59dfaf0b8dbc89d0212814
|
|
BLAKE2b-256 checksum How to use checksums |
732bd5fdef56628c00d26ad4e7baef6bffc2a2668ab9bda5463452e3de9848c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 18, 2025.
Transparency logRelease files / pylite3-0.0.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
| Download URL | pylite3-0.0.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl |
|---|---|
| Size | 486.9 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-32 Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
add906efafc647e1e76356d8c79400b0731d22eed0168c0d0ad7735d434f6f4f
|
|
BLAKE2b-256 checksum How to use checksums |
2926133c6566aa497151ebf8f8cea0eafaaf1cff4cbcbafb0d874a7e25e99a6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 18, 2025.
Transparency logRelease files / pylite3-0.0.1-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | pylite3-0.0.1-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 75.4 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
0e8d03a3ee1c220de83c46b9507c8c0460568fc69de70a7109a9e500f359b002
|
|
BLAKE2b-256 checksum How to use checksums |
34caa1f2e3fb25164491dcc5cb63ab289f3e4b94f5a108399304d8bd830ffddd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 18, 2025.
Transparency logSecurity for pylite3 0.0.1
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.
Full provenance
All 15 files in this release have been uploaded with provenance metadata.
Attestation for pylite3-0.0.1.tar.gz
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 Dec 18, 2025.
Transparency logA 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.