/pypi-web

Custom search for PyPI packages

Primary LanguagePython

PyPI Web

preview

Custom PyPI web interface for search with additional information:

  • Downloads
  • GitHub stars
  • GitHub forks

Plus sorting by this fields.

Configuration

.env file is used to configure the application. The following variables are used:

  • GITHUB_TOKEN - legacy Github token to access GraphQL API
  • BIG_QUERY_TOKEN - encrypted Google Service Account key (JSON with base64 encoding) to access Google BigQuery
    (guide for creation can be found at pypinfo readme)

To encrypt BIG_QUERY_TOKEN use python update.py --password

Running

python main.py --port 8080

Update database

python update.py --all
  • --password - encrypt BIG_QUERY_TOKEN with user password

  • --all - update all databases

  • --metadata - update PyPI packages metadata from Google BigQuery

  • --downloads - update PyPI packages downloads from Google BigQuery