clear
A cross-platform Python module that provides a clear() function which clears the terminal. That's all.
To install with pip, run:
pip install clear
You can then clear the screen by running:
from clear import clear
clear()
This function runs the one-liner: os.system('cls' if os.name == 'nt' else 'clear')
This module exists as a simpler alternative to defining this function on your own.
Special thanks to David George for allowing me to use the Clear name on PyPI. The original Clear module ("Command-Line Extract And Rename utility. This provides a media library manager that allows extraction and renaming of media files.") can still be found in the previous releases of this project on PyPI.
Metadata
Release files for clear 2.0.0
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 | |
|---|---|---|---|---|
| clear-2.0.0.tar.gz | 2.1 kB | Without provenance | Details |
Release files / clear-2.0.0.tar.gz
| Download URL | clear-2.0.0.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd6d42575ed65063edef3c46e65aa1b3fc05a144dc1691ba62033ffc35f46368
|
|
BLAKE2b-256 checksum How to use checksums |
17a004e3f6a87245d75956bd254f7e133493ed6e18b49e09c874204cbfe97f42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
|
Security for clear 2.0.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.
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.