Skip to main content

papertlab is an AI pair programmer in your browser.

Project description

Papertlab: Your AI Pair Programmer

Papertlab is your AI-powered pair programmer that lets you seamlessly collaborate with Large Language Models (LLMs) to edit code in your local Git repository or any other codebases. Whether you're starting a new project or working with an existing Git repository, Papertlab is here to help. It works best with Claude 3.5 Sonnet and GPT-4o.

Documentation : Papert Documentation.

Features

  • Run Papertlab with the files you want to edit: Select specific files to focus on during your coding session.
  • Add new features or test cases: Papertlab can help you implement new features or write test cases for your existing code.
  • Refactor your code: Easily refactor your codebase with the assistance of Papertlab.
  • Update documentation: Automatically update your documentation based on code changes or other inputs.
  • Initialize and maintain Git repositories: Papertlab will initialize your Git repository for new projects and manage it efficiently.
  • Automatic Git commits: Papertlab automatically commits changes with sensible commit messages.
  • Support for multiple programming languages: Works with Python, JavaScript, TypeScript, PHP, HTML, CSS, and more.
  • Best with GPT-4o & Claude 3.5 Sonnet: Optimized for these LLMs to provide the best code suggestions and improvements.
  • Edit multiple files at once: Handles complex requests by editing multiple files simultaneously.
  • Works well in larger codebases: Utilizes a map of your entire Git repository to ensure context-aware suggestions and changes.

Installation

Prerequisites

Papertlab requires Universal Ctags for parsing code and generating tags. Follow the instructions below to install Ctags on your operating system.

Installing Universal Ctags

For macOS and Linux (using Homebrew):

  1. Install Homebrew (if not already installed):

  2. Install Universal Ctags:

    brew install --HEAD universal-ctags/universal-ctags/universal-ctags
    

For Windows (using Chocolatey):

  1. Install Chocolatey: Open an elevated Command Prompt and run:

    Set-ExecutionPolicy Bypass -Scope Process -Force; `
    [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; `
    iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
    
  2. Install Universal Ctags:

    choco install ctags
    

Verify Ctags Installation

After installation, verify that Ctags is correctly installed by running the following command in your terminal or command prompt:

ctags --version

Setting Up Papertlab

  1. Create a Virtual Environment:

    Create and activate a virtual environment to keep your dependencies isolated:

    macOS/Linux:

    python3 -m venv papertlab-env
    source papertlab-env/bin/activate
    

    Windows:

    python -m venv papertlab-env
    .\papertlab-env\Scripts\activate
    
  2. Install Papertlab:

    Install the Papertlab package using pip:

    pip install papert-lab
    
  3. Run Papertlab:

    Navigate to your local Git repository or the directory you want to work in, then run:

    papertlab
    
  4. Access Papertlab in Your Browser:

    Open your web browser and go to http://127.0.0.1:5000/ to access the Papertlab interface.

    Demo

Contributing

Contributions are welcome! Please refer to the CONTRIBUTION.md file for guidelines on how to contribute to the project.

Questions and Support

If you have any questions or need support, please don't hesitate to reach out:

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

papert_lab-1.1.4.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

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

papert_lab-1.1.4-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file papert_lab-1.1.4.tar.gz.

File metadata

  • Download URL: papert_lab-1.1.4.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for papert_lab-1.1.4.tar.gz
Algorithm Hash digest
SHA256 1166400da74a9aac80570fc670317c5a1ab0e790e47117c646e06a568286acff
MD5 46c4b63cbc4da1e75b495f01639cd1c5
BLAKE2b-256 88be213cef8f1695d84c47e96978abb3046fd9e87ae726e529ffc10709c0e986

See more details on using hashes here.

File details

Details for the file papert_lab-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: papert_lab-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for papert_lab-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 122c5c1fa75a8d1b34f4bc1c6a52f87ba7f6a512286850d28a1db5c946981593
MD5 e51202bf8d49d6db7df73732e614de3b
BLAKE2b-256 476a0cbba7b130cf8393b1439f705971368190027d3713f1b22b7ad616f8c738

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