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

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.9
File Size Uploaded Provenance Actions
ptymini-0.0.9.tar.gz 20.8 kB With provenance Details for ptymini-0.0.9.tar.gz

Built distributions (wheels)

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

Total release size: 3.7 MB

Release files / ptymini-0.0.9.tar.gz

Download URL ptymini-0.0.9.tar.gz
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
32bbcf09f1664aad168cd706e948e9b74c769cc73ad6b04a7f4e821d8df8fdcb
BLAKE2b-256 checksum
How to use checksums
0eb42c5770988a61b1fc54e78646dce38d4de3885273a3b6d36c46ea62c7f8a0
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 23, 2026.

Transparency log

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

Download URL ptymini-0.0.9-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 314.2 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
fa96a8cd24441bb9343d72ea7ad6dc2965f3a872000358716698b0633faa6209
BLAKE2b-256 checksum
How to use checksums
15259d3f16ef2cdb905dbb5771b40c09b08d3eee22286efa901e46e28aee03ae
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 23, 2026.

Transparency log

Release files / ptymini-0.0.9-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL ptymini-0.0.9-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 311.6 kB
Tags CPython 3.13 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
2bbe2545f0c0eaab333fa053add33232446da19665b200d1d8267aa7a0ce5ee6
BLAKE2b-256 checksum
How to use checksums
bf662ca08b3799878ba9ce129143c3372eb547c818c277e9a760ca5717c93e5c
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 23, 2026.

Transparency log

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

Download URL ptymini-0.0.9-cp313-cp313-macosx_11_0_arm64.whl
Size 283.3 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5b6cb088ba4dce7820e9734243fb14ed50cd128d36204afdbe725aa6b2efe6ca
BLAKE2b-256 checksum
How to use checksums
b33624ff4638bf3b2689bc6fcd7bae32c680fb87b15d37afd657fdd46dd489da
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 23, 2026.

Transparency log

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

Download URL ptymini-0.0.9-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 314.3 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
0cbb8791d0804bb4b8d256a0052d1b1efa0f07924e52403689cd93b2d7929152
BLAKE2b-256 checksum
How to use checksums
16e79ac708918bf4aa9cf5d6c2430d8ff115812cae1c4378e17220d1988fc804
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 23, 2026.

Transparency log

Release files / ptymini-0.0.9-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL ptymini-0.0.9-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 311.6 kB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
7246e3acd294b534714976ef5d081cd5102b69b2c3365b1decf170a116e1e635
BLAKE2b-256 checksum
How to use checksums
7bc377a8eb8c77704642c26e1fc14cd4fda29418924e817cffeb3fd01038b567
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 23, 2026.

Transparency log

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

Download URL ptymini-0.0.9-cp312-cp312-macosx_11_0_arm64.whl
Size 283.4 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
fd8e5c3e4a152edbe6514c0044e418149c9b9450ea7fa671edb199bdaccc873a
BLAKE2b-256 checksum
How to use checksums
acde00243b2f9821d09b2becaf903523ec072f2b05607b29b79baa00f1839483
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 23, 2026.

Transparency log

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

Download URL ptymini-0.0.9-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 315.6 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
aa77bf79b7835f653a067fbbd6cccd677680c6bb67e366f4fdced614f49e0c90
BLAKE2b-256 checksum
How to use checksums
839d5f72baa1938e5cf011a89efcc323da0a09601628ffa71bda93a54ce70a33
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 23, 2026.

Transparency log

Release files / ptymini-0.0.9-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL ptymini-0.0.9-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 313.3 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
26703e2b587ee3641c2f2ef36dbb024456543f0b8ee705bf22036fbafdab9117
BLAKE2b-256 checksum
How to use checksums
408ffca13a4f6710b4ee0b8bd184e167efe4fa0a2599b3a244e347f8b7eb8788
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 23, 2026.

Transparency log

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

Download URL ptymini-0.0.9-cp311-cp311-macosx_11_0_arm64.whl
Size 286.6 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5363f88851220a7d2193580404a0d2f8fcdddaea3ae5e11eaf7079fdfade4d37
BLAKE2b-256 checksum
How to use checksums
53461fea0eeefb3c4383cea4880e309ce573b1933c8d0ebd44f42dad51177a38
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 23, 2026.

Transparency log

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

Download URL ptymini-0.0.9-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 315.8 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
d708c2ed06d70b88e3943beb0de0972d3260a6ccb5f97db1b6cd541fe6d62498
BLAKE2b-256 checksum
How to use checksums
474e9513ef5bad2460c1a5163ef3bab6e63563cd32c76ffad3d9046650ade01c
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 23, 2026.

Transparency log

Release files / ptymini-0.0.9-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL ptymini-0.0.9-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 313.4 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
a9ea9279d73cbb72bf54ecf6b792d6b8afbe976cac715eeadc531711ff4b812f
BLAKE2b-256 checksum
How to use checksums
5b42d78fa51d8bfedb7468a76d00de80f6964d4a1f23e987b82cd90d3f0d26f0
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 23, 2026.

Transparency log

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

Download URL ptymini-0.0.9-cp310-cp310-macosx_11_0_arm64.whl
Size 286.7 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
05b87663e9c8d8c1c97b87c6f5792026b0ec7d15db0c8c71a18b473c13c06e97
BLAKE2b-256 checksum
How to use checksums
0dc50a7e33b747bd93c3d9c87f9a94504d97ec77a1b049cc9885f5e9c7eb29a2
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 23, 2026.

Transparency log

Security for ptymini 0.0.9

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 13 files in this release have been uploaded with provenance metadata.

Select from 13 files

Attestation for ptymini-0.0.9.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 23, 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