envs-xmpp
Shared technical infrastructure for the envs.net XMPP bots envsbot and
muc_banbot.
One distribution intentionally ships two stable Python packages:
envs_xmpp_core: bot-neutral runtime, XMPP, config, storage and release primitives.envs_xmpp_ops: deployment and operations primitives.
Keeping both in one distribution gives runtime and deployment infrastructure one version, one repository and one release pipeline while preserving the existing import APIs used by both bots.
The package contains no bot commands, permissions, database schemas, moderation logic, plugin systems or bot-specific lifecycle policy.
Compatibility
- Python 3.12 and 3.13
- GPL-3.0-only
- no mandatory third-party runtime dependencies
The bots themselves remain responsible for dependencies such as Slixmpp.
Shared storage primitives include SQLite integrity checking and safe ZIP member validation/streaming. Pending room invites use a shared typed model, deduplication and store state machine while each bot keeps only its database adapter and bot-specific notification/join policy. Pagination provides a neutral page-slice model while bot frontends retain their existing command-specific return formats.
Development install
Install the checkout into each bot virtual environment:
python -m pip install -e /path/to/envs-xmpp
Existing imports remain valid:
from envs_xmpp_core.runtime.tasks import TaskSupervisor
from envs_xmpp_ops.profile import DeploymentProfile
Package layout
src/
├── envs_xmpp_core/
│ ├── config/
│ ├── pagination.py
│ ├── release/
│ ├── runtime/
│ ├── storage/
│ │ ├── archive.py
│ │ ├── files.py
│ │ └── sqlite.py
│ └── xmpp/
└── envs_xmpp_ops/
├── accounts.py
├── deploy.py
├── git.py
├── interaction.py
├── paths.py
├── profile.py
├── service.py
├── systemd.py
└── venv.py
envs_xmpp_ops is designed for thin bot-specific deployment frontends. The
frontends keep bot policy such as config migration, database backup/restore and
service hardening local, while shared Git release selection, systemd inspection,
operator confirmation, account/path checks and virtualenv creation live here.
Fresh installs do not assume that this package is already present. Each bot
ships a tiny stdlib-only bootstrap shim. When the exact required envs-xmpp
version is unavailable, that shim creates a versioned cached deployment virtualenv
below $XDG_CACHE_HOME/envs-xmpp/deploy/ (or ~/.cache/envs-xmpp/deploy/),
installs the pinned version from PyPI, and re-executes the deployment frontend.
ENVS_XMPP_DEPLOY_SOURCE can point at a local checkout or wheel for development
and pre-release testing.
CI and PyPI releases
GitHub Actions tests Python 3.12 and 3.13. A vX.Y.Z tag is accepted only when
it exactly matches project.version in pyproject.toml. Release distributions
are published through PyPI Trusted Publishing/OIDC, without a long-lived PyPI
token.
PyPI publishing is configured through the pypi GitHub environment and the
Trusted Publisher for envs-net/envs-xmpp using .github/workflows/release.yml.
Shared developer quality runners
envs_xmpp_ops.quality and envs_xmpp_ops.testing provide the common local
quality/test frontends used by envsbot and muc_banbot. Project-specific source
targets, generated-file checks, integration markers and coverage floors remain
declarative in each repository's pyproject.toml; the runner behavior and gate
ordering stay shared.
The quality runner enforces a common baseline: compilation, project validation, warning-strict tests, Ruff repository/F401/I-UP-B gates, mypy, Git whitespace validation and dependency audit.
Runtime and utility primitives
The shared core also provides heartbeat-aware worker waits, asynchronous release comparison results, and neutral human-readable duration/byte formatting. Applications keep notification policy and domain-specific labels locally.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file envs_xmpp-0.4.0.tar.gz.
File metadata
- Download URL: envs_xmpp-0.4.0.tar.gz
- Upload date:
- Size: 54.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
107d9ba3b7cd093afff968f02664ac5a20cc70232d2b01ed199784261fcfe2b1
|
|
| MD5 |
a96ea20a0f7a461d6d3235cb827c04ce
|
|
| BLAKE2b-256 |
1cf181d83692dd9bbb252b61619526a76249ddb31114ac1abb47456d9161f446
|
Provenance
The following attestation bundles were made for envs_xmpp-0.4.0.tar.gz:
Publisher:
release.yml on envs-net/envs-xmpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
envs_xmpp-0.4.0.tar.gz -
Subject digest:
107d9ba3b7cd093afff968f02664ac5a20cc70232d2b01ed199784261fcfe2b1 - Sigstore transparency entry: 2736190998
- Sigstore integration time:
-
Permalink:
envs-net/envs-xmpp@a1ba011587a052426e2778b4ee03ee55faae86db -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/envs-net
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a1ba011587a052426e2778b4ee03ee55faae86db -
Trigger Event:
push
-
Statement type:
File details
Details for the file envs_xmpp-0.4.0-py3-none-any.whl.
File metadata
- Download URL: envs_xmpp-0.4.0-py3-none-any.whl
- Upload date:
- Size: 55.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bceeef0f328acaffe95026059c276c2243cd099c53b181be146cc076249d8e1
|
|
| MD5 |
b1bbc4e13def917a17afba0560146c64
|
|
| BLAKE2b-256 |
931df2d7d5e31d83a2e87185cca9977dbfcdd2a406482d80e940a50d72b720f7
|
Provenance
The following attestation bundles were made for envs_xmpp-0.4.0-py3-none-any.whl:
Publisher:
release.yml on envs-net/envs-xmpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
envs_xmpp-0.4.0-py3-none-any.whl -
Subject digest:
9bceeef0f328acaffe95026059c276c2243cd099c53b181be146cc076249d8e1 - Sigstore transparency entry: 2736191111
- Sigstore integration time:
-
Permalink:
envs-net/envs-xmpp@a1ba011587a052426e2778b4ee03ee55faae86db -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/envs-net
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a1ba011587a052426e2778b4ee03ee55faae86db -
Trigger Event:
push
-
Statement type: