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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: maya-cli
3
- Version: 0.1.2
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 check_best_practices [folder] [filename]
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 check_best_practices api my_script.py
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 set_env <key> <value>
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 set_env OPENAI_API_KEY my_api_key
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 check_ethics <target> [filename]
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 check_ethics my_project
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
- ## Installation
7
- Before using Maya CLI, ensure that the required dependencies are installed:
8
- ```sh
9
- pip install -r requirements.txt
10
- ```
11
-
12
- ## Commands
13
- ### 1. Create a New AI Project
14
- #### Command:
15
- ```sh
16
- maya create <project_name>
17
- ```
18
- #### Description:
19
- Creates a new AI project structure.
20
-
21
- #### Example:
22
- ```sh
23
- maya create my_ai_project
24
- ```
25
-
26
- ### 2. Check Best Practices
27
- #### Command:
28
- ```sh
29
- maya check_best_practices [folder] [filename]
30
- ```
31
- #### Description:
32
- Validates Python code against best practices.
33
-
34
- #### Example:
35
- ```sh
36
- maya check_best_practices api my_script.py
37
- ```
38
-
39
- ### 3. Set Environment Variable
40
- #### Command:
41
- ```sh
42
- maya set_env <key> <value>
43
- ```
44
- #### Description:
45
- Sets a key-value pair in the `.env` file.
46
-
47
- #### Example:
48
- ```sh
49
- maya set_env OPENAI_API_KEY my_api_key
50
- ```
51
-
52
- ### 4. Optimize AI Scripts
53
- #### Command:
54
- ```sh
55
- maya optimize [target]
56
- ```
57
- #### Description:
58
- Optimizes AI scripts with caching and async processing.
59
-
60
- #### Example:
61
- ```sh
62
- maya optimize my_project
63
- ```
64
-
65
- ### 5. Enforce API Security
66
- #### Command:
67
- ```sh
68
- maya isSecured <target> [filename]
69
- ```
70
- #### Description:
71
- Checks and enforces API security measures including authentication, encryption, and rate limiting.
72
-
73
- #### Example:
74
- ```sh
75
- maya isSecured api my_api.py
76
- ```
77
-
78
- ### 6. Check Code Ethics
79
- #### Command:
80
- ```sh
81
- maya check_ethics <target> [filename]
82
- ```
83
- #### Description:
84
- Validates code efficiency, accuracy, and best practices.
85
-
86
- #### Example:
87
- ```sh
88
- maya check_ethics my_project
89
- ```
90
-
91
- ### 7. Generate Documentation
92
- #### Command:
93
- ```sh
94
- maya doc <target> <filename>
95
- ```
96
- #### Description:
97
- Generates a `README.md` documentation for the given file.
98
-
99
- #### Example:
100
- ```sh
101
- maya doc api my_script.py
102
- ```
103
-
104
- ### 8. Generate Codex Report
105
- #### Command:
106
- ```sh
107
- maya codex <target> <filename>
108
- ```
109
- #### Description:
110
- Provides an in-depth analysis and recommendations for the given file.
111
-
112
- #### Example:
113
- ```sh
114
- maya codex ai_model model.py
115
- ```
116
-
117
- ### 9. Enforce Compliance & Regulation
118
- #### Command:
119
- ```sh
120
- maya regulate <target> [filename]
121
- ```
122
- #### Description:
123
- Ensures compliance with GDPR, CCPA, AI Act, and ISO 42001 AI governance standards.
124
-
125
- #### Example:
126
- ```sh
127
- maya regulate my_project
128
- ```
129
-
130
- ## Logging
131
- Maya CLI logs all operations in `maya_cli.log`. Check this file for debugging and issue tracking.
132
-
133
- ## Contact
134
- For support or feature requests, reach out to the development team via GitHub or email.
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.