dsline
dsline is a lightweight local dataflow framework for Python data processing and inter-process communication.
Current development follows ROADMAP.md. The first implementation target is a fixed-slot SPSC bytes channel. The current PyO3 ShmChannel binding is an in-process prototype over the dsline-shm fixed-slot SPSC channel; the real OS shared-memory backend is still intentionally gated behind the 0.0.1 implementation work.
Status
This repository is at the first test-version stage. It is suitable for API, packaging, protocol, and benchmark harness validation, but it is not yet the final dual-process shared-memory transport.
Current boundaries:
ShmChannelis an in-process prototype.send/recvfor existing bytes uses a copy path.alloc/publishzero-copy APIs are not exposed.- MPSC, multi-consumer, crash recovery, and real OS shared memory are still future work.
Install for development
python -m pip install "maturin>=1.5,<2"
python -m maturin develop --manifest-path crates/dsline-python/Cargo.toml
import dsline
with dsline.ShmChannel("demo", capacity=4, slot_size=64) as ch:
ch.send(b"hello")
assert ch.recv() == b"hello"
Zero-copy wording follows the project rule:
dsline provides true zero-copy transfer only for eligible shared-memory alloc/publish payloads after the safety gate is complete. Existing
bytes,bytearray, and ndarray values sent throughsend/recvare expected to use a single copy into shared memory.
Implemented prototype pieces:
dsline-core: fixed-slot SPSC bytes ring, checksum, Frame header, metadata TLV encode/decode.dsline-shm: fixed-slot storage trait, in-memory and file-backed storage backends, region state model, and SPSC bytes channel overFREE,WRITING,COMMITTED,PINNED, andCORRUPTED.dsline-python: PyO3ShmChannelbinding over thedsline-shmprototype and Python exception exports.
CLI
python -m dsline info
python -m dsline bench shm --message-size 4096 --count 100000 --json
After installation, the console script is also available:
dsline info
dsline bench shm --message-size 4096 --count 100000 --json
Verification
cargo fmt --all --check
cargo test
python -m maturin build --manifest-path crates/dsline-python/Cargo.toml --interpreter python
python -m unittest discover -s tests/python
License
MIT License.
Metadata
Release files for dsline 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 |
|---|---|---|---|---|
| dsline-0.0.1.tar.gz | 17.1 kB | Without provenance | Details for dsline-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dsline-0.0.1-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details for dsline-0.0.1-cp39-abi3-win_amd64.whl |
Total release size: 322.3 kB
Release files / dsline-0.0.1.tar.gz
| Download URL | dsline-0.0.1.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62e6a773d02689a727984df401a7b41b846c6d350af41991c03f817d23fd6acb
|
|
BLAKE2b-256 checksum How to use checksums |
044b0e4fee425dfc7f9045467de7e5d7404f391ea09620dc12339875d2f71f85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.13.1
|
Release files / dsline-0.0.1-cp39-abi3-win_amd64.whl
| Download URL | dsline-0.0.1-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 305.3 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
d16badd8bc9454f7b37ec250938220cf429a23fb79dcaa73d2f1ccf1f9069f85
|
|
BLAKE2b-256 checksum How to use checksums |
4008963f53c67d4a650731de9b14bf4150b11055e374dd784b2d0be7fa69f722
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.13.1
|
Security for dsline 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.
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.