datastreamcorelib
Core message types and abstract base classes for ZeroMQ event loop adapters.
CI tests Python 3.12, 3.13, 3.14, and 3.15.
For an asyncio adapter, see https://gitlab.com/advian-oss/python-datastreamservicelib. For a service template, see https://gitlab.com/advian-oss/python-datastreamserviceapp_template.
Local development
Install uv. Create the development environment with Python 3.12 to check compatibility with the oldest supported version:
uv sync --locked --python 3.12 uv run --locked prek install --install-hooks uv run --locked prek run --all-files uv run --locked pytest
To change the interpreter, run uv sync --locked --python 3.14. The hooks use Ruff for linting and formatting, Pyrefly for type checking, and Bandit for security checks. Run each check directly when necessary:
uv run --locked ruff check src tests uv run --locked ruff format --check src tests uv run --locked pyrefly check uv run --locked bandit -r src
Run uv lock after you change dependencies. Commit pyproject.toml and uv.lock together. Run uv build to build the wheel and source distribution.
Version bumps
Preview and apply a patch version bump:
uv run --locked bump-my-version bump patch --dry-run -v uv run --locked bump-my-version bump patch uv lock uv build
The bump updates the project metadata, the package version, the version test, and the image tags in this README. Review the changes before you commit them.
Containers
Dockerfile uses Debian Trixie. Dockerfile_alpine uses Alpine 3.24. Both provide the test, tox, devel_shell, and production targets. Both production images use Python 3.14.
Run the container checks with Docker or Podman:
CONTAINER_ENGINE=docker ./run_tests.sh CONTAINER_ENGINE=podman ./run_tests.sh
To check one variant and target, set VARIANTS and TARGETS:
CONTAINER_ENGINE=podman VARIANTS=debian TARGETS=tox ./run_tests.sh
The script builds from a copy of the source. It uses the package index by default. To add a wheelhouse, set WHEELHOUSE_URL:
VARIANTS=debian WHEELHOUSE_URL=http://host.docker.internal:3141/debian/ ./run_tests.sh
Use the wheelhouse URL for the selected distribution. The script maps host.docker.internal to the host gateway.
Development shell
Build and start a shell:
docker build --target devel_shell -t datastreamcorelib:devel_shell . docker run --rm -it datastreamcorelib:devel_shell
For Podman, replace docker with podman. Add --format docker to the build command. Run uv run --locked pytest inside the shell. Rebuild the image to include source edits.
Tox
Run the tox image with no arguments to test all four Python versions. To test one version, pass its tox environment name:
docker build --target tox -t datastreamcorelib:tox . docker run --rm datastreamcorelib:tox -e py314
Production
Build and run an image with the installed library:
docker build --target production -t datastreamcorelib:1.8.0 . docker run --rm datastreamcorelib:1.8.0
The default command prints the package version. Pass a different command to use the installed library from another program.
Continuous integration
GitLab runs the Python test matrix and builds the wheel and source distribution. It also checks all four container targets on Debian and Alpine. The container jobs require a privileged Docker-in-Docker runner with shared TLS certificates.
Metadata
Release files for datastreamcorelib 1.8.0
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 |
|---|---|---|---|---|
| datastreamcorelib-1.8.0.tar.gz | 87.4 kB | Without provenance | Details for datastreamcorelib-1.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datastreamcorelib-1.8.0-py3-none-any.whl | Python 3 | none | any | Details for datastreamcorelib-1.8.0-py3-none-any.whl |
Total release size: 103.8 kB
Release files / datastreamcorelib-1.8.0.tar.gz
| Download URL | datastreamcorelib-1.8.0.tar.gz |
|---|---|
| Size | 87.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2602ce8b50f8e7aec4475407fe3d96b7120bf0ece09de065addbf2c77bf3bdc9
|
|
BLAKE2b-256 checksum How to use checksums |
041c04c3f2a66deac61279730f910fa6a4480e39ebf0a404f4e4ae92d98bd605
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / datastreamcorelib-1.8.0-py3-none-any.whl
| Download URL | datastreamcorelib-1.8.0-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b45f3f10b21f33d1097e8d014826ad7b930b2a2e67a4b3b6c9dfb0c78c720d3e
|
|
BLAKE2b-256 checksum How to use checksums |
efea09feebe3a782b4cdeea8f7dc36e8b4803edbfb84a79aa3d6a956ca96dd73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Security for datastreamcorelib 1.8.0
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.