AIDebug Console
AIDebug Console is a Python-based command line application that leverages the power of OpenAI's GPT models to assist with debugging and developing software projects. It provides a user-friendly interface for interacting with your codebase, running your project, and even debugging your code with the help of AI.
Features
- Project Management: Select and deselect project files and directories.
- Project Configuration: Configure specific project details such as language, type, framework, and run command.
- Code Execution: Run your project directly from the console. (Automatically catches errors and asks user if they want to debug)
- AI Debugging: Debug your project with the help of OpenAI's GPT Models.
- AI Feature Request: Request a feature for your project from OpenAI's GPT Models.
- AI Code Documentation: Get a README.md file for your project's GitHub repository.
Installation
Install With Pip
pip install aidebug
Manual Build and Install
- Clone the repository to your local machine.
- Navigate to the project directory.
- Install the required Python packages using pip:
pip install setuptools wheel
- Build the project with setup.py:
python setup.py sdist bdist_wheel
- Change directory to the built project:
cd dist
- Install the built .whl file with pip:
pip install aidebug-0.0.8-py3-none-any.whl
Usage
- Set the necessary environment variables. You need to provide your OpenAI API key:
export OPENAI_API_KEY=your_openai_api_key
- Run the project:
aidebug
- Use the
helpcommand to see a list of available commands.
Environment Variables
OPENAI_API_HOST: The API host for OpenAI. Default ishttps://api.openai.com.OPENAI_API_KEY: Your OpenAI API key.
Commands
Here is a brief explanation of the commands available in the AIDebug Console:
cd <directory>: Change the current working directory.exit: Exit the AIDebug Console.project select: Select project files and directories.project deselect: Unselect files and directories by id.project run: Run the project.project files paths: Prints selected files paths.project files contents: Prints selected files path and contents.config project language <language>: Set the programming language of your project.config project type: Set the type of your project.config project framework: Set the framework that your project is using.config project run <command>: Set the command used to run your project.config openai model <model>: Set the OpenAI model to be used.config openai temperature <temperature>: Set the OpenAI model's temperature.debug <error>: Debug your project with the help of OpenAI's GPT Models.feature <feature_request>: Request a feature for your project from OpenAI's GPT Models.readme <optional_message>: Request a README.md file for your project's GitHub repository from OpenAI's GPT Models.
Remember to replace <directory>, <language>, <command>, <model>, <temperature>, <error>, <feature_request>, and <optional_message> with your actual values.
Running System Commands
AIDebug Console allows you to run native system commands directly from the shell. Simply input the desired command, and it will be executed in the console.
For example, to list the files in the current directory, you can use the command ls:
> ls
This feature provides flexibility and convenience for running various system tasks alongside your project debugging and development.
Credits
This project has borrowed code from TheR1D's shell_gpt project. I would like to express my gratitude for the contribution to the open-source community which has greatly aided the development of this project.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
This project is licensed under the GNU v3 GPL-3.0 License. See the LICENSE file for details.
Metadata
Release files for aidebug 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aidebug-0.1.6.tar.gz | 25.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aidebug-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.3 kB
Release files / aidebug-0.1.6.tar.gz
| Download URL | aidebug-0.1.6.tar.gz |
|---|---|
| Size | 25.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
765f80a9dcde23a4157c429357a5e39ebd20b960c65ab8e42d8a196baa9fb2cf
|
|
BLAKE2b-256 checksum How to use checksums |
63ac245a99ec8bc9cd5e6e154580a877692c6474523bfc4c984c9ac91674364b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / aidebug-0.1.6-py3-none-any.whl
| Download URL | aidebug-0.1.6-py3-none-any.whl |
|---|---|
| Size | 25.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
125189fef74a4e42099ce391439c94ba29b73c9f32576faf48bcc8a696dbdb88
|
|
BLAKE2b-256 checksum How to use checksums |
4b4101f3358d8a4367cff55787ca45d5da7868c6c885334dc309e3a6d55d34b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for aidebug 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.