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.1.8

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.1.8
File Size Uploaded Provenance Actions
disco_tools-0.1.8.tar.gz 45.7 kB With provenance Details for disco_tools-0.1.8.tar.gz

Built distribution (wheel)

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

Total release size: 70.6 kB

Release files / disco_tools-0.1.8.tar.gz

Download URL disco_tools-0.1.8.tar.gz
Size 45.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4eea63e259c03b15ca02d6e61a34aa438469cca4a3980707de11a0ef62c1b154
BLAKE2b-256 checksum
How to use checksums
a4e9f82c2d6aa79d498e0be580405a50ab25d2ba04d217d9998a8ae775b35b12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 10, 2026.

Transparency log

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

Download URL disco_tools-0.1.8-py3-none-any.whl
Size 24.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac13f0df1e8fdf6f4a8c5f1a1f90971c1a51b3d8ec68d30e1c7a5a36756ecae2
BLAKE2b-256 checksum
How to use checksums
f65fecf27a9b7a0031c5842d5837a50a4a769c85e1595787613ac571348deba7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 10, 2026.

Transparency log

Security for disco-tools 0.1.8

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for disco_tools-0.1.8.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 Mar 10, 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