Skip to main content

A vendoring tool for fetching and managing external dependencies.

Project description

Codacy Badge Codacy Badge Documentation Status Build Code style: black GitHub Gitter Libraries.io dependency status for GitHub repo Maintenance GitHub issues PyPI - Python Version PyPI Contribute with Codespaces OpenSSF Best Practices

DFetch can manage dependencies

We make products that can last 15+ years; because of this we want to be able to have all sources available to build the entire project from source without depending on external resources. For this, we needed a dependency manager that was flexible enough to retrieve dependencies as plain text from various sources. svn externals, git submodules and git subtrees solve a similar problem, but not in a VCS-agnostic way or completely user-friendly way. We want self-contained code repositories without any hassle for end-users. Dfetch must promote upstreaming changes, but allow for local customizations. The problem is described thoroughly in managing external dependencies and sometimes is also known as vendoring.

Other tools that do similar things are Zephyr's West, CMake ExternalProject and other meta tools. See alternatives for a complete list.

Getting started | Manual | Troubleshooting | Contributing

Problems DFetch Solves

  • Declarative code reuse across projects (inner sourcing)
  • Compose multi-repo code bases into a single working tree
  • Vendoring dependencies for reproducible builds
  • Apply local patches while keeping upstream syncable
  • VCS-agnostic dependency management
  • Self-contained exports for releases or audits

Install

Stable

pip install dfetch

latest version

pip install git+https://github.com/dfetch-org/dfetch.git#egg=dfetch

Binary distributions

Each release on the releases page provides installers for all major platforms.

  • Linux .deb & .rpm
  • macOS .pkg
  • Windows .msi

Github Action

You can use DFetch in your Github Actions workflow to check your dependencies. The results will be uploaded to Github. Add the following to your workflow file:

jobs:
  dfetch-check:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      security-events: write
    steps:
      - name: Run Dfetch Check
        uses: dfetch-org/dfetch@main
        with:
          working-directory: '.' # optional, defaults to project root

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

dfetch-0.12.1.tar.gz (3.0 MB view details)

Uploaded Source

Built Distribution

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

dfetch-0.12.1-py3-none-any.whl (92.6 kB view details)

Uploaded Python 3

File details

Details for the file dfetch-0.12.1.tar.gz.

File metadata

  • Download URL: dfetch-0.12.1.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dfetch-0.12.1.tar.gz
Algorithm Hash digest
SHA256 47ea118aa372f431737675167a6b5ee5c86348fa00674703c3ea9663d33ef314
MD5 26160afe1aea965151f8ca9476daace5
BLAKE2b-256 e71a44b538ac4d4309dc3b5e8f5fde14220c35be52ca505dca1099ab007233aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for dfetch-0.12.1.tar.gz:

Publisher: python-publish.yml on dfetch-org/dfetch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dfetch-0.12.1-py3-none-any.whl.

File metadata

  • Download URL: dfetch-0.12.1-py3-none-any.whl
  • Upload date:
  • Size: 92.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dfetch-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f55539c06b2c3366f38e026738c67d9bc302bd0e928cc7ab5f5180d0909ce618
MD5 e2086d8e0e779f058de955a277fe2288
BLAKE2b-256 2001ce1f6e717403251306835d69404c4d48714ebcf02815c59451fcaacc1194

See more details on using hashes here.

Provenance

The following attestation bundles were made for dfetch-0.12.1-py3-none-any.whl:

Publisher: python-publish.yml on dfetch-org/dfetch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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