Skip to main content

A smart dependency resolver for Python data science projects.

Project description

DepWeaver 🧩

DepWeaver is an intelligent Python dependency resolver designed to tackle the complex compatibility challenges of data science and machine learning environments.

It navigates "dependency hell" by analyzing the entire dependency graph for your project, including nested and conditional dependencies, and uses a backtracking algorithm to find a set of package versions that are guaranteed to be compatible with each other.


The Problem

Ever seen errors like these?

  • ModuleNotFoundError: No module named 'requests'
  • InvalidVersion: Invalid version
  • A long traceback caused by conflicting versions of numpy.

These issues arise when different packages in your project require incompatible versions of the same underlying library. DepWeaver is built to solve this problem automatically.


How to Use

  1. Create a target.txt file in your project's root directory. List the high-level packages you want to use, one per line.

    # target.txt
    
    pandas
    tensorflow
    scikit-learn
    matplotlib
    
  2. Run DepWeaver. From your terminal, simply run the depweaver command.

    depweaver
    
  3. Get Your Results. DepWeaver will do the hard work and generate a complete, stable requirements.txt file for you. You can then install it with confidence.

    pip install -r requirements.txt
    

Features

  • Deep Graph Traversal: Explores the entire dependency tree, not just top-level requirements.
  • Intelligent Conflict Resolution: Uses a backtracking solver to find a working set of versions, even with complex conflicts.
  • Environment Aware: Understands conditional dependencies and only resolves packages that are compatible with your Python version and OS.
  • Fast Caching: Caches package metadata locally to make subsequent runs feel instant.

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

depweaver-0.1.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

depweaver-0.1.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file depweaver-0.1.1.tar.gz.

File metadata

  • Download URL: depweaver-0.1.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for depweaver-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3423a06879f2fbf8287dbae958420343bb7643618a22662e2dc80ed65b817cf3
MD5 a7ff25faaf79c24b7f6126289125f81b
BLAKE2b-256 8d0c1bb7849e207761e0a71f3ffabd9ce39652077dfe7e5c7c56e1c3e12ccd11

See more details on using hashes here.

File details

Details for the file depweaver-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: depweaver-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for depweaver-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 19de49511fc50f62cacd0132b907a40155ba8f017022d2efa9f48210adc9d282
MD5 47cb7b7e41f726fb933738da171cdc6b
BLAKE2b-256 269fc11394eba0235d04ef9d3435bc022dd3b96bd0767a4a79e49fb78dd2ff50

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