ezclear 0.3__py3-none-any.whl
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/__init__.py +17 -0
- ezclear-0.3.dist-info/METADATA +28 -0
- ezclear-0.3.dist-info/RECORD +5 -0
- ezclear-0.3.dist-info/WHEEL +5 -0
- ezclear-0.3.dist-info/top_level.txt +1 -0
ezclear/__init__.py
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,5 @@
|
|
|
1
|
+
ezclear/__init__.py,sha256=9d1aEVkztKpbU_oERydMK4TbCgaWwfapwhRasyNC0fE,387
|
|
2
|
+
ezclear-0.3.dist-info/METADATA,sha256=8GHoZ-mpEFd_gxUKQw2ddn-P9MhksB0YBpF2JNwhDH4,387
|
|
3
|
+
ezclear-0.3.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
4
|
+
ezclear-0.3.dist-info/top_level.txt,sha256=u9vtUKkO7rPQf32slEw57TlTNHRiRJo_XJ1OV-GQlpQ,8
|
|
5
|
+
ezclear-0.3.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ezclear
|