airobo 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.
airobo/__init__.py ADDED
@@ -0,0 +1 @@
1
+ #necessary for packaging
airobo/api.py ADDED
@@ -0,0 +1,28 @@
1
+ """
2
+ API callbacks!
3
+ """
4
+
5
+ # ======================================================================================
6
+
7
+
8
+ """
9
+ Simulate publishing something.
10
+ """
11
+ def publish():
12
+ print("Publishing...")
13
+
14
+ #----------------------------------------
15
+
16
+ """
17
+ Simulate checking status.
18
+ """
19
+ def version():
20
+ print("2.2")
21
+
22
+ #----------------------------------------
23
+
24
+ """
25
+ Simulate checking status.
26
+ """
27
+ def status():
28
+ print("Status: OK")
airobo/cli.py ADDED
@@ -0,0 +1,38 @@
1
+ """
2
+ airobo/cli.py
3
+
4
+ CLI for the airobo tool.
5
+ """
6
+ import argparse
7
+ from airobo.api import publish, version, status
8
+
9
+ commands = {
10
+ "publish": publish,
11
+ "version": version,
12
+ "status": status
13
+ }
14
+
15
+
16
+ #---------------------------------------------------------------------------------------------------------
17
+
18
+ def main():
19
+ parser = argparse.ArgumentParser(prog='airobo')
20
+ subparsers = parser.add_subparsers(dest='command', help='Available commands')
21
+
22
+ # Dynamically create subparsers for each command in the commands dictionary
23
+ for command_name in commands.keys():
24
+ subparsers.add_parser(command_name, help=f'Run {command_name} command')
25
+
26
+ args = parser.parse_args()
27
+
28
+ # Iterate through commands dictionary to find matching key and execute callback
29
+ if args.command in commands:
30
+ callback = commands[args.command]
31
+ callback()
32
+ else:
33
+ parser.print_help()
34
+
35
+ #---------------------------------------
36
+
37
+ if __name__ == "__main__":
38
+ main()
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: airobo
3
+ Version: 0.1.0
4
+ Summary: A CLI tool for Airobo tasks
5
+ Author-email: Joshua Morvant <joshua@aiarobo.com>
6
+ Requires-Python: >=3.7
7
+ Description-Content-Type: text/markdown
@@ -0,0 +1,8 @@
1
+ airobo/__init__.py,sha256=wQC93xBJqTm_jHoO4hD_A9SP4vvVAMzOUM3vn_-bsB0,24
2
+ airobo/api.py,sha256=GS0jWFwmxVHav0R3ITeumHCq8JT5skeItkFlHVPRhNQ,448
3
+ airobo/cli.py,sha256=kvD124HsIPmWH3YdfcrtpdTDlfDM-NyX5F3c42QhQq8,1021
4
+ airobo-0.1.0.dist-info/METADATA,sha256=f8qETeqt9j7Fgxx4l2vJYUkwVv6vLZbrVY8SGbH4udI,207
5
+ airobo-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ airobo-0.1.0.dist-info/entry_points.txt,sha256=tWld-TShvEFSonDWXCvsiBq-dNOY3Qo6FI48pd1S7eE,43
7
+ airobo-0.1.0.dist-info/top_level.txt,sha256=3vchuQftD3xE45bZMuHJVTRVpiC8FKJyJwsrGAjfwKg,7
8
+ airobo-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ airobo = airobo.cli:main
@@ -0,0 +1 @@
1
+ airobo