maya-cli 0.1.0__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- maya_cli/__init__.py +1 -0
- maya_cli/cli.py +27 -0
- maya_cli/project_generator.py +28 -0
- maya_cli-0.1.0.dist-info/LICENSE +1 -0
- maya_cli-0.1.0.dist-info/METADATA +25 -0
- maya_cli-0.1.0.dist-info/RECORD +9 -0
- maya_cli-0.1.0.dist-info/WHEEL +5 -0
- maya_cli-0.1.0.dist-info/entry_points.txt +2 -0
- maya_cli-0.1.0.dist-info/top_level.txt +1 -0
maya_cli/__init__.py
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# __init__.py
|
maya_cli/cli.py
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# cli.py
|
2
|
+
import os
|
3
|
+
import click
|
4
|
+
from project_generator import create_project_structure, PROJECT_STRUCTURE
|
5
|
+
|
6
|
+
@click.group()
|
7
|
+
def maya():
|
8
|
+
"Maya CLI - AI Project Generator"
|
9
|
+
pass
|
10
|
+
|
11
|
+
@click.command()
|
12
|
+
@click.argument("project_name")
|
13
|
+
def create(project_name):
|
14
|
+
"Create a new AI project structure"
|
15
|
+
base_path = os.path.join(os.getcwd(), project_name)
|
16
|
+
if os.path.exists(base_path):
|
17
|
+
click.echo(f"Error: Project '{project_name}' already exists.")
|
18
|
+
return
|
19
|
+
os.makedirs(base_path, exist_ok=True)
|
20
|
+
create_project_structure(base_path, PROJECT_STRUCTURE)
|
21
|
+
click.echo(f"✅ AI project '{project_name}' created successfully!")
|
22
|
+
|
23
|
+
# Add commands to CLI
|
24
|
+
maya.add_command(create)
|
25
|
+
|
26
|
+
if __name__ == "__main__":
|
27
|
+
maya()
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# project_generator.py
|
2
|
+
import os
|
3
|
+
|
4
|
+
# Define the AI Project Structure
|
5
|
+
PROJECT_STRUCTURE = {
|
6
|
+
"data_source": {"ingestion": {}, "processing": {}, "storage": {}},
|
7
|
+
"knowledge_base": {"models": {}, "training": {}, "evaluation": {}},
|
8
|
+
"ai_governance": {"compliance": {}, "fairness": {}, "monitoring": {}},
|
9
|
+
"api": {"endpoints": {}, "authentication": {}},
|
10
|
+
"tests": {},
|
11
|
+
"docs": {},
|
12
|
+
"scripts": {},
|
13
|
+
"configs": {}
|
14
|
+
}
|
15
|
+
|
16
|
+
# Function to create folders
|
17
|
+
def create_project_structure(base_path, structure):
|
18
|
+
for folder, subfolders in structure.items():
|
19
|
+
folder_path = os.path.join(base_path, folder)
|
20
|
+
os.makedirs(folder_path, exist_ok=True)
|
21
|
+
|
22
|
+
# Create __init__.py for package folders
|
23
|
+
init_file = os.path.join(folder_path, "__init__.py")
|
24
|
+
with open(init_file, "w") as f:
|
25
|
+
f.write(f"# {folder.replace('_', ' ').title()} package\n")
|
26
|
+
|
27
|
+
if isinstance(subfolders, dict):
|
28
|
+
create_project_structure(folder_path, subfolders)
|
@@ -0,0 +1 @@
|
|
1
|
+
# LICENSE
|
@@ -0,0 +1,25 @@
|
|
1
|
+
Metadata-Version: 2.2
|
2
|
+
Name: maya-cli
|
3
|
+
Version: 0.1.0
|
4
|
+
Summary: Maya CLI - AI Project Generator
|
5
|
+
Home-page: https://github.com/anointingmayami/Maya.ai
|
6
|
+
Author: King Anointing Joseph Mayami
|
7
|
+
Author-email: anointingmayami@gmail.com
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
10
|
+
Classifier: Operating System :: OS Independent
|
11
|
+
Requires-Python: >=3.7
|
12
|
+
Description-Content-Type: text/markdown
|
13
|
+
License-File: LICENSE
|
14
|
+
Requires-Dist: click
|
15
|
+
Dynamic: author
|
16
|
+
Dynamic: author-email
|
17
|
+
Dynamic: classifier
|
18
|
+
Dynamic: description
|
19
|
+
Dynamic: description-content-type
|
20
|
+
Dynamic: home-page
|
21
|
+
Dynamic: requires-dist
|
22
|
+
Dynamic: requires-python
|
23
|
+
Dynamic: summary
|
24
|
+
|
25
|
+
# README.md
|
@@ -0,0 +1,9 @@
|
|
1
|
+
maya_cli/__init__.py,sha256=jp0G4OL3TPgMdTM29D5z7-18KPOrTBZOZO94BQ0fYxQ,16
|
2
|
+
maya_cli/cli.py,sha256=QBM-cVVPjSty9KVmL7AAeBYR6aE0GgggH4MVEq4ABxg,762
|
3
|
+
maya_cli/project_generator.py,sha256=-p7MAqnfzZthO6vKLtesRoTmUn-ZyvOBY1tcmayuPPo,1036
|
4
|
+
maya_cli-0.1.0.dist-info/LICENSE,sha256=7fPhH-OkJP_U7j_vDSSSJwmlJHyt_Z1GN2eX9nrECcs,12
|
5
|
+
maya_cli-0.1.0.dist-info/METADATA,sha256=QNO6B2CwnsbQEHLrRFPjFhMoanXa0xLzYYjjGPxSEDM,712
|
6
|
+
maya_cli-0.1.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
7
|
+
maya_cli-0.1.0.dist-info/entry_points.txt,sha256=qrrQXANVDI7szCjt1H_lUxKQvwLNXuyYiFnsiHA46Xg,39
|
8
|
+
maya_cli-0.1.0.dist-info/top_level.txt,sha256=nZzw8c5hxqres4pU9UUFCTjwBSHUDNjqCTM7yOFnnrE,9
|
9
|
+
maya_cli-0.1.0.dist-info/RECORD,,
|
@@ -0,0 +1 @@
|
|
1
|
+
maya_cli
|