Skip to main content

ptymini

ptymini fills the gap between ptyprocess (a raw pty fd), pexpect (sync expect loops), and terminado (a pty server welded to tornado): asyncio-native pty sessions. A PtySession is one spawned pty that any number of clients can attach to as independent byte streams, each primed from a byte-bounded replay buffer — so a reconnecting client resumes with recent scrollback instead of a blank screen. The ring and the pty process live in a compiled Rust core; the asyncio surface is pure Python.

A PtyRegistry adds named get-or-create sessions, injected shell setup (rc), and inactivity culling. It carries no server, no framework, and no session persistence beyond the process. Web exposure belongs to the embedding app (e.g. jupygate), and durable session management belongs to tmux.

ptymini.bg is the sync surface, for callers outside an event loop: kernel tools, plain scripts, an LLM deciding between actions. It is the bgterm API, folded in, with sid-named sessions and blocking calls. The wait parameters are fastmux.bg’s. wait_ms bounds the wait for new output. until= returns as soon as the accumulated text matches that regex. settle_ms keeps collecting until output has stopped for that long.

Installation

$ pip install ptymini

Metadata

Release files for ptymini 0.0.7

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

Source distribution (sdist)

Source distribution for ptymini 0.0.7
File Size Uploaded
ptymini-0.0.7.tar.gz 20.5 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for ptymini 0.0.7
File
ptymini-0.0.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details
ptymini-0.0.7-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
ptymini-0.0.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
ptymini-0.0.7-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
ptymini-0.0.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
ptymini-0.0.7-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
ptymini-0.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
ptymini-0.0.7-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details

Total release size: 2.4 MB

Release files / ptymini-0.0.7.tar.gz

Download URL ptymini-0.0.7.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e8b7d8e0c17361e49d052b14b83ef6a87b617f966cf3fd09ce428c0db177326b
BLAKE2b-256 checksum
How to use checksums
6f8c7564c5cf38c2991d7c208c173fd680a60a12c61ec0c6826981212b486f1e
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 10, 2026.

Transparency log

Release files / ptymini-0.0.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL ptymini-0.0.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 306.5 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
0f538e4d6b81b5ae348203bb2dcc47042343c76df689e4f4da89455198dbe40e
BLAKE2b-256 checksum
How to use checksums
b41fe6626a20c85b29a5a218ff46107bb4ab071678bf5b8e9cdad28657051112
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 10, 2026.

Transparency log

Release files / ptymini-0.0.7-cp313-cp313-macosx_11_0_arm64.whl

Download URL ptymini-0.0.7-cp313-cp313-macosx_11_0_arm64.whl
Size 278.7 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9c27267a3041e0478956d646fc36b51ad798b82324588a26322dc94c7f690899
BLAKE2b-256 checksum
How to use checksums
1969fc369684261c1b4bb94bddd5c620e16ab88f3018a7e3c0c864d9b8c6762d
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 10, 2026.

Transparency log

Release files / ptymini-0.0.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL ptymini-0.0.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 306.2 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
bd69145b93af505a2b715e5bab8bca9f6677444da04dd59f57f1b9acc6d86682
BLAKE2b-256 checksum
How to use checksums
2ed4b505130a6cff9c589dfbacd851655eda7c972b712148bb67a280b0239943
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 10, 2026.

Transparency log

Release files / ptymini-0.0.7-cp312-cp312-macosx_11_0_arm64.whl

Download URL ptymini-0.0.7-cp312-cp312-macosx_11_0_arm64.whl
Size 278.6 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ed96255a79cf72f67a88b9c5ebd39b2327f8332c206ae308e578be878deae9d0
BLAKE2b-256 checksum
How to use checksums
9b2d8f9d1fce14c86bfb5a6d9983e762b64d259646aa88725743f1a989e8f6c2
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 10, 2026.

Transparency log

Release files / ptymini-0.0.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL ptymini-0.0.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 307.6 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
7f4f351b09be0e3cd303d914dc3c63d30006c058ca59197486c3f9af6eb46b66
BLAKE2b-256 checksum
How to use checksums
ff9d35c4296f017c56fcf1d895aeb0c88414ca5768bfbe8164131e4d7afa183c
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 10, 2026.

Transparency log

Release files / ptymini-0.0.7-cp311-cp311-macosx_11_0_arm64.whl

Download URL ptymini-0.0.7-cp311-cp311-macosx_11_0_arm64.whl
Size 281.6 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c929f723a32725510aae5dcd50a8909314d26d8557a3fcf509b95bc89e74f0ee
BLAKE2b-256 checksum
How to use checksums
5527ff598b8f890ce2fb5e2fd497207e0eafed76bfb160025da35b3844526889
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 10, 2026.

Transparency log

Release files / ptymini-0.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL ptymini-0.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 307.8 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
9c34b014c6b23ab63aa07ae998907e6e4aad8982e05c291607826ebf3215fb5a
BLAKE2b-256 checksum
How to use checksums
b928d6290996e01cd45901f2a1855d003b28cc62722ae73b7df9b9194f8dbabd
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 10, 2026.

Transparency log

Release files / ptymini-0.0.7-cp310-cp310-macosx_11_0_arm64.whl

Download URL ptymini-0.0.7-cp310-cp310-macosx_11_0_arm64.whl
Size 281.8 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
eb078cb6d5346159ce96fb4e8f7ffb0c18333661e831c7a78d1e0a362903c75b
BLAKE2b-256 checksum
How to use checksums
7bca1206d3c20bddf3e4ffc50e786d94b01430fa9591222eac523de984053024
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 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.7 This release

9 release files

0.0.6

9 release files

0.0.5

9 release files

0.0.4

9 release files

0.0.3

9 release files

0.0.1

2 release 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