Skip to main content

Autonomous dependency upgrader powered by LangGraph and LLMs

Project description

loopgrade

Autonomous dependency upgrader powered by LangGraph and LLMs.

Upgrades your dependencies one at a time, runs your tests, reverts what breaks — without you touching anything.


The Problem

Running ncu -u or pip install --upgrade upgrades everything at once. When something breaks you have no idea which package caused it. So you don't upgrade. Deps rot. Security patches pile up.

loopgrade fixes this — one dependency at a time.


How It Works

  1. Detects all outdated dependencies
  2. Picks one, checks for version conflicts before touching any file
  3. Upgrades it, runs your tests
  4. Tests pass → keeps the change, moves to next dep
  5. Tests fail → reverts the file automatically, logs the reason
  6. Gives you a full report of what upgraded, what failed, and why

Installation

pip install loopgrade

Prerequisites:

  • Python 3.10+
  • For npm projects: npm install -g npm-check-updates
  • A Groq or Gemini API key (both have free tiers)

Quick Start

cd your-project
loopgrade init
# add your API key to .env
loopgrade run

Supported Package Managers

  • npm (package.json)
  • pip (requirements.txt)

Configuration

{
  "llm_provider": "groq",
  "model": "llama-3.3-70b-versatile",
  "max_iterations": 20,
  "max_retries_per_dep": 3,
  "package_manager": "npm",
  "test_command": "npm test",
  "skip_major_versions": false,
  "skip": []
}

Links

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

loopgrade-0.1.2.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

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

loopgrade-0.1.2-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

Details for the file loopgrade-0.1.2.tar.gz.

File metadata

  • Download URL: loopgrade-0.1.2.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for loopgrade-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c6d3ccc2ac4060b41257e083d223dc689ea77d51b00d19d6ad340ac8d698bd4c
MD5 5f304912200ebb4bd91e1884c50fd9d3
BLAKE2b-256 ee0262fb650065d6f19b32542a5768d2df427e6c1d1fd4451834b00aeb94de69

See more details on using hashes here.

File details

Details for the file loopgrade-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: loopgrade-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 29.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for loopgrade-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b8876f7d9486e4012517c17bf611471eaf7d0b465d056371e4afec19b6b8fcc3
MD5 6bd81d58214002a5b03cb34dbd6100e4
BLAKE2b-256 64c6355037597f75f658e857bac9ebb02401f298340f0632865928389bf9ebe2

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