Skip to main content

AI-powered tool for creating, analyzing, and modifying files using natural language

Project description

Filepilot 🚀✨

License Python Version Version

Filepilot is an AI-powered tool for creating, analyzing, and modifying files using Natural Language Processing (NLP). It provides a command-line interface (CLI) for interacting with Anthropic's Claude AI assistant using the Claude-3-5-Sonnet model, leveraging its capabilities to generate file content, analyze existing files, and apply edits based on natural language instructions.

Demo

Demo

Features ✨

  • 🆕 Create: Generate new files with AI-generated content based on a description and optional reference files
  • 🔍 Analyze: Get a concise summary of a file's main purpose using NLP
  • 🚀 Modify: Edit existing files by providing natural language instructions, with syntax-highlighted visual diffs for reviewing changes
  • 🤖 Powered by Claude-3: Harness the power of Anthropic's Claude-3-5-Sonnet model to streamline file operations

Installation 🛠️

You can install Filepilot using pip:

pip install filepilot

Or install from source:

  1. Clone the repository:
git clone https://github.com/joaompinto/filepilot.git
cd filepilot
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Set up your Anthropic API key:
export ANTHROPIC_API_KEY="your-api-key-here"

Usage 📖

The package provides a command-line interface:

filepilot --help

This will display the available commands and options. Here are a few examples:

# Create a new file
filepilot create README.md "Generate a README file for the Filepilot project"

# Analyze an existing file
filepilot analyze filepilot.py

# Modify an existing file
filepilot change filepilot.py "Add a new feature to handle CSV files"

# Update an existing file from analyzing reference files
filepilot update requirements.txt app.py

For detailed diffs and verbose output, you can enable verbose mode:

export VERBOSE_MODE=true

Contributing 🤝

Contributions are welcome! Please follow the contributing guidelines for more information.

License 📄

This project is licensed under the MIT License.

For Docker installation and usage instructions, see the Docker Guide.

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

filepilot-0.3.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

filepilot-0.3.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file filepilot-0.3.0.tar.gz.

File metadata

  • Download URL: filepilot-0.3.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for filepilot-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4a5346af32a99e1922b1b2acde37c075000f9861f3324dd6c652e8109b9baddc
MD5 883171a6a2dd8f34d30928ba2c08e7f5
BLAKE2b-256 d2983cb81d78ed9b9f8f76672bc0ee82bef19893332bb69a2e8562b18f74a6ed

See more details on using hashes here.

File details

Details for the file filepilot-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: filepilot-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for filepilot-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95dabf289d39f7b3c42c4b21c7dd2379f34a0e645bbfaa07c73e9e660d22c544
MD5 fa3d9c190facb3d1c2a8497fc97f2676
BLAKE2b-256 fe82cd47d160ffc8825860dd271beab6c774d38e6fbe554ee8be6f456859ebf0

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