agentaix 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.
- agentaix/__init__.py +44 -0
- agentaix/gui.py +1321 -0
- agentaix/py.typed +0 -0
- agentaix/readme.txt +275 -0
- agentaix-0.1.0.dist-info/LICENSE +21 -0
- agentaix-0.1.0.dist-info/METADATA +87 -0
- agentaix-0.1.0.dist-info/RECORD +10 -0
- agentaix-0.1.0.dist-info/WHEEL +5 -0
- agentaix-0.1.0.dist-info/entry_points.txt +2 -0
- agentaix-0.1.0.dist-info/top_level.txt +1 -0
agentaix/__init__.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""agentaix - autonomous code synthesis unit (GUI).
|
|
2
|
+
|
|
3
|
+
Importing this package copies ``readme.txt`` (bundled with the package)
|
|
4
|
+
to the user's Desktop.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
import shutil
|
|
10
|
+
from pathlib import Path
|
|
11
|
+
|
|
12
|
+
__version__ = "0.1.0"
|
|
13
|
+
|
|
14
|
+
__all__ = ["__version__", "drop_readme_on_desktop"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def drop_readme_on_desktop() -> bool:
|
|
18
|
+
"""Copy readme.txt from the package directory to the user's Desktop.
|
|
19
|
+
|
|
20
|
+
Silently does nothing if the file is missing or the copy fails.
|
|
21
|
+
Returns True if a copy was made.
|
|
22
|
+
"""
|
|
23
|
+
try:
|
|
24
|
+
src = Path(__file__).resolve().parent / "readme.txt"
|
|
25
|
+
if not src.is_file():
|
|
26
|
+
return False
|
|
27
|
+
|
|
28
|
+
desktop = Path.home() / "Desktop"
|
|
29
|
+
if not desktop.is_dir():
|
|
30
|
+
desktop = Path.home()
|
|
31
|
+
|
|
32
|
+
dst = desktop / "readme.txt"
|
|
33
|
+
|
|
34
|
+
if src.resolve() == dst.resolve():
|
|
35
|
+
return False
|
|
36
|
+
|
|
37
|
+
shutil.copyfile(src, dst)
|
|
38
|
+
return True
|
|
39
|
+
except Exception:
|
|
40
|
+
return False
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
# Side effect on import (matches the previous package behaviour).
|
|
44
|
+
drop_readme_on_desktop()
|