Skip to content

Management Commands

These are the management commands that we run to keep the website updated and fresh.

audit_textfield_max_length

Identifies objects with a text field greater than the maximum length.

docker compose run django uv run manage.py audit_textfield_max_length

calculate_score

Calculates the new star score for all Package objects.

docker compose run django uv run manage.py calculate_score

check_package_examples

Prints out stats about PackageExample objects, like the count of active and inactive objects.

For active PackageExamples, checks that the URL is valid. If it isn't, the PackageExample is marked inactive.

Optional arguments:

  • limit: int. Optional. Useful if you want to spot check the PackageExample table for bad URLs.
docker compose run django uv run manage.py check_package_examples

cleanup_github_projects

Migrates legacy (http) GitHub packages to https. Migrates existing packages that have moved on GitHub, so their data stays up-to-date.

docker compose run django uv run manage.py cleanup_github_projects [--limit=<number-of-records>]

fix_grid_element

Removes duplicate Element objects.

docker compose run django uv run manage.py fix_grid_element

grid_export

docker compose run django uv run manage.py grid_export

import_classifiers

The import_classifiers management command updates our database against PyPI's trove classifiers.

import_products

Imports all packages from endoflife.date, and sets some packages to active.

docker compose run django uv run manage.py import_products

import_releases

Imports Release data for Packages from endoflife.date.

docker compose run django uv run manage.py import_releases

load_dev_data

Create sample data for local development.

docker compose run django uv run manage.py load_dev_data

package_updater

Updates all the GitHub Packages in the database.

Warning: This can take a long, long time.

Optional Arguments:

  • limit: int. Pass this value if you want to update a specific number of packages.
docker compose run django uv run manage.py package_updater

pypi_find_missing

Shows count of Packages without pypi URLs or with outdated pypi URLs

docker compose run django uv run manage.py pypi_find_missing

pypi_updater

Updates all the packages in the system by checking against their PyPI data.

docker compose run django uv run manage.py pypi_updater
Warning: This can take a long, long time.

read_grid_stats

docker compose run django uv run manage.py read_grid_stats

build_search_v3

Builds the SearchV3 index for package and grid search results.

docker compose run django uv run manage.py build_search_v3