Wiki source code of PyPI Repository Configuration
Last modified by Thomas Mortagne on 2026/10/10 10:42
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
![]() |
2.1 | 1 | The [[Python 3 PyPI Repository>>doc:extensions:Extension.Python.PyPI.WebHome]] reads two properties from ##xwiki.properties##, both about the packages listed in the extension index. The file is read when XWiki starts, so a change takes effect after a restart. |
| 2 | |||
| 3 | |=Property|=What it sets|=Default | ||
| 4 | |##pypi.popularPackages.count##|The number of most downloaded packages listed in the extension index. ##0## lists all the PyPI packages, which means resolving hundreds of thousands of packages.|##500## | ||
| 5 | |##pypi.popularPackages.url##|The location of the list of the most downloaded packages, in the JSON format of the Top PyPI Packages list (see [[PyPI Repository Limitations>>doc:documentation.extensions.admin.python.pypi-repository-limitations.WebHome]]).|The list published by Top PyPI Packages on GitHub | ||
| 6 | |||
| 7 | {{code language="properties"}} | ||
| 8 | pypi.popularPackages.count=1000 | ||
| 9 | pypi.popularPackages.url=https://raw.githubusercontent.com/hugovk/top-pypi-packages/main/top-pypi-packages.min.json | ||
| 10 | {{/code}} |
