Skip to main content

Outdated Package Tracker

:warning: Use at your own risk.. Author is not responsible for any damage resulting from using this application.

Show and update outdated versions of python packages in your project.

The app serves to:

  • list in django admin all outdated python packages
  • show dependent apps using each package
  • locally update them one-by-one using django backend
  • optionally, exposes via DRF an endpoint to PackHub application to allow remotely querying the list of outdated packages

Installation

Install the package, as well as the required dependency

pip install django-packtrack
pip install django-oauth-toolkit

Installed apps and dependencies

    # add to settings, INSTALLED_APPS:
    "packtrack",
    # dependencies for packtrack: 
    "oauth2_provider",
    "rest_framework",  # packtrack, packhub
    "rest_framework_simplejwt",  # packtrack

Configuration

In the project settings, add REST_FRAMEWORK entry if not present, and optionally PACKTRACK_LATEST_VERSION_CACHE_TIME to modify the default 1 hour

PACKTRACK_LATEST_VERSION_CACHE_TIME = timedelta(
    hours=1
)  # optional entry, default is 1 hour

REST_FRAMEWORK = {
    "DEFAULT_AUTHENTICATION_CLASSES": (
        "oauth2_provider.contrib.rest_framework.OAuth2Authentication",  # for clientid/secret authentication
    ),
    "DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticated",),
}

CLI Usage

These commands are designed to be used from within the application interface, or via DRF, but if you really want to call them from CLI (rather than directly calling pip), suit yourself :-)

The following management commands are available:

update_package {package_name}

Executes pip command updating the package to the most current version, as stored in PackageCache

Django Admin /UI usage

In Django Admin, under PackTrack app, in the Outdated packages:

  • at the top right, hit "Updated Outdated Packages" button to refresh the list of outdated packages in your project
  • in the list below, you can update each package by individually by clicking the "Update" button.
  • to hide the updated packages, use the filter with option "Installed != Latest", to show only old packages.

In the "Update Logs" you can see what was updated and when, and you can examine the console outputs from each update.

API usage

  1. Configure Application in Django Oauth Toolkit, to get your Client ID, and Client Secret, e.g.:
  • client type: Confidential
  • Authorization grant type: Client credentials
  • Hash client secret
  1. You can then fetch the outdated packages from a site where PackTrack is running using /api/outdated-packages/ endpoint.

Metadata

Release files for django-packtrack 24.12.1

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

Source distribution (sdist)

Source distribution for django-packtrack 24.12.1
File Size Uploaded Provenance Actions
django_packtrack-24.12.1.tar.gz 21.2 kB Without provenance Details for django_packtrack-24.12.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-packtrack 24.12.1
File Interpreter ABI Platform Actions
django_packtrack-24.12.1-py3-none-any.whl Python 3 none any Details for django_packtrack-24.12.1-py3-none-any.whl

Total release size: 56.1 kB

Release files / django_packtrack-24.12.1.tar.gz

Download URL django_packtrack-24.12.1.tar.gz
Size 21.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8a6337ecb3cb84c490814046766e72579a1ac9dd198489b0053aa150bbf0757e
BLAKE2b-256 checksum
How to use checksums
f317b8fe8d08ce9c720fb6094fbeea86ca1e6a6b69ca7da17a88bdd50429a080
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.8

Release files / django_packtrack-24.12.1-py3-none-any.whl

Download URL django_packtrack-24.12.1-py3-none-any.whl
Size 34.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63896ef03a35c81536ac295f7dff973b2e4e9b5c94c2e47ecc716a7b4a47373a
BLAKE2b-256 checksum
How to use checksums
3a400e3c57dc9a06ba1ee953ea77fb4cb31c739b6115e05085ee35862e416b72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.8

Security for django-packtrack 24.12.1

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