Skip to main content

AI-powered Python dependency fixer using Gemini.

Project description

pydepdoctor

pydepdoctor is a CLI tool that automatically fixes Python dependency conflicts in your requirements.txt using Google's Gemini AI.

Features

  • Automated Fixes: Detects installation errors and asks Gemini to resolve version conflicts.
  • Safe: Only updates versions; does not add new packages.
  • Retry Loop: Retries installation up to 5 times until successful.
  • Cross-Platform: Works on Windows, macOS, and Linux.

Installation

You can install pydepdoctor via pip (after building the package):

pip install .

Usage

1. Initialize

First, set up your Gemini API key:

pydepdoctor init

You will be prompted to enter your API key. It will be validated and saved locally.

2. Fix Dependencies

Navigate to a project with a problematic requirements.txt and run:

pydepdoctor fix

The tool will:

  1. Try to install dependencies.
  2. If it fails, capture the error.
  3. Send the error and requirements.txt to Gemini.
  4. Apply the fix and retry.

Requirements

  • Python 3.7+
  • A valid Google Gemini API Key

License

MIT

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

pydepdoctor-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

pydepdoctor-0.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file pydepdoctor-0.1.0.tar.gz.

File metadata

  • Download URL: pydepdoctor-0.1.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for pydepdoctor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7c1998220df636281bf0c38f7ee1a092309f67ca0c77d1ad6e21c3e4af608bb0
MD5 0d5dd6ea56011ecec4e549d977920943
BLAKE2b-256 70252b75c3f1fa570a018a9d23132d053c3a5a67fd0a36d4e9c5de0e64234f0a

See more details on using hashes here.

File details

Details for the file pydepdoctor-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pydepdoctor-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for pydepdoctor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dad291c6273e998a115d4bcc2f7f51285d61533f19366cdfb3033fc2f82043b7
MD5 ea67c2f0a98c039132ab6be2c4f6f2c6
BLAKE2b-256 0ceb2f5040579baec01b960bee3def965b217a4d1ea36bab55368a2dd800b42a

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