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.
calculate_score¶
Calculates the new star score for all Package objects.
check_package_examples¶
Prints out stats about PackageExample
objects, like the count of active and inactive objects.
For active PackageExample
s, 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 thePackageExample
table for bad URLs.
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.
fix_grid_element¶
Removes duplicate Element objects.
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.
import_releases¶
Imports Release data for Packages from endoflife.date.
load_dev_data¶
Create sample data for local development.
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.
pypi_find_missing¶
Shows count of Packages without pypi URLs or with outdated pypi URLs
pypi_updater¶
Updates all the packages in the system by checking against their PyPI data.
Warning: This can take a long, long time.read_grid_stats¶
searchv2_build¶
This command rebuilds and recalculates our search database.