public-ai-python 0.0.86__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.
public_ai_install.py ADDED
@@ -0,0 +1,40 @@
1
+ import os
2
+ import sys
3
+
4
+ REL = os.path.join("packages", "public-ai-sync", "bin", "install-public-ai.sh")
5
+
6
+
7
+ def main():
8
+ launcher = found_launcher()
9
+ if launcher is None:
10
+ sys.stderr.write(
11
+ "public-ai-install: set PUBLIC_AI_DIR to a checkout of this pack\n"
12
+ )
13
+ sys.exit(1)
14
+ consumer = sys.argv[1] if len(sys.argv) > 1 else os.getcwd()
15
+ os.execvp("bash", ["bash", launcher, consumer])
16
+
17
+
18
+ def found_launcher():
19
+ env_dir = os.environ.get("PUBLIC_AI_DIR")
20
+ if env_dir:
21
+ hit = os.path.join(env_dir, REL)
22
+ if os.path.isfile(hit):
23
+ return hit
24
+ return walk_from(os.path.dirname(os.path.abspath(__file__)))
25
+
26
+
27
+ def walk_from(start):
28
+ cur = start
29
+ while True:
30
+ hit = os.path.join(cur, REL)
31
+ if os.path.isfile(hit):
32
+ return hit
33
+ parent = os.path.dirname(cur)
34
+ if parent == cur:
35
+ return None
36
+ cur = parent
37
+
38
+
39
+ if __name__ == "__main__":
40
+ main()
@@ -0,0 +1,9 @@
1
+ Metadata-Version: 2.4
2
+ Name: public-ai-python
3
+ Version: 0.0.86
4
+ Summary: Download the public AI pack
5
+ Author: CodyTVWeber
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/CodyTVWeber/Public-AI
8
+ Project-URL: Repository, https://github.com/CodyTVWeber/Public-AI
9
+ Requires-Python: >=3.9
@@ -0,0 +1,6 @@
1
+ public_ai_install.py,sha256=cMGio_suYbGKftIxmrPdWep7LXcUixNU-WPduKeD3ys,970
2
+ public_ai_python-0.0.86.dist-info/METADATA,sha256=LY1N_v7LIN6SRs6Toy5LYat8EzOgLq0h1P_YNAq1Gwo,295
3
+ public_ai_python-0.0.86.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
4
+ public_ai_python-0.0.86.dist-info/entry_points.txt,sha256=2FfPDYUmb3WmIjvQucNtVOoGXgArB6Yn14EEjZejFfo,61
5
+ public_ai_python-0.0.86.dist-info/top_level.txt,sha256=mvnpr5rt4FD_z9APOVXLFWL6ujgSuIcs8ErItXXa1vo,18
6
+ public_ai_python-0.0.86.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ public-ai-install = public_ai_install:main
@@ -0,0 +1 @@
1
+ public_ai_install