Skip to main content

cot.capture

Building blocks for capturing output at different levels: Python's sys.stdout/sys.stderr/sys.stdin slots and the process's file descriptors, with proxies that are closed when their scope ends and say who created them when misused afterwards.

Early, and not released. The design is in docs/design/streams.md; the research it starts from is docs/research.md.

pytest

cot.capture.overtake_pytest is an opt-in pytest plugin that captures test output with cot.capture instead of pytest. Enable it per project:

[pytest]
addopts = -p cot.capture.overtake_pytest

--capture=fd (the default) and --capture=sys map to descriptor and slot level; -s captures nothing; tee-sys is left to pytest. capsys, capfd and pytest's capturemanager keep working. The module docstring lists what differs from pytest's own capture.

Metadata

Release files for cot-capture 0.1.1

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

Source distribution (sdist)

Source distribution for cot-capture 0.1.1
File Size Uploaded Provenance Actions
cot_capture-0.1.1.tar.gz 79.1 kB With provenance Details for cot_capture-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cot-capture 0.1.1
File Interpreter ABI Platform Actions
cot_capture-0.1.1-py3-none-any.whl Python 3 none any Details for cot_capture-0.1.1-py3-none-any.whl

Total release size: 95.8 kB

Release files / cot_capture-0.1.1.tar.gz

Download URL cot_capture-0.1.1.tar.gz
Size 79.1 kB
Tags Source
SHA-256 checksum
How to use checksums
95c1f315a387056571c7b2a08073a04cd72b56b230d4efb49973a4af44f505de
BLAKE2b-256 checksum
How to use checksums
7a2719154128e86cc0486ea76cf8b7b5aa116892ab7f68228629e25fc10e070b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 8, 2026.

Transparency log

Release files / cot_capture-0.1.1-py3-none-any.whl

Download URL cot_capture-0.1.1-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6a41f5295c09058581398230ad3ae6db06d228c30c42fbf801254a88911d048
BLAKE2b-256 checksum
How to use checksums
02492ad09512a961a32aa168c566fcdc299a3849f510ea130beab23c0d788f7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 8, 2026.

Transparency log

Security for cot-capture 0.1.1

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 cot_capture-0.1.1.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 Oct 8, 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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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