ezclear 0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ezclear-0.3/PKG-INFO +28 -0
- ezclear-0.3/README.md +19 -0
- ezclear-0.3/ezclear/__init__.py +17 -0
- ezclear-0.3/ezclear.egg-info/PKG-INFO +28 -0
- ezclear-0.3/ezclear.egg-info/SOURCES.txt +7 -0
- ezclear-0.3/ezclear.egg-info/dependency_links.txt +1 -0
- ezclear-0.3/ezclear.egg-info/top_level.txt +1 -0
- ezclear-0.3/pyproject.toml +14 -0
- ezclear-0.3/setup.cfg +4 -0
ezclear-0.3/PKG-INFO
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ezclear
|
|
3
|
+
Version: 0.3
|
|
4
|
+
Summary: Cross-platform terminal clearing library
|
|
5
|
+
Author: Unidex101
|
|
6
|
+
License-Expression: CC0-1.0
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
|
|
10
|
+
# EZCLEAR
|
|
11
|
+
|
|
12
|
+
Simple cross-platform terminal clearing library.
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pip install ezclear
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
from ezclear import clear
|
|
24
|
+
|
|
25
|
+
# Your code
|
|
26
|
+
|
|
27
|
+
clear()
|
|
28
|
+
```
|
ezclear-0.3/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Ezclear lib
|
|
2
|
+
import os
|
|
3
|
+
__version__ = "0.3"
|
|
4
|
+
__author__ = "Unidex101@Github.com"
|
|
5
|
+
__license__ = "CC0"
|
|
6
|
+
__all__ = ["clear", "cls", "__version__", "__author__", "__license__"]
|
|
7
|
+
|
|
8
|
+
_clear_cmd = "cls" if os.name == "nt" else "clear"
|
|
9
|
+
|
|
10
|
+
def clear():
|
|
11
|
+
"""Clears the terminal screen"""
|
|
12
|
+
os.system(_clear_cmd)
|
|
13
|
+
|
|
14
|
+
cls = clear
|
|
15
|
+
|
|
16
|
+
if os.environ.get("MODE", "").lower() == "debug":
|
|
17
|
+
print("OS:", os.name)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ezclear
|
|
3
|
+
Version: 0.3
|
|
4
|
+
Summary: Cross-platform terminal clearing library
|
|
5
|
+
Author: Unidex101
|
|
6
|
+
License-Expression: CC0-1.0
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
|
|
10
|
+
# EZCLEAR
|
|
11
|
+
|
|
12
|
+
Simple cross-platform terminal clearing library.
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pip install ezclear
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
from ezclear import clear
|
|
24
|
+
|
|
25
|
+
# Your code
|
|
26
|
+
|
|
27
|
+
clear()
|
|
28
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ezclear
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "ezclear"
|
|
7
|
+
version = "0.3"
|
|
8
|
+
description = "Cross-platform terminal clearing library"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "CC0-1.0"
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "Unidex101" }
|
|
14
|
+
]
|
ezclear-0.3/setup.cfg
ADDED