Skip to main content

🧾 disco-tools

Common tools for disco simulation engine.

PyPI License: Apache-2.0 Build Tests


🧭 Overview

disco-tools is a collection of reusable Python utilities supporting simulation, analytics, and data-driven decision systems.
It provides modular building blocks for working with metadata, scheduling, simulation orchestration, and system integration.

Each tool is designed to be:

  • Lightweight — minimal dependencies
  • Composable — works as a standalone library or inside larger systems
  • Fast — optimized for high-throughput, data-heavy environments

Documentation for individual modules is available in the docs/ folder.


✨ Features

  • ⚙️ Label Selector — Fast rule engine for qualifying and filtering metadata.
    → Read documentation ›

  • ⚙️ Multi-Process Logging — Safe, queue-based logging across worker processes using Python's QueueHandler + QueueListener.
    → Read documentation ›

  • 🪤 errsnap — Capture full post-mortem exception snapshots — including arbitrary runtime state — to a self-contained .errsnap file for offline inspection.
    → Read documentation ›


🚀 Installation

pip install disco-tools

🧰 Development Setup

Clone and install in editable mode:

git clone https://github.com/michielmj/disco-tools.git
cd disco-tools
pip install -e .[dev]

Run all tests:

pytest -q

📚 Documentation

  • Label Selector — fast, composable rule engine for key–value metadata
  • Multi-Process Logging — process-safe logging via queue-based architecture
  • errsnap — post-mortem exception snapshots with state capture

Additional module docs will be added under the docs/ directory as the toolkit evolves.


🧪 Example Usage

from disco_tools.label_selector import Label, qualifies

rule = (Label("env") == "prod") + Label("version").gte(10)
meta = {"env": "prod", "version": 12}

if qualifies(meta, rule):
    print("Match!")

🧾 License

Apache 2.0 License © 2025 — part of the disco-tools project.

Metadata

Release files for disco-tools 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for disco-tools 0.2.0
File Size Uploaded Provenance Actions
disco_tools-0.2.0.tar.gz 46.1 kB With provenance Details for disco_tools-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for disco-tools 0.2.0
File Interpreter ABI Platform Actions
disco_tools-0.2.0-py3-none-any.whl Python 3 none any Details for disco_tools-0.2.0-py3-none-any.whl

Total release size: 70.9 kB

Release files / disco_tools-0.2.0.tar.gz

Download URL disco_tools-0.2.0.tar.gz
Size 46.1 kB
Tags Source
SHA-256 checksum
How to use checksums
598188ac6ed6e906108b7fb61b8050b2fc6a0e14e6b8e5ef076a7dfb453ad291
BLAKE2b-256 checksum
How to use checksums
507276f3a249e7b2850e252fcd5f4c037d88c2575e6517551caa1f87735ec344
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 21, 2026.

Transparency log

Release files / disco_tools-0.2.0-py3-none-any.whl

Download URL disco_tools-0.2.0-py3-none-any.whl
Size 24.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76128a7fd07b43f33fb4e8bd07404ba22fb1897bace6f84d1a8123442b263ce1
BLAKE2b-256 checksum
How to use checksums
3a1d0ac1332b9b97fc9a4d00c469730c0ba9ddde877dfc49d57f5135987bd2b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 21, 2026.

Transparency log

Security for disco-tools 0.2.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for disco_tools-0.2.0.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 Nov 21, 2026.

Transparency log

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.

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