axto 0.1.0__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.
axto-0.1.0/PKG-INFO ADDED
@@ -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
axto-0.1.0/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # AXTO
2
+
3
+ 1. Simple TUI library
@@ -0,0 +1,16 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "axto"
7
+ version = "0.1.0"
8
+ description = "Simple TUI library."
9
+ readme = "README.md"
10
+ requires-python = ">=3.7"
11
+ authors = [
12
+ { name = "Rioxpi" }
13
+ ]
14
+
15
+ [tool.setuptools.packages.find]
16
+ where = ["src"]
axto-0.1.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ from .core import Engine
2
+
3
+ __version__ = "0.0.1"
@@ -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
@@ -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()
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,11 @@
1
+ README.md
2
+ pyproject.toml
3
+ src/axto/__init__.py
4
+ src/axto/core.py
5
+ src/axto/terminal.py
6
+ src/axto.egg-info/PKG-INFO
7
+ src/axto.egg-info/SOURCES.txt
8
+ src/axto.egg-info/dependency_links.txt
9
+ src/axto.egg-info/top_level.txt
10
+ src/axto/widgets/base.py
11
+ tests/test.py
@@ -0,0 +1 @@
1
+ axto
@@ -0,0 +1,15 @@
1
+ from axto import Engine
2
+
3
+ def test_engine():
4
+ engine = Engine()
5
+ assert not engine.running, "Engine should not be running initially"
6
+
7
+ engine.start()
8
+ assert engine.running, "Engine should be running after start()"
9
+
10
+ engine.stop()
11
+ assert not engine.running, "Engine should not be running after stop()"
12
+
13
+ if __name__ == "__main__":
14
+ test_engine()
15
+ print("All tests passed!")