Skip to main content

A web interface to browse and search packages in any simple package repository (PEP-503), inspired by PyPI / warehouse

Project description

simple-repository-browser

A web interface to browse and search packages in any simple package repository (PEP-503), inspired by PyPI / warehouse.

Built using FastAPI and the simple-repository core library.

Demo

A tech-preview demo is available at https://simple-repository.app.cern.ch/.

Usage

Install from PyPI:

python -m pip install simple-repository-browser

And run:

simple-repository-browser

(or alternatively python -m simple_repository_browser)

By default, this will use the repository at PyPI (https://pypi.org/simple/). You can point it to a custom repository by passing the URL to the project list endpoint (the base URL according to PEP-503):

simple-repository-browser https://my-custom-repository.example.com/foo/simple/

Screenshots

Homepage:

homepage screenshot

Search:

search result

Project page:

example project page

Runtime details

simple-repository-browser exposes a FastAPI application, and it runs the application in a single uvicorn worker. Metadata that is computed will be cached in the $XDG_CACHE_DIR/simple-repository-browser directory. This cache is not intended to be shared among different repository URLs, and is unlikely to work for multiple simple-repository-browser versions. There is currently no intelligent cache invalidation for those cases.

Development

In order to build the simple-repository-browser you will need access to npm. If not available on the development host, you can do it in a docker container first:

docker run --rm -v $PWD:/workdir -it node bash
cd /workdir

Bundle the web app:

cd web
npm install --include=dev
npm run build
cd ..

And then the normal installation procedure applies:

python -m pip install -e .

You may want to disable the indexing to avoid long-running tasks during the development:

export DISABLE_REPOSITORY_INDEXING=1

The browser can be run with:

python -m simple_repository_browser

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

simple_repository_browser-0.12.0.tar.gz (712.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_repository_browser-0.12.0-py3-none-any.whl (733.9 kB view details)

Uploaded Python 3

File details

Details for the file simple_repository_browser-0.12.0.tar.gz.

File metadata

File hashes

Hashes for simple_repository_browser-0.12.0.tar.gz
Algorithm Hash digest
SHA256 e5752fd8d5c0547034b9e3c4e7a8dce192ff15d000538f989b54985f3105fe13
MD5 ece275880a235bee8bcc31a4595484fd
BLAKE2b-256 61fed42a7fbfe02ec801df76694883c464fb69c65a248d474fd54cfc1c5c9151

See more details on using hashes here.

Provenance

The following attestation bundles were made for simple_repository_browser-0.12.0.tar.gz:

Publisher: python-publish.yml on simple-repository/simple-repository-browser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file simple_repository_browser-0.12.0-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_repository_browser-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c63956764e009f9905c05f9e23060c97b9ce5d399c7447ac0713d9d434e46da8
MD5 9ec8781804d3f16afba9b71a51e37737
BLAKE2b-256 ff850ecbf7963effcbcbe50bed585f3432e25ba026323439faa16018fe58796a

See more details on using hashes here.

Provenance

The following attestation bundles were made for simple_repository_browser-0.12.0-py3-none-any.whl:

Publisher: python-publish.yml on simple-repository/simple-repository-browser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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