Skip to main content

Anytext

Anytext is a fork of Textual, a Python framework for building terminal user interfaces.

Try the official demo in your browser.

Installation

pip install anytext

To install this checkout for development:

pip install -e .

Usage

from anytext.app import App, ComposeResult
from anytext.widgets import Header, Footer, Static


class HelloApp(App):
    def compose(self) -> ComposeResult:
        yield Header()
        yield Static("Hello from Anytext!")
        yield Footer()


if __name__ == "__main__":
    HelloApp().run()

Run the bundled demo with python -m anytext.

Configuration uses ANYTEXT_* environment variables, including ANYTEXT_THEME, ANYTEXT_ANIMATIONS, and ANYTEXT_FPS. The default themes are anytext-dark and anytext-light. Set feature flags with ANYTEXT (for example, ANYTEXT=debug).

Upstream tools such as textual-dev, textual-serve, and pytest-textual-snapshot are external packages and may require adaptation for this fork. External package names and links keep their original names.

Textual-compatible imports

Applications can let existing Textual-dependent libraries use Anytext without changing their imports:

from anytext import alias_textual

alias_textual()  # Before importing Textual-dependent libraries.

import your_textual_library

Imports such as textual.app and textual.widgets then share Anytext's modules and classes. Legacy framework CSS selectors, DOM lookups, and default theme names are also supported. See the compatibility guide for startup order, pytest plugins, and dependency metadata limitations.

WebAssembly and thread-free hosts

On Pyodide/WASM, Anytext automatically uses a thread-free runtime and a host-driven terminal driver. Set ANYTEXT_THREADS=0 before importing Anytext to exercise this mode on desktop Python. See the WASM guide for terminal callbacks, async workers, limitations, and the Pyodide smoke test.

License and attribution

Anytext retains the original MIT license and original copyright notices. See LICENSE.

Metadata

Release files for anytext 9.1.0

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

Source distribution (sdist)

Source distribution for anytext 9.1.0
File Size Uploaded Provenance Actions
anytext-9.1.0.tar.gz 1.7 MB With provenance Details for anytext-9.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for anytext 9.1.0
File Interpreter ABI Platform Actions
anytext-9.1.0-py3-none-any.whl Python 3 none any Details for anytext-9.1.0-py3-none-any.whl

Total release size: 2.4 MB

Release files / anytext-9.1.0.tar.gz

Download URL anytext-9.1.0.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
c911380d7c78307ca6c871833c908ee87d9b9f33dab18d69b906462180ef3739
BLAKE2b-256 checksum
How to use checksums
460e97aa2f4069686a35716e08f310c0366f090639ce5132e51cfd8bd3eeb77b
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 8, 2026.

Transparency log

Release files / anytext-9.1.0-py3-none-any.whl

Download URL anytext-9.1.0-py3-none-any.whl
Size 748.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
280225f6b5e1fc699034ba508cf24c899aec8a014906cfa8e2c9408ec8bd2fd8
BLAKE2b-256 checksum
How to use checksums
1f359e53097518c72c21fcc514aca82d85ea2c45ed4f68bc84302a983dbb041f
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 8, 2026.

Transparency log

Security for anytext 9.1.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for anytext-9.1.0.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 8, 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