Skip to main content

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:

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

Search page

Browse uploaded package archives

Browse uploaded archives

You can see all uploaded package archives for a given package.

Inspect package archive metadata and contents

Inspect package archives

You can inspect a package archive's metadata and its contents.

Easily view files from package archives

View file

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 to https://pypi.org)

    For best results (i.e. most available metadata), choose the first option from this list which is supported by your PyPI registry:

    • If your registry supports PEP691 JSON "simple" indexes, specify your base registry URL with /simple appended (e.g. https://my-registry/simple).

    • If your registry supports the legacy pypi.org-compatible JSON API (e.g. {registry}/pypi/{package}/json), specify your base registry URL without a suffix (e.g. https://my-registry).

    • Otherwise, if your registry only supports the traditional HTML "simple" index, specify the registry URL with /simple at the end (e.g. https://my-registry/simple).

  • 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 use tmpreaper 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypi_browser_webapp-0.0.11.tar.gz (67.4 kB view details)

Uploaded Source

Built Distribution

pypi_browser_webapp-0.0.11-py3-none-any.whl (69.5 kB view details)

Uploaded Python 3

File details

Details for the file pypi_browser_webapp-0.0.11.tar.gz.

File metadata

  • Download URL: pypi_browser_webapp-0.0.11.tar.gz
  • Upload date:
  • Size: 67.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/23.4.0

File hashes

Hashes for pypi_browser_webapp-0.0.11.tar.gz
Algorithm Hash digest
SHA256 d240df46ee5a30f0910bdb7772c1b0c4e40d3b2aa72c2fa1b348a28cfebb3835
MD5 f0fb18e7b5300db63719839fbb3342b4
BLAKE2b-256 e1dc54050f5afbcd5d8d3e4f75b7b5d5bbf50f5407df2e00f516489b725012de

See more details on using hashes here.

File details

Details for the file pypi_browser_webapp-0.0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for pypi_browser_webapp-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 05a4b6df2038e291da174c36568afc68f93320491f74ebc2af2702bbebb81d87
MD5 784a223dc101ced6d6d16d7eae111fc6
BLAKE2b-256 37506a9561b91a752f278e618505b3c32b460b642b23e897b49cf03a093199e2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page