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

Built distributions (wheels)

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

Total release size: 3.6 MB

Release files / ptymini-0.0.8.tar.gz

Download URL ptymini-0.0.8.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
dc3d4b998ecc2331365abb9b66d791f3b95ac5eef9401c01111d81ce2646d591
BLAKE2b-256 checksum
How to use checksums
731f84eb41a4ed2da268a830d257fa7209026dd3038717db1fbf2725e3bb7583
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 Oct 27, 2026.

Transparency log

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

Download URL ptymini-0.0.8-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 306.6 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
58d08a0c4adf941e04fae36e09126ce0ad56e5c1b35ef750f72051238e2289ea
BLAKE2b-256 checksum
How to use checksums
d01b7ad287cdd549f931aea624683e8dc7dfcc778ebc0a433bcce8484ea45aa6
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 Oct 27, 2026.

Transparency log

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

Download URL ptymini-0.0.8-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 303.8 kB
Tags CPython 3.13 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
e3a679703f107dd7ea5a18658efde627970d590d6142606efeeaf72890a03626
BLAKE2b-256 checksum
How to use checksums
46eaffba7a8082bce129f501d520198a37094303e826140a264af7e0eb6c8f3d
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 Oct 27, 2026.

Transparency log

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

Download URL ptymini-0.0.8-cp313-cp313-macosx_11_0_arm64.whl
Size 277.5 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
509b89644b625a0b1ff675fcae2fd693324c22173a942dfc4f688572021946b5
BLAKE2b-256 checksum
How to use checksums
f0d15c484c0e4acc55179f2389592dba83a34e565a8783b89f68a9227e4528a5
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 Oct 27, 2026.

Transparency log

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

Download URL ptymini-0.0.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 306.4 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
15ec03f17bc5b40c36de507affad4b2d5bd95992f8858f3ddac908ffe64dcb9d
BLAKE2b-256 checksum
How to use checksums
feb2ae8ebbd297606fab87037b0a531cd516c9b05459f0449987e11662b919b2
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 Oct 27, 2026.

Transparency log

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

Download URL ptymini-0.0.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 303.3 kB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
c21a44e10dc4c53679062d24b80fcf02613132aad79d5c54d513690e249b381a
BLAKE2b-256 checksum
How to use checksums
08ae297a64b7f294651aa3204344cfc221e65e156d6bef1a6fa8648f1d311e08
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 Oct 27, 2026.

Transparency log

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

Download URL ptymini-0.0.8-cp312-cp312-macosx_11_0_arm64.whl
Size 277.3 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
070e838f077d5d6f73a6dae701c405bce117dc087c735a663ec7fd01596f076f
BLAKE2b-256 checksum
How to use checksums
dbfe093a46d1b2e9939c10ce9022998e22edf0785c0e21cb46c32d74609675cd
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 Oct 27, 2026.

Transparency log

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

Download URL ptymini-0.0.8-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
84a3a62880bf7261ca4464f167a91ebe4bfbb80bc024008c47a8206ed9ad7982
BLAKE2b-256 checksum
How to use checksums
9c9b208ca7b9388dda5f1d26f6b92925fae3e56fe2187e5c39e0d743630e936d
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 Oct 27, 2026.

Transparency log

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

Download URL ptymini-0.0.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 305.6 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
e438c0aa2088d1c82a5fa0b97d8b4bb696177e187f036d32dd6af22c6629d376
BLAKE2b-256 checksum
How to use checksums
9ea8181120a7ee54242c37c1f14d4682ce16fa3298d26cdde9713aae3b27d3dc
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 Oct 27, 2026.

Transparency log

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

Download URL ptymini-0.0.8-cp311-cp311-macosx_11_0_arm64.whl
Size 279.9 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1480ad67cf5f678e3ca3e5329871bc920328fbf9555d39a7a2b4508cd8db174c
BLAKE2b-256 checksum
How to use checksums
07d891b8432d5a05e969ac29a5dfe07c8646723dbcdd0206d5d5ab0efcc02a4d
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 Oct 27, 2026.

Transparency log

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

Download URL ptymini-0.0.8-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
03ed339fa618ecca4d45b13ec009f1d1de3b2556718a70a5a6ba30dd65d48b4a
BLAKE2b-256 checksum
How to use checksums
821c81fff46f5923e0e29c7726c27ab1fbb8b276a71c5553c3c845d47e6b0eae
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 Oct 27, 2026.

Transparency log

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

Download URL ptymini-0.0.8-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 305.8 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
74a203c08f4a0b93641e2eff3b133bad16160b299fe8ecd284b2946103a44393
BLAKE2b-256 checksum
How to use checksums
0b396759d58713218573e2f7dd40fee662861acc97c26c0960a11de75e43eb74
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 Oct 27, 2026.

Transparency log

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

Download URL ptymini-0.0.8-cp310-cp310-macosx_11_0_arm64.whl
Size 280.1 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e3d0781e852647e075cc79c75d3431a75d37378907526f753a3a6be63cb2412c
BLAKE2b-256 checksum
How to use checksums
da15b5a467bc0f15c9b8b8a3561199968fdc0ded83fe2e83ccf9c626932c6e96
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 Oct 27, 2026.

Transparency log

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

Select from 13 files

Attestation for ptymini-0.0.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 Oct 27, 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