Skip to main content

Serve Python CLI applications in the browser using ttyd

Project description

terminaide

A Python package for serving CLI applications in the browser using ttyd.

Installation

pip install terminaide

Usage

from fastapi import FastAPI
from terminaide import serve_tty

app = FastAPI()

serve_tty(app, client_script="path/to/your/script.py")

Development

# Install dependencies
poetry install

# Run test server
poetry run python test-server/main.py

Project details


Download files

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

Source Distribution

terminaide-0.0.1.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

terminaide-0.0.1-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: terminaide-0.0.1.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Darwin/24.3.0

File hashes

Hashes for terminaide-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7a2f5930504e84284261768afddbd612613ab3630bba627c9e73da38f9b8c13c
MD5 b45d56e34396ef7642d40595153fac24
BLAKE2b-256 c899c95437c878873915017af3bece31f92308ca32aaac5c981bb0bd6cc69c5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: terminaide-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Darwin/24.3.0

File hashes

Hashes for terminaide-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fcff967907fee8b1fcce597fc18f4df865d21c7e9deb1157ad71294973747421
MD5 8305dd084b31bca321c60bb9d82bf7ef
BLAKE2b-256 67a96dd19171ead831558953655bdc86ee4e49fd1d88f7a8be85977eea90eb28

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