better-clear
Clear the terminal screen from Python without spawning a subprocess.
import better_clear
better_clear.clear() # clear the screen and scrollback
better_clear.clear(scrollback=False) # keep the scrollback
Unlike os.system("clear"), it doesn't start a shell, doesn't depend on
clear/cls being on PATH, and does nothing when stdout is redirected, so
it never writes escape codes into files or pipes.
It's a small Rust extension built with PyO3 and crossterm, which writes ANSI escape codes on Unix and modern Windows terminals and falls back to the Win32 console API on legacy Windows consoles.
yes this is written with claude
Metadata
Release files for better-clear 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| better_clear-0.1.1.tar.gz | 16.8 kB | Without provenance | Details for better_clear-0.1.1.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| better_clear-0.1.1-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details for better_clear-0.1.1-cp39-abi3-win_amd64.whl |
| better_clear-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ x86-64 | Details for better_clear-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| better_clear-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details for better_clear-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
Total release size: 1.1 MB
Release files / better_clear-0.1.1.tar.gz
| Download URL | better_clear-0.1.1.tar.gz |
|---|---|
| Size | 16.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d0826ec4824bd09262404cc7b49f7c3962eac9050dbd7e5c5a7bf93fe5a58df
|
|
BLAKE2b-256 checksum How to use checksums |
3d5b7f4cff89dbd5c3d4afee8f2783cab585e7e3e921c2d6b08d9579f9ff120d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ultramarine Linux","version":"44","id":"flyingfish","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / better_clear-0.1.1-cp39-abi3-win_amd64.whl
| Download URL | better_clear-0.1.1-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 617.6 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
b45a38e4c3d356b00da1e72487588724c46a2a850cbc45a5ddf1b0274c5e0f09
|
|
BLAKE2b-256 checksum How to use checksums |
69f2b190f7128a25412b0b778286eda3b85850692903ec032749625b24ef0a46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ultramarine Linux","version":"44","id":"flyingfish","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / better_clear-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | better_clear-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 229.0 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
96a053cc08da91b2b3101eca93eb006b9f87d427c3879ce3672f1bed56b6a438
|
|
BLAKE2b-256 checksum How to use checksums |
5ec9d9fb7e6993817cd62dfb1cddd821af5d652ea5c724c8a348ef9d7975ed8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ultramarine Linux","version":"44","id":"flyingfish","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / better_clear-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | better_clear-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 222.0 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
d3a093e197071e07057fb24d6d3819ed0290d5254ed7ff6efe39067c48434b4f
|
|
BLAKE2b-256 checksum How to use checksums |
307f5de0d0d45a733afd308e6a57e99bf9367747321537a7f0efaed3f8225c2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ultramarine Linux","version":"44","id":"flyingfish","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for better-clear 0.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.