Skip to main content

Python tool to track outdated dependencies.

Project description

Welcome to dependency-metrics

Summary

A command line tool to analyze and monitor how up-to-date dependencies of a project are. For more detail, see the Usage section below.

Supported Package Managers

  • pip
  • yarn

Supported Application Monitoring Platforms

  • DataDog

Usage

Run the metrics tool from within the repository you wish to generate metrics for.

Default behavior

All that is needed is the package manager you want to generate metrics for, and metrics will output a table detailing how out-of-date each dependency is.

$ metrics pip
Behind   Package                      Latest       Version
0.1.0    my-depedency                 1.1.0        1.0.0
2.0.0    my-other-dependency          3.2.1        1.2.3

--stats option

Use the --stats option to generate a simple dictionary that displays the total number of outdated dependencies, as well as a breakdown detailing the number of outdated dependencies for each version type.

$ metrics pip --stats
Total: 5
Outdated: 2
Multi-Major: 1
Major: 0
Minor: 1
Patch: 0
Unknown: 0

--send option

NOTE: Additional setup is required to successfully post stats to a supported backend. See platform setup for further information.

Use the --send option to post the same metrisc generated by --stats to an application monitoring platform.

$ metrics pip --send

Application Monitoring Platform Setup

This is required to make use of the --send option, enabling the ability to send generated stats to a backend of your choice.

DataDog

Set the DATADOG_API_KEY and DATADOG_APP_KEY environment variables in the environment you will run metrics <package_manager> --send from.

Development

Requirements

pip install -e .  # installs dependencies defined in pyproject.toml
pip install -e .[test]  # installs test dependencies -- '.[test]' if using zsh

Tests

Must install test dependencies first. See requirements above.

nose2  # runs all tests
nose2 dot.path.to.file.class.or.test  # runs specific test

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

dependency-metrics-0.1.1.tar.gz (11.9 kB view details)

Uploaded Source

File details

Details for the file dependency-metrics-0.1.1.tar.gz.

File metadata

  • Download URL: dependency-metrics-0.1.1.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for dependency-metrics-0.1.1.tar.gz
Algorithm Hash digest
SHA256 543d9ad04b31c784f9bb2af7f258c8cc17f400deea0e9b4f27c113e54e041f7e
MD5 81a9dbd0292dfcd1c53df5223eefc046
BLAKE2b-256 eaf91caa07c341bea544ac42c7f31e4eee0d138c3ef20fcaf08996fe11b59c0f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page