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

Usage

Installation

Install latest from the GitHub repository:

$ pip install git+https://github.com/AnswerDotAI/ptymini.git

or from conda

$ conda install -c AnswerDotAI ptymini

or from pypi

$ pip install ptymini

Documentation

Documentation can be found hosted on this GitHub repository’s pages. Additionally you can find package manager specific guidelines on conda and pypi respectively.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ptymini-0.0.1.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ptymini-0.0.1-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file ptymini-0.0.1.tar.gz.

File metadata

  • Download URL: ptymini-0.0.1.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.2

File hashes

Hashes for ptymini-0.0.1.tar.gz
Algorithm Hash digest
SHA256 aa5dcee3285b138d3bfff37762e55c9977309475c1723f6e869d2b9e9da33598
MD5 808e0a8ed6e5e6a05a0dcb26678fe846
BLAKE2b-256 9e65d46767b95e7809b3cb26f6785dab06a561fb40c3ece2b796b4fe56b08500

See more details on using hashes here.

File details

Details for the file ptymini-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ptymini-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.2

File hashes

Hashes for ptymini-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f19b4815fc73d7514bb243aff4e7482e1821fe3783e17cf6c39b6ea7b9045ee
MD5 20ffecd9425690d60cf41153c8dfdc75
BLAKE2b-256 8b07cbd70d70f76c9af4899c569844bfc1e8bd3448f195e3e81f0d1874ec3489

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page