axto 0.1.0__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.
axto/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ from .core import Engine
2
+
3
+ __version__ = "0.0.1"
axto/core.py ADDED
@@ -0,0 +1,15 @@
1
+ import sys
2
+ import tty
3
+ import termios
4
+
5
+ class Engine:
6
+ def __init__(self):
7
+ self.running = False
8
+
9
+ def start(self):
10
+ self.running = True
11
+ # Add switching to raw mode for terminal input
12
+ pass
13
+
14
+ def stop(self):
15
+ self.running = False
axto/terminal.py ADDED
@@ -0,0 +1,11 @@
1
+ import sys
2
+ from turtle import color
3
+ def clear():
4
+ sys.stdout.write("\033[2J")
5
+
6
+ def move(x, y):
7
+ sys.stdout.write(f"\033[{y};{x}H")
8
+
9
+ def write(text, color=""):
10
+ sys.stdout.write(f"{color}{text}\033[0m")
11
+ sys.stdout.flush()
axto/widgets/base.py ADDED
File without changes
@@ -0,0 +1,11 @@
1
+ Metadata-Version: 2.4
2
+ Name: axto
3
+ Version: 0.1.0
4
+ Summary: Simple TUI library.
5
+ Author: Rioxpi
6
+ Requires-Python: >=3.7
7
+ Description-Content-Type: text/markdown
8
+
9
+ # AXTO
10
+
11
+ 1. Simple TUI library
@@ -0,0 +1,8 @@
1
+ axto/__init__.py,sha256=KTdtDxU1WnsjPsEGNiTLsU6T41ZAYpT3DHPGqy3Dwuk,48
2
+ axto/core.py,sha256=g2F0GdZOhc7MLfRHu3RmCbmseLAD4T1wmvAZ1A36mC4,272
3
+ axto/terminal.py,sha256=j2unLWBzgx3uOM2oC-7kUvj_I6uwuLV7O14a9o9buc4,233
4
+ axto/widgets/base.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ axto-0.1.0.dist-info/METADATA,sha256=Pb7OQhlelkDWWZnsy8fWdOYBfSYgBhuMdWsVsBINmLM,186
6
+ axto-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
7
+ axto-0.1.0.dist-info/top_level.txt,sha256=HkpBwq_Rd00AKmDr0exmTtqGlYOQzsG19YbaVTvt9e8,5
8
+ axto-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ axto