Skip to main content

Dev Assistant client

Project description

Dev Assistant

Welcome to the Dev Assistant project.

What is it?

Dev Assistant is a GPTs, a (tailored version of ChatGPT) that can assist developers by executing tasks directly in our development environment. GPTs are a new way for anyone to create a tailored version of ChatGPT to be more helpful in their daily life, at specific tasks, at work, or at home. For more information about GPTs, please refer to OpenAI's blog post.

This repository contains the Dev Assistant CLI, a Python package that serves as the core component of the project. It receives instructions from Dev Assistant GPT, executes them locally, and sends the response back.

Features

Dev Assistant CLI 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 Dev Assistant GPT.

  • 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 Dev Assistant GPT.

  • Terminal Commands Execution: Execute commands directly in the terminal. You can run any command in your terminal directly from Dev Assistant GPT.

Requirements

  • 📓 Python 3.10+
  • 📓 Pip and Poetry
  • 💸 ChatGPT Plus subscription (for custom GPTs access)
  • Dev Assistant account

Installation

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 unique 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 stop the client just doing a CRTL+C in the terminal at any time.

Commands

Go to Dev Assistant GPT and start a conversation. You can ask for help with the commands, or just let Dev Assistant GPT discover it by itself. It will ask you to login if you are not already logged in.

You can now ask Dev Assistant GPT to do things like:

  • Create a new file called my-file.txt on my Desktop
  • Read a file called other-file.yml
  • Update a file
  • Delete a file
  • List the contents of a directory
  • Initialize a Git repository
  • Add changes to the staging area
  • Commit changes
  • Push changes to a remote repository
  • Get the status of the Git repository
  • Execute a command in the terminal ... and more!

Versioning

To update the version of the package, follow these steps:

  1. Commit your changes with a descriptive message.
  2. Create a git tag with the format vX.Y.Z where X.Y.Z is the new version number.
  3. 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 . or poetry install
  • Run dev-assistant in your terminal to start the CLI. You can use poetry to run the CLI with poetry run dev-assistant
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dev_assistant_client-0.2.37.tar.gz (36.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dev_assistant_client-0.2.37-py3-none-any.whl (40.2 kB view details)

Uploaded Python 3

File details

Details for the file dev_assistant_client-0.2.37.tar.gz.

File metadata

  • Download URL: dev_assistant_client-0.2.37.tar.gz
  • Upload date:
  • Size: 36.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.3 Windows/10

File hashes

Hashes for dev_assistant_client-0.2.37.tar.gz
Algorithm Hash digest
SHA256 0cb758c8d11712bd9deac9bb9d6d05231d6646e88d8c8fc03b02438367e62d35
MD5 49e26887d16b5ad405e12efd4974c0dd
BLAKE2b-256 86c7dbc6324098f2b3dcdd45a2ab648ae065c34ddfc75448e32233fc0ccd9271

See more details on using hashes here.

File details

Details for the file dev_assistant_client-0.2.37-py3-none-any.whl.

File metadata

File hashes

Hashes for dev_assistant_client-0.2.37-py3-none-any.whl
Algorithm Hash digest
SHA256 af022a8bdf222c1c1e20408c3e25c37ddf64038ef22a3ee0b79a785e26f6c60d
MD5 4583d8b04eec88214b1fa553baef9f2d
BLAKE2b-256 94fd72e0fc6590ccb5c6203a91edd6d84c3b82d6704e2813be1208458390a41a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page