PyPI package browsing web application
Project description
PyPI Browser
PyPI Browser is a web application for browsing the contents of packages on the Python Package Index.
You can view a live version which provides information about packages from pypi.org:
- Search page
- Package page for the
django
package - Archive browse page for the
Django-4.1.1-py3-none-any.whl
file - File viewing page for a random file from the same archive
It can also be deployed with a private PyPI registry as its target in order to be used for a company's internal registry.
Features
Browse uploaded package archives
You can see all uploaded package archives for a given package.
Inspect package archive metadata and contents
You can inspect a package archive's metadata and its contents.
Easily view files from package archives
You can display text files directly in your browser, with syntax highlighting and other features like line selection provided by fluffy-code.
Binary files can also be downloaded.
Deploying PyPI Browser
To run your own copy, install
pypi-browser-webapp
using
pip, then run the pypi_browser.app:app
ASGI application using any ASGI web
server (e.g. uvicorn).
You can set these environment variables to configure the server:
PYPI_BROWSER_PYPI_URL
: URL for the PyPI server to use (defaults tohttps://pypi.org
)PYPI_BROWSER_PACKAGE_CACHE_PATH
: Filesystem path to use for caching downloaded files. This will grow forever (the app does not clean it up) so you may want to usetmpreaper
or similar to manage its size.
pypi-browser is an ASGI app, and while it performs a lot of I/O (downloading and extracting packages on-demand), some effort has been made to keep all blocking operations off of the main thread. It should be fairly performant.
Contributing
To build this project locally, you'll need to install
Poetry and run poetry install
.
Once installed, you can run
$ make start-dev
to run a copy of the application locally with hot reloading enabled.
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 pypi_browser_webapp-0.0.8.tar.gz
.
File metadata
- Download URL: pypi_browser_webapp-0.0.8.tar.gz
- Upload date:
- Size: 65.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38442e09c40ed38e65b3942221f63a00e5d64be9efacf389dc919e381c072c98 |
|
MD5 | b207d8bec4628cd50e417390aa2200da |
|
BLAKE2b-256 | f25081341c4a05c867d3c29204ae07c4b59de4e52d8e20f6510fc67862f0ec60 |
File details
Details for the file pypi_browser_webapp-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: pypi_browser_webapp-0.0.8-py3-none-any.whl
- Upload date:
- Size: 67.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02c93edb42565809b33329a1c9dbc9a1a2efc9701d0d3cda4450c13c3ec80913 |
|
MD5 | ca1976bc4eafca34f753e9ba056a1087 |
|
BLAKE2b-256 | d5d7b1da522a87a7dc1f63cb84142ae9910061282c2bd9f2eb5598afac09b037 |