Maya CLI - AI Project Generator
Project description
Maya CLI - Developer Documentation
Overview
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.
Quick Guide to Getting Started with Maya AI
Step 1: Installation and Setup Development Environment
To begin using Maya AI, you need to set up your development environment. Follow these steps:
- Ensure you have Python installed (preferably Python 3.8+).
- Install the required dependencies using pip:
pip install click python-dotenv openai
- Clone the Maya AI repository (if applicable) or set up your project directory.
Step 2: Set Up OpenAI Key in Environment Variables
To integrate OpenAI services, you must configure your API key in an .env file:
- Create a
.envfile in your project directory. - Use the
set_envcommand to store your OpenAI API key:maya set-env OPENAI_API_KEY your_api_key_here
This command will securely save your key in the.envfile.
Step 3: Create a Maya AI Project
Once the environment is set up, you can create a new AI project using the Maya CLI:
- Run the following command to create a new project:
maya create your_project_name
- This will generate the necessary project structure for your AI application.
- Navigate into your project directory and start developing.
Additional Maya AI CLI Commands
-
Check Best Practices:
maya check-best-practices path_to_project
Ensures your project follows AI development best practices.
-
Optimize a File:
maya optimize parent_folder sub_folder filename
Automatically imports optimization scripts to improve performance.
-
Check API Security:
maya is-secured parent_folder sub_folder filename
Runs an AI-based security check on your API implementations.
-
Check Code Ethics:
maya check-ethics parent_folder sub_folder filename
Reviews code for efficiency, accuracy, and ethical standards.
Installation
Before using Maya CLI, ensure that the required dependencies are installed:
pip install -r requirements.txt
Commands
1. Create a New AI Project
Command:
maya create <project_name>
Description:
Creates a new AI project structure.
Example:
maya create my_ai_project
2. Check Best Practices
Command:
maya check-best-practices [folder] [filename]
Description:
Validates Python code against best practices.
Example:
maya check-best-practices api my_script.py
3. Set Environment Variable
Command:
maya set-env <key> <value>
Description:
Sets a key-value pair in the .env file.
Example:
maya set-env OPENAI_API_KEY my_api_key
4. Optimize AI Scripts
Command:
maya optimize [target]
Description:
Optimizes AI scripts with caching and async processing.
Example:
maya optimize my_project
5. Enforce API Security
Command:
maya isSecured <target> [filename]
Description:
Checks and enforces API security measures including authentication, encryption, and rate limiting.
Example:
maya isSecured api my_api.py
6. Check Code Ethics
Command:
maya check-ethics <target> [filename]
Description:
Validates code efficiency, accuracy, and best practices.
Example:
maya check-ethics my_project
7. Generate Documentation
Command:
maya doc <target> <filename>
Description:
Generates a README.md documentation for the given file.
Example:
maya doc api my_script.py
8. Generate Codex Report
Command:
maya codex <target> <filename>
Description:
Provides an in-depth analysis and recommendations for the given file.
Example:
maya codex ai_model model.py
9. Enforce Compliance & Regulation
Command:
maya regulate <target> [filename]
Description:
Ensures compliance with GDPR, CCPA, AI Act, and ISO 42001 AI governance standards.
Example:
maya regulate my_project
Logging
Maya CLI logs all operations in maya_cli.log. Check this file for debugging and issue tracking.
Contact
For support or feature requests, reach out to the development team via GitHub or email.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file maya_cli-0.1.4.tar.gz.
File metadata
- Download URL: maya_cli-0.1.4.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4ac403605dedd105c5f533216132459fb9c427d2c19e4a4cfd53adad3c46e92
|
|
| MD5 |
a40faf28355be4f5ac53db2a8e4bced4
|
|
| BLAKE2b-256 |
8ba9cd196787ef823266aad10869f48b5ffff9ff67f4f96fd7099abaae447023
|
File details
Details for the file maya_cli-0.1.4-py3-none-any.whl.
File metadata
- Download URL: maya_cli-0.1.4-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f16490611f9ba6e45deafa62fd3f0815787e2994657aa8c420ee2d226443671
|
|
| MD5 |
9a26d9758333a2127c3b864656c578a5
|
|
| BLAKE2b-256 |
39390514f624ca2a9e7d7c916b42d0467316b5a50d88fdd5ef2000c9f83eb784
|