Skip to main content

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, store state machine and SQL repository while each bot keeps only a thin database-API adapter and bot-specific notification/join policy. Declarative config-schema primitives provide shared default/type/range/lifecycle metadata; each bot keeps its domain-specific validation, reload behavior and operator-facing wording local. 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, lifecycle phase orchestration, passive HealthCheck/HealthSnapshot diagnostics with failure-isolated collection, normalized task/watchdog/lifecycle diagnostic state, asynchronous release comparison results, and neutral human-readable duration/byte formatting. Applications keep notification policy, active recovery behavior, severity decisions, concrete health checks 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

envs_xmpp-0.7.1.tar.gz (67.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

envs_xmpp-0.7.1-py3-none-any.whl (65.8 kB view details)

Uploaded Python 3

File details

Details for the file envs_xmpp-0.7.1.tar.gz.

File metadata

  • Download URL: envs_xmpp-0.7.1.tar.gz
  • Upload date:
  • Size: 67.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for envs_xmpp-0.7.1.tar.gz
Algorithm Hash digest
SHA256 a7ecc5d2250f40b53661b2564be02f615f8aed08beead01e8e5d792269d2882d
MD5 e44e2d5a2a5911c97519901d5d82d70b
BLAKE2b-256 a6947fbe1373f51fdd70fb9c0cbe11cec4d6db7fef53fc3f20eb2ff1e87e7840

See more details on using hashes here.

Provenance

The following attestation bundles were made for envs_xmpp-0.7.1.tar.gz:

Publisher: release.yml on envs-net/envs-xmpp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file envs_xmpp-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: envs_xmpp-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 65.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for envs_xmpp-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f8c719775cc2d68888c5807a816205e2d88653d27dbaa412139d8c80748d73c4
MD5 529ed79a62ac74183b6d107f6fa5f9f4
BLAKE2b-256 8309fe5b0f6a29b4ab15e192d90088dba059b00e4ca550cea9e7c37eb76bc6c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for envs_xmpp-0.7.1-py3-none-any.whl:

Publisher: release.yml on envs-net/envs-xmpp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

0.11.0

2 files

0.10.4

2 files

0.10.3

2 files

0.10.2

2 files

0.10.1

2 files

0.10.0

2 files

0.9.4

2 files

0.9.3

2 files

0.9.2

2 files

0.9.1

2 files

0.9.0

2 files

0.8.1

2 files

0.8.0

2 files

This release

0.7.1 This release

2 files

0.7.0

2 files

0.6.0

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page