Skip to main content

Depcheck: Dependency Checker

Depcheck is a command line code-quality tool which supports adopting a layered architecture by making it possible to specify dependency constraints between packages of your own Python application. The tool aims to achieve the same goals as Deptrac in PHP and JDepend in Java

Install

  • Via poetry (recommended): Install with poetry add depcheck
  • Via pip: Install from Pypi via pip install depcheck

Usage

To run via CLI you run:

depcheck <root_dir> -f <config_file>

# Or, with poetry
poetry run depcheck <root_dir> -f <config_file>

The example directory demonstrates how the tool works.

cd example

poetry run depcheck example -f .depcheck.ok.yml  # This should be correct
poetry run depcheck example -f .depcheck.errors.yml  # This should give errors

To understand how to configure the tool, look inside the YML files. The -f argument is optional. Implicitly, the tool will look for .depcheck.yml.

NOTE: Package directories should contain __init__.py to be recognized as a package!

Contributing

All contributions are welcomed! See our CONTRIBUTING.md document.

Metadata

Release files for depcheck 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for depcheck 0.3.2
File Size Uploaded Provenance Actions
depcheck-0.3.2.tar.gz 5.8 kB Without provenance Details for depcheck-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for depcheck 0.3.2
File Interpreter ABI Platform Actions
depcheck-0.3.2-py3-none-any.whl Python 3 none any Details for depcheck-0.3.2-py3-none-any.whl

Total release size: 13.4 kB

Release files / depcheck-0.3.2.tar.gz

Download URL depcheck-0.3.2.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
93987b5ff93f026edd4c43544ecf1256abce78230f308b5fd6bb6e9dcb89c5ab
BLAKE2b-256 checksum
How to use checksums
7865f69b2de2fb1a90630766e2aa0305e58794ea751fbae145b3457bbe2d895d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.9.16 Linux/5.4.219-126.411.amzn2.x86_64

Release files / depcheck-0.3.2-py3-none-any.whl

Download URL depcheck-0.3.2-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f30fe379ae3a91bd2cc2a1b4b1bacbbc2c58aad2c38dfd6a474a44a1db3bf224
BLAKE2b-256 checksum
How to use checksums
2d8a5719d375d9ea160ca795ade838629bec1fd0ca55f701f5edd9c5f609dc08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.9.16 Linux/5.4.219-126.411.amzn2.x86_64

Security for depcheck 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page