A package to count terminal executions and clear the terminal after a specified limit
Project description
CountNClear
🇬🇧 CountNClear - Terminal Cleaner Utility
CountNClear is a small Python package that counts how many times a script has been executed in the terminal and clears it when a specified limit is reached.
🛠 Installation
pip install countnclear
🚀 Usage
from countnclear import CountFlushTerm
# Set script to clear terminal after 5 executions
CountFlushTerm(5)
📜 Example script (example.py)
Save the following code as example.py and run it:
from countnclear import CountFlushTerm
import time
for i in range(10):
print(f"Running test: {i + 1}")
CountFlushTerm(5) # Clears the terminal after 5 executions
time.sleep(1)
🇺🇿 CountNClear - Terminal tozalovchi vosita
CountNClear - bu terminalda skript necha marta ishga tushirilganini hisoblaydigan va belgilangan limitga yetganda terminalni tozalaydigan kichik kutubxona.
🛠 O'rnatish
pip install countnclear
🚀 Foydalanish
from countnclear import CountFlushTerm
# Skriptni 5 martadan keyin terminalni tozalash uchun sozlash
CountFlushTerm(5)
📜 Namuna skript (example.py)
Quyidagi kodni example.py nomi bilan saqlang va ishga tushiring:
from countnclear import CountFlushTerm
import time
for i in range(10):
print(f"Test ishlamoqda: {i + 1}")
CountFlushTerm(5) # 5 martadan keyin terminalni tozalaydi
time.sleep(1)
🇷🇺 CountNClear - Утилита очистки терминала
CountNClear - это небольшой Python-пакет, который считает, сколько раз скрипт был запущен в терминале, и очищает его при достижении заданного лимита.
🛠 Установка
pip install countnclear
🚀 Использование
from countnclear import CountFlushTerm
# Очистка терминала после 5 запусков
CountFlushTerm(5)
📜 Пример скрипта (example.py)
Сохраните следующий код в файл example.py и запустите:
from countnclear import CountFlushTerm
import time
for i in range(10):
print(f"Тест выполняется: {i + 1}")
CountFlushTerm(5) # Очищает терминал после 5 запусков
time.sleep(1)
🔗 Site: click
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file countnclear-1.0.0.tar.gz.
File metadata
- Download URL: countnclear-1.0.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16bc943f726949e5f39dd4c9d662f9f10b39791b84d57d45339267e36f2aaaad
|
|
| MD5 |
507d4d5f723ff4ea047d6ec65d63a541
|
|
| BLAKE2b-256 |
188d10de984f2788c07e3b2b3d0ab91408330a472e94b278099522d4cc382666
|
File details
Details for the file countnclear-1.0.0-py3-none-any.whl.
File metadata
- Download URL: countnclear-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21fce0ce2bace26a0c930eb028e897e4c749e385c147237aeea38d3fae1fea1c
|
|
| MD5 |
7df293e0cdf2339651a84f81588c236d
|
|
| BLAKE2b-256 |
152b4d4e52a37fcbb9356a2111709580b33e9d422f4c44f2fa82a3a3303cb694
|