Dev Assistant client
Project description
Dev Assistant
Welcome to the Dev Assistant plugin for ChatGPT.
What is it?
Dev Assistant is a plugin for ChatGPT that assists us developers by executing tasks directly on our clients.
Dev Assistant Client (this repo) is a Python package that is basically the core component of the project. It receives instructions from ChatGPT via Dev Assistant plugin, executes it on any of your clients and send the response back.
Features
The Dev Assistant Local Client is designed to streamline your development process by offering a range of functionalities:
-
File Management: Create, read, update, and delete files. List the contents of a directory. You can manage your files without leaving your conversation with ChatGPT.
-
Git Version Control: Initialize a Git repository, add changes to the staging area, commit changes, and push changes to a remote repository. Get the status of the Git repository. You can manage your Git repositories directly through ChatGPT.
-
Terminal Commands Execution: Execute commands directly in the terminal. You can run any command in your terminal directly from ChatGPT.
Requirements
- 📓 Python 3.11+
- 📓 Pip and Poetry
- 💸 ChatGPT Plus subscription (for plugins store access)
- ⭐ ChatGPT Plugins development access
Installation
- Create a Dev Assistant account at devassistant.tonet.dev
- Generate a token at https://devassistant.tonet.dev/user/api-tokens for ChatGPT and save it. You will need it later.
- Install the local client:
- Install Python
- Run
pip install dev-assistant-clientin your terminal
- Install the ChatGPT plugin:
- In the ChatGPT Plugins Store, click on "Install an unverified plugin" at the bottom of the Plugin store dialog window, paste https://devassistant.tonet.dev and click on "Find plugin".
- ChatGPT will ask you to enter your credentials. Enter the token generated in the second step and click on "Install plugin".
- Activate the plugin in the list of installed plugins and you are ready to start!
Usage
Once installed, just run the following:
dev-assistant
If the CLI is not already authenticated, it will open a browser window where you will be provided with a token. Copy the token including the pipe, and return to the terminal.
If everything runs well, you will see the Dev Assistant CLI presentation and a exclusive CLIENT ID, like this:
╭─────╮ Dev Assistant
│ >_< │ v0.2.34
╰─────╯ https://devassistant.tonet.dev
› Connecting... Connected!
› CLIENT ID: 6a35a11c-f34e-4e30-be46-a9ac4d0f5ac7
› WebSockets... Connected!
› Private channel... Connected!
› Ready! Listening for instructions...
›
You can now ask ChatGPT to access your development environment and execute commands on your behalf by passing the CLIENT ID, or just let ChatGPT discover it by itself.
You can stop the client just doing a CRTL+C in the terminal at any time.
Versioning
To update the version of the package, follow these steps:
- Commit your changes with a descriptive message.
- Create a git tag with the format
vX.Y.ZwhereX.Y.Zis the new version number. - Push your changes and the new tag to the repository.
The GitHub Actions workflow will automatically deploy the new version to PyPi when a new tag is detected.
Contributing
We welcome contributions! If you have an idea for an improvement or have found a bug, please open an issue. Feel free to fork the repository and submit a pull request if you'd like to contribute code. Please follow the code style and conventions used in the existing codebase.
Development
- Fork the repository
- Clone your fork
- Go to the project folder
- Install Dev Assistant Client in local mode with
pip install -e . - Run
dev-assistantin your terminal - Make your changes
- Test your changes
- Commit your changes
- Push your changes
- Open a pull request
- 🎉
License
The Dev Assistant Local Client is open-source software, licensed under the MIT license.
Support
If you encounter any problems or have any questions, don't hesitate to open an issue on GitHub. We're here to help!
Acknowledgements
A big thank you to all contributors and users for your support! We couldn't do it without you.
Authors
Project details
Release history Release notifications | RSS feed
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 dev_assistant_client-0.2.34.tar.gz.
File metadata
- Download URL: dev_assistant_client-0.2.34.tar.gz
- Upload date:
- Size: 34.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.6 Linux/6.2.0-1014-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60976b1473d4e8682ea164f3092183b19a9b8c8f888247e495acfef08ac3fb33
|
|
| MD5 |
8c1d9c0f5f394837f18dfa6a923e8856
|
|
| BLAKE2b-256 |
50913ad5c3c0d655a6719e6031430a34fbe3256a70368fc4191e671fc0a00e38
|
File details
Details for the file dev_assistant_client-0.2.34-py3-none-any.whl.
File metadata
- Download URL: dev_assistant_client-0.2.34-py3-none-any.whl
- Upload date:
- Size: 36.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.6 Linux/6.2.0-1014-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04d02a4ead43f4c5dc8cbd77bd4f5ab28e3fb46e5604dcd6d8da1711668d5ffa
|
|
| MD5 |
cf0c9cc811a081dac221074246fafa12
|
|
| BLAKE2b-256 |
29d089917a1ec0a146db72d3be96c130b11f96caa4f544d097c65e2fe0ba2d09
|