maya-cli 0.1.2__tar.gz → 0.1.4__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.
- {maya_cli-0.1.2 → maya_cli-0.1.4}/PKG-INFO +64 -7
- {maya_cli-0.1.2 → maya_cli-0.1.4}/README.md +191 -134
- maya_cli-0.1.4/maya_cli/cli.py +662 -0
- {maya_cli-0.1.2 → maya_cli-0.1.4}/maya_cli/refactor.py +5 -4
- {maya_cli-0.1.2 → maya_cli-0.1.4}/maya_cli.egg-info/PKG-INFO +64 -7
- {maya_cli-0.1.2 → maya_cli-0.1.4}/setup.py +1 -1
- maya_cli-0.1.2/maya_cli/cli.py +0 -370
- {maya_cli-0.1.2 → maya_cli-0.1.4}/maya_cli/__init__.py +0 -0
- {maya_cli-0.1.2 → maya_cli-0.1.4}/maya_cli/project_generator.py +0 -0
- {maya_cli-0.1.2 → maya_cli-0.1.4}/maya_cli/scripts/__init__.py +0 -0
- {maya_cli-0.1.2 → maya_cli-0.1.4}/maya_cli/scripts/optimize.py +0 -0
- {maya_cli-0.1.2 → maya_cli-0.1.4}/maya_cli.egg-info/SOURCES.txt +0 -0
- {maya_cli-0.1.2 → maya_cli-0.1.4}/maya_cli.egg-info/dependency_links.txt +0 -0
- {maya_cli-0.1.2 → maya_cli-0.1.4}/maya_cli.egg-info/entry_points.txt +0 -0
- {maya_cli-0.1.2 → maya_cli-0.1.4}/maya_cli.egg-info/requires.txt +0 -0
- {maya_cli-0.1.2 → maya_cli-0.1.4}/maya_cli.egg-info/top_level.txt +0 -0
- {maya_cli-0.1.2 → maya_cli-0.1.4}/pyproject.toml +0 -0
- {maya_cli-0.1.2 → maya_cli-0.1.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: maya-cli
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.4
|
4
4
|
Summary: Maya CLI - AI Project Generator
|
5
5
|
Home-page: https://github.com/anointingmayami/Maya.ai
|
6
6
|
Author: King Anointing Joseph Mayami
|
@@ -26,6 +26,63 @@ Dynamic: summary
|
|
26
26
|
## Overview
|
27
27
|
Maya CLI is a command-line interface (CLI) designed to assist in AI project generation, optimization, security enforcement, and best practices validation. This documentation provides a guide on how to use each CLI command effectively.
|
28
28
|
|
29
|
+
# Quick Guide to Getting Started with Maya AI
|
30
|
+
|
31
|
+
## Step 1: Installation and Setup Development Environment
|
32
|
+
To begin using Maya AI, you need to set up your development environment. Follow these steps:
|
33
|
+
|
34
|
+
1. Ensure you have Python installed (preferably Python 3.8+).
|
35
|
+
2. Install the required dependencies using pip:
|
36
|
+
```sh
|
37
|
+
pip install click python-dotenv openai
|
38
|
+
```
|
39
|
+
3. Clone the Maya AI repository (if applicable) or set up your project directory.
|
40
|
+
|
41
|
+
## Step 2: Set Up OpenAI Key in Environment Variables
|
42
|
+
To integrate OpenAI services, you must configure your API key in an `.env` file:
|
43
|
+
|
44
|
+
1. Create a `.env` file in your project directory.
|
45
|
+
2. Use the `set_env` command to store your OpenAI API key:
|
46
|
+
```sh
|
47
|
+
maya set-env OPENAI_API_KEY your_api_key_here
|
48
|
+
```
|
49
|
+
This command will securely save your key in the `.env` file.
|
50
|
+
|
51
|
+
## Step 3: Create a Maya AI Project
|
52
|
+
Once the environment is set up, you can create a new AI project using the Maya CLI:
|
53
|
+
|
54
|
+
1. Run the following command to create a new project:
|
55
|
+
```sh
|
56
|
+
maya create your_project_name
|
57
|
+
```
|
58
|
+
2. This will generate the necessary project structure for your AI application.
|
59
|
+
3. Navigate into your project directory and start developing.
|
60
|
+
|
61
|
+
## Additional Maya AI CLI Commands
|
62
|
+
- **Check Best Practices:**
|
63
|
+
```sh
|
64
|
+
maya check-best-practices path_to_project
|
65
|
+
```
|
66
|
+
Ensures your project follows AI development best practices.
|
67
|
+
|
68
|
+
- **Optimize a File:**
|
69
|
+
```sh
|
70
|
+
maya optimize parent_folder sub_folder filename
|
71
|
+
```
|
72
|
+
Automatically imports optimization scripts to improve performance.
|
73
|
+
|
74
|
+
- **Check API Security:**
|
75
|
+
```sh
|
76
|
+
maya is-secured parent_folder sub_folder filename
|
77
|
+
```
|
78
|
+
Runs an AI-based security check on your API implementations.
|
79
|
+
|
80
|
+
- **Check Code Ethics:**
|
81
|
+
```sh
|
82
|
+
maya check-ethics parent_folder sub_folder filename
|
83
|
+
```
|
84
|
+
Reviews code for efficiency, accuracy, and ethical standards.
|
85
|
+
|
29
86
|
## Installation
|
30
87
|
Before using Maya CLI, ensure that the required dependencies are installed:
|
31
88
|
```sh
|
@@ -49,27 +106,27 @@ maya create my_ai_project
|
|
49
106
|
### 2. Check Best Practices
|
50
107
|
#### Command:
|
51
108
|
```sh
|
52
|
-
maya
|
109
|
+
maya check-best-practices [folder] [filename]
|
53
110
|
```
|
54
111
|
#### Description:
|
55
112
|
Validates Python code against best practices.
|
56
113
|
|
57
114
|
#### Example:
|
58
115
|
```sh
|
59
|
-
maya
|
116
|
+
maya check-best-practices api my_script.py
|
60
117
|
```
|
61
118
|
|
62
119
|
### 3. Set Environment Variable
|
63
120
|
#### Command:
|
64
121
|
```sh
|
65
|
-
maya
|
122
|
+
maya set-env <key> <value>
|
66
123
|
```
|
67
124
|
#### Description:
|
68
125
|
Sets a key-value pair in the `.env` file.
|
69
126
|
|
70
127
|
#### Example:
|
71
128
|
```sh
|
72
|
-
maya
|
129
|
+
maya set-env OPENAI_API_KEY my_api_key
|
73
130
|
```
|
74
131
|
|
75
132
|
### 4. Optimize AI Scripts
|
@@ -101,14 +158,14 @@ maya isSecured api my_api.py
|
|
101
158
|
### 6. Check Code Ethics
|
102
159
|
#### Command:
|
103
160
|
```sh
|
104
|
-
maya
|
161
|
+
maya check-ethics <target> [filename]
|
105
162
|
```
|
106
163
|
#### Description:
|
107
164
|
Validates code efficiency, accuracy, and best practices.
|
108
165
|
|
109
166
|
#### Example:
|
110
167
|
```sh
|
111
|
-
maya
|
168
|
+
maya check-ethics my_project
|
112
169
|
```
|
113
170
|
|
114
171
|
### 7. Generate Documentation
|
@@ -1,134 +1,191 @@
|
|
1
|
-
# Maya CLI - Developer Documentation
|
2
|
-
|
3
|
-
## Overview
|
4
|
-
Maya CLI is a command-line interface (CLI) designed to assist in AI project generation, optimization, security enforcement, and best practices validation. This documentation provides a guide on how to use each CLI command effectively.
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
```
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
```
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
```
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
```
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
```
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
```
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
```
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
```
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
```
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
1
|
+
# Maya CLI - Developer Documentation
|
2
|
+
|
3
|
+
## Overview
|
4
|
+
Maya CLI is a command-line interface (CLI) designed to assist in AI project generation, optimization, security enforcement, and best practices validation. This documentation provides a guide on how to use each CLI command effectively.
|
5
|
+
|
6
|
+
# Quick Guide to Getting Started with Maya AI
|
7
|
+
|
8
|
+
## Step 1: Installation and Setup Development Environment
|
9
|
+
To begin using Maya AI, you need to set up your development environment. Follow these steps:
|
10
|
+
|
11
|
+
1. Ensure you have Python installed (preferably Python 3.8+).
|
12
|
+
2. Install the required dependencies using pip:
|
13
|
+
```sh
|
14
|
+
pip install click python-dotenv openai
|
15
|
+
```
|
16
|
+
3. Clone the Maya AI repository (if applicable) or set up your project directory.
|
17
|
+
|
18
|
+
## Step 2: Set Up OpenAI Key in Environment Variables
|
19
|
+
To integrate OpenAI services, you must configure your API key in an `.env` file:
|
20
|
+
|
21
|
+
1. Create a `.env` file in your project directory.
|
22
|
+
2. Use the `set_env` command to store your OpenAI API key:
|
23
|
+
```sh
|
24
|
+
maya set-env OPENAI_API_KEY your_api_key_here
|
25
|
+
```
|
26
|
+
This command will securely save your key in the `.env` file.
|
27
|
+
|
28
|
+
## Step 3: Create a Maya AI Project
|
29
|
+
Once the environment is set up, you can create a new AI project using the Maya CLI:
|
30
|
+
|
31
|
+
1. Run the following command to create a new project:
|
32
|
+
```sh
|
33
|
+
maya create your_project_name
|
34
|
+
```
|
35
|
+
2. This will generate the necessary project structure for your AI application.
|
36
|
+
3. Navigate into your project directory and start developing.
|
37
|
+
|
38
|
+
## Additional Maya AI CLI Commands
|
39
|
+
- **Check Best Practices:**
|
40
|
+
```sh
|
41
|
+
maya check-best-practices path_to_project
|
42
|
+
```
|
43
|
+
Ensures your project follows AI development best practices.
|
44
|
+
|
45
|
+
- **Optimize a File:**
|
46
|
+
```sh
|
47
|
+
maya optimize parent_folder sub_folder filename
|
48
|
+
```
|
49
|
+
Automatically imports optimization scripts to improve performance.
|
50
|
+
|
51
|
+
- **Check API Security:**
|
52
|
+
```sh
|
53
|
+
maya is-secured parent_folder sub_folder filename
|
54
|
+
```
|
55
|
+
Runs an AI-based security check on your API implementations.
|
56
|
+
|
57
|
+
- **Check Code Ethics:**
|
58
|
+
```sh
|
59
|
+
maya check-ethics parent_folder sub_folder filename
|
60
|
+
```
|
61
|
+
Reviews code for efficiency, accuracy, and ethical standards.
|
62
|
+
|
63
|
+
## Installation
|
64
|
+
Before using Maya CLI, ensure that the required dependencies are installed:
|
65
|
+
```sh
|
66
|
+
pip install -r requirements.txt
|
67
|
+
```
|
68
|
+
|
69
|
+
## Commands
|
70
|
+
### 1. Create a New AI Project
|
71
|
+
#### Command:
|
72
|
+
```sh
|
73
|
+
maya create <project_name>
|
74
|
+
```
|
75
|
+
#### Description:
|
76
|
+
Creates a new AI project structure.
|
77
|
+
|
78
|
+
#### Example:
|
79
|
+
```sh
|
80
|
+
maya create my_ai_project
|
81
|
+
```
|
82
|
+
|
83
|
+
### 2. Check Best Practices
|
84
|
+
#### Command:
|
85
|
+
```sh
|
86
|
+
maya check-best-practices [folder] [filename]
|
87
|
+
```
|
88
|
+
#### Description:
|
89
|
+
Validates Python code against best practices.
|
90
|
+
|
91
|
+
#### Example:
|
92
|
+
```sh
|
93
|
+
maya check-best-practices api my_script.py
|
94
|
+
```
|
95
|
+
|
96
|
+
### 3. Set Environment Variable
|
97
|
+
#### Command:
|
98
|
+
```sh
|
99
|
+
maya set-env <key> <value>
|
100
|
+
```
|
101
|
+
#### Description:
|
102
|
+
Sets a key-value pair in the `.env` file.
|
103
|
+
|
104
|
+
#### Example:
|
105
|
+
```sh
|
106
|
+
maya set-env OPENAI_API_KEY my_api_key
|
107
|
+
```
|
108
|
+
|
109
|
+
### 4. Optimize AI Scripts
|
110
|
+
#### Command:
|
111
|
+
```sh
|
112
|
+
maya optimize [target]
|
113
|
+
```
|
114
|
+
#### Description:
|
115
|
+
Optimizes AI scripts with caching and async processing.
|
116
|
+
|
117
|
+
#### Example:
|
118
|
+
```sh
|
119
|
+
maya optimize my_project
|
120
|
+
```
|
121
|
+
|
122
|
+
### 5. Enforce API Security
|
123
|
+
#### Command:
|
124
|
+
```sh
|
125
|
+
maya isSecured <target> [filename]
|
126
|
+
```
|
127
|
+
#### Description:
|
128
|
+
Checks and enforces API security measures including authentication, encryption, and rate limiting.
|
129
|
+
|
130
|
+
#### Example:
|
131
|
+
```sh
|
132
|
+
maya isSecured api my_api.py
|
133
|
+
```
|
134
|
+
|
135
|
+
### 6. Check Code Ethics
|
136
|
+
#### Command:
|
137
|
+
```sh
|
138
|
+
maya check-ethics <target> [filename]
|
139
|
+
```
|
140
|
+
#### Description:
|
141
|
+
Validates code efficiency, accuracy, and best practices.
|
142
|
+
|
143
|
+
#### Example:
|
144
|
+
```sh
|
145
|
+
maya check-ethics my_project
|
146
|
+
```
|
147
|
+
|
148
|
+
### 7. Generate Documentation
|
149
|
+
#### Command:
|
150
|
+
```sh
|
151
|
+
maya doc <target> <filename>
|
152
|
+
```
|
153
|
+
#### Description:
|
154
|
+
Generates a `README.md` documentation for the given file.
|
155
|
+
|
156
|
+
#### Example:
|
157
|
+
```sh
|
158
|
+
maya doc api my_script.py
|
159
|
+
```
|
160
|
+
|
161
|
+
### 8. Generate Codex Report
|
162
|
+
#### Command:
|
163
|
+
```sh
|
164
|
+
maya codex <target> <filename>
|
165
|
+
```
|
166
|
+
#### Description:
|
167
|
+
Provides an in-depth analysis and recommendations for the given file.
|
168
|
+
|
169
|
+
#### Example:
|
170
|
+
```sh
|
171
|
+
maya codex ai_model model.py
|
172
|
+
```
|
173
|
+
|
174
|
+
### 9. Enforce Compliance & Regulation
|
175
|
+
#### Command:
|
176
|
+
```sh
|
177
|
+
maya regulate <target> [filename]
|
178
|
+
```
|
179
|
+
#### Description:
|
180
|
+
Ensures compliance with GDPR, CCPA, AI Act, and ISO 42001 AI governance standards.
|
181
|
+
|
182
|
+
#### Example:
|
183
|
+
```sh
|
184
|
+
maya regulate my_project
|
185
|
+
```
|
186
|
+
|
187
|
+
## Logging
|
188
|
+
Maya CLI logs all operations in `maya_cli.log`. Check this file for debugging and issue tracking.
|
189
|
+
|
190
|
+
## Contact
|
191
|
+
For support or feature requests, reach out to the development team via GitHub or email.
|