Skip to main content

A small example package

Project description

Meet Chippy

License Version Build Status Dependencies Platform

Chippy serves as your command-line companion, offering quick fixes, error analyses, and cheat sheets directly in your terminal environment. It bridges the gap between encountering an error and finding the solution, saving you the hassle of manual searches or sifting through documentation. To make things easier, Chippy goes by their nickname, chip, in the commmand line. Run pip install chippy-ai to get started.

animated

Features

  • Error Analysis: Understand and fix common programming errors with detailed, context-aware suggestions.
  • Cheat Sheets: Instant access to condensed, essential commands for Shell, Git, Python, JavaScript, and more.
  • Model Testing: Experiment with various language models to find the one that best suits your needs.
  • Customizable Appearance: Choose from default themes or customize the colors to match your style.
  • Environment and Configuration Management: Easily manage your settings and environmental variables to streamline your workflow.
  • Local and Remote Model Support: Whether you prefer cloud-based solutions or local installations, Chippy adapts to your setup.

Quick Start

  1. Installation

    Install Chippy using pip:

    pip install chippy-ai
    
  2. Configuration

    Set up your together.ai key:

    • Save API keys in your environment variables for secure access.
    • Enter keys via command bash chip api "YOUR_KEY_HERE"
    • or via the config.ini file
    • Configure Chippy to your liking through the config.ini file or via command-line options.
  3. Usage

    Error Analysis Encounter an error? Let chippy do the initial diagnosis!

    It is important to note that Chippy captures the error by rerunning the last terminal command. This operation is not reccomended if the operation's compile/runtime is long or costly.

    input

    chip error
    

    output

    ╭───────────────────────────────────────────────────────────────╮
    │ Chippy is executing the last command: list                    │
    ╰───────────────────────────────────────────────────────────────╯
    ╭───────────────────────────────────────────────────────────────╮
    │ Error detected: Yes                                           │
    │ Type: CommandNotFoundError | NoSuch                           │
    ╰───────────────────────────────────────────────────────────────╯
    ╭───────────────────────────────────────────────────────────────╮
    │ △ Chippy Detailed Error Analysis △                            │
    ╰───────────────────────────────────────────────────────────────╯
    ╭───────────────────────────────────────────────────────────────╮
    │ The error message "command not found" typically means that    │
    │ the command you entered cannot be located in your system's    │
    │ PATH. In this case, "list" is not a recognized command in     │
    │ your current shell environment.                               │
    │                                                               │
    │ A more common command that serves a similar purpose is "ls",  │
    │ which is used to list the contents of a directory. It's       │
    │ possible that the user may have accidentally typed "list"     │
    │ instead of "ls".                                              │
    ╰───────────────────────────────────────────────────────────────╯
    

    Q&A Have a quick question? Too lazy to switch windows? Chippy can easily answer any of programming questions straight from the commandline.

    input

    chip -q "how do I convert an integer to a string in python?"
    

    output

    ╭───────────────────────────────────────────────────────────────╮
    │ △ Chippy Q&A △                                                │
    ╰───────────────────────────────────────────────────────────────╯
    ╭───────────────────────────────────────────────────────────────╮
    │ Q: how do I convert an integer to a string in python?         │
    │                                                               │
    │ A:  In Python, you can convert an integer to a string using   │
    │ the `str()` function. Here's an example:                      │
    │ ```python                                                     │
    │ num = 123                                                     │
    │ num_str = str(num)                                            │
    │ print(type(num_str))  # <class 'str'>                         │
    │ ```                                                           │
    │ In this example, the integer `123` is converted to a string   │
    │ `'123'` using the `str()` function. The `type()` function is  │
    │ then used to confirm that the result is indeed a string.      │
    ╰───────────────────────────────────────────────────────────────╯
    

    Cheatsheets Forget a basic command? Chippy has you covered with cheatsheets for shell commands, git, python, and javascript

    input

    chip git
    

    output

     ╭───────────────────────────────────────────────────────────────╮
     │ git init - Initialize a new git repository.                   │
     │ $ git init                                                    │
     │                                                               │
     │ git clone - Clone a repository into a new directory.          │
     │ $ git clone https://github.com/user/repo.git                  │
     │                                                               │
     │ git add - Add file contents to the index.                     │
     │ $ git add .                                                   │
     │                                                               │
     │                           ....                                │
     ╰───────────────────────────────────────────────────────────────╯
    

Roadmap

  • Bash/Windows support - currently optimized for ZSH on mac
  • Modular LLM support - switch between local and other hosted models
  • Opt-in perpetual logging - always-on terminal logging unlocks new debugging potential
  • Adding files/functions into context from error message
  • Internet connectivity

Background and Rationale

Why Chippy? In a world where quick access to information is crucial, Chippy aims to reduce the friction experienced by programmers when switching context between coding and searching for solutions or command syntax.

License

Chippy is open-source software licensed under the MIT license.


"Chippy: the friendly CLI assistant, because even small seconds saved make a big difference."

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

chippy_ai-0.2.3.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

chippy_ai-0.2.3-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file chippy_ai-0.2.3.tar.gz.

File metadata

  • Download URL: chippy_ai-0.2.3.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for chippy_ai-0.2.3.tar.gz
Algorithm Hash digest
SHA256 4d5fb3c26d08edfcbcaaabc12f93d1bb597c57b6a231cdd409acfc1eb33c90e0
MD5 f0a8817dcde85bf9cbfa5b521218fdbb
BLAKE2b-256 c00195224dc3d8a8a0fb7fa6f8dc9a9dc3ef267696e05b44bd1652c7ffa46dbc

See more details on using hashes here.

File details

Details for the file chippy_ai-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: chippy_ai-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for chippy_ai-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 74be11cb20cb2549c15cf97763e414adc1d2564b50d4c777d77b3fc7923a2103
MD5 5ce5f375e60211fc4844d683b74bcbba
BLAKE2b-256 1de6fb55466720a88b57c23dda7a3e98a7d58ff151d9e20370f53f40b27afa70

See more details on using hashes here.

Supported by

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