A Django app for monitoring outdated packages and dependencies.
Project description
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
pip install django-packtrack
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
- 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
- You can then fetch the outdated packages from a site where PackTrack is running using
/api/outdated-packages/
endpoint.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django_packtrack-24.9.2.tar.gz
.
File metadata
- Download URL: django_packtrack-24.9.2.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ef7d3124e49d6b05e6e153b62f96c6b342b1b53d7974f6fc8f2a48d6dc159e3 |
|
MD5 | e26f831f46e32339b64a53bc0b0b8335 |
|
BLAKE2b-256 | b18239b3f954484ca428621e708431f3dbc397d31a64c5fe04ad4821c7ade068 |
File details
Details for the file django_packtrack-24.9.2-py3-none-any.whl
.
File metadata
- Download URL: django_packtrack-24.9.2-py3-none-any.whl
- Upload date:
- Size: 34.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d354be8faf51501330cbdd51a00bce4fdb3c931f6392c25c063d85ff5682dfa7 |
|
MD5 | 911fdd2a8c1a25be66c75820227c07da |
|
BLAKE2b-256 | bc32ccc0f964581721b07964db6926c521f6ed9fb4901f3c071f0930367ac482 |