Skip to main content

carets

Prototype / experimental: Carets is an early dependency-free Python 3.10+ asyncio terminal UI toolkit. Public APIs may change before 1.0.

Carets provides incremental ANSI input parsing, immutable components, ANSI-aware styling, named zones, forms, and a cell-diffing renderer with DEC synchronized output.

import asyncio
from carets import KeyMsg, Program
from carets.components import TextInput


async def main():
    model = TextInput(placeholder="Type here")
    await Program(model).run()


asyncio.run(main())

The package lives under src/carets; runnable Python files belong under examples/. See the architecture guide for the module boundaries and naming rationale.

The longer-term roadmap is documented in IMPLEMENTATION_PLAN.md.

Development

python -m unittest discover -s tests -v
python -m compileall -q src tests examples

Metadata

Release files for carets 0.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 carets 0.1.0
File Size Uploaded Provenance Actions
carets-0.1.0.tar.gz 10.4 kB With provenance Details for carets-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 22.6 kB

Release files / carets-0.1.0.tar.gz

Download URL carets-0.1.0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7450c4d3a250afe85b43d31812d26baf929710d74991bd820ba79d6a3cad6e5e
BLAKE2b-256 checksum
How to use checksums
fc6301ad037a96720d8165d4b393b3c09acf8e13a757746bac2d849162871374
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 4, 2026.

Transparency log

Release files / carets-0.1.0-py3-none-any.whl

Download URL carets-0.1.0-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f875060b58a242d4a225202a48a5f1f413d81b41380c0ae91779dc9bf461607d
BLAKE2b-256 checksum
How to use checksums
41179793efed39d232ff2c7bc57aa90f42e27ed96972b2d339c983203d9934a8
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 4, 2026.

Transparency log

Security for carets 0.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 carets-0.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 4, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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