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 +11 -0
- axto-0.1.0/README.md +3 -0
- axto-0.1.0/pyproject.toml +16 -0
- axto-0.1.0/setup.cfg +4 -0
- axto-0.1.0/src/axto/__init__.py +3 -0
- axto-0.1.0/src/axto/core.py +15 -0
- axto-0.1.0/src/axto/terminal.py +11 -0
- axto-0.1.0/src/axto/widgets/base.py +0 -0
- axto-0.1.0/src/axto.egg-info/PKG-INFO +11 -0
- axto-0.1.0/src/axto.egg-info/SOURCES.txt +11 -0
- axto-0.1.0/src/axto.egg-info/dependency_links.txt +1 -0
- axto-0.1.0/src/axto.egg-info/top_level.txt +1 -0
- axto-0.1.0/tests/test.py +15 -0
axto-0.1.0/PKG-INFO
ADDED
axto-0.1.0/README.md
ADDED
|
@@ -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,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
|
|
File without changes
|
|
@@ -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
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
axto
|
axto-0.1.0/tests/test.py
ADDED
|
@@ -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!")
|