Skip to main content

aiopypiserver

A basic PyPi server using aiohttp to serve web pages. Intended to work behind an Apache proxy with relative href accessing. Available here of from PyPI.

Motivation

This is intended to work behind an Apache proxy. This means providing href links in the pages as relative links. i.e. ./packages/pkg_name.tar.gz and not /packages... .

This is addressed as provided by WSGI. Looking at the code I liked the idea of implementing with asyncio and aiohttp in preference to forking the pypiserver code.

Usage

usage: aiopypiserver [-h] [-p port] [-i address] [-u username] [-P password] [-v] [-q] [package_path]
Private PyPi  server.

positional arguments:
  package_path                       path to packages

options:
  -h, --help                         show this help message and exit
  -p port, --port port               Listen on port
  -i address, --interface address    Listen on address
  -u username, --username username   For uploading packages
  -P password, --password password   ...
  -v, --verbose                      set debug level
  -q, --quiet                        turn off access logging

Browse index at http://localhost:8080/.

Can also be run as a module as python -m aiopypiserver -h. Using the internal class is probably a bad idea ATM as the API is likely to change.

By default access logs are generated, as I find it useful to see these.

Apache

Add the following to your Apache config. This is the item for pypiserver that required wsgi.

ProxyPass /pypi/ http://127.0.0.1:8080/
ProxyPassReverse /pypi/ http://127.0.0.1:8080/

Thanks

Please let me know how you get on through the github page.

Download files

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

Source Distribution

aiopypiserver-0.0.4.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

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

aiopypiserver-0.0.4-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

Details for the file aiopypiserver-0.0.4.tar.gz.

File metadata

  • Download URL: aiopypiserver-0.0.4.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for aiopypiserver-0.0.4.tar.gz
Algorithm Hash digest
SHA256 18e2d3ab576eacbfda89d92e1aa588edacdf3c7b1db75d4f6269ef6d2d168337
MD5 e120dae3baf60d8b68ba94756f799743
BLAKE2b-256 cbcd2ce9e77356de0f3333b9cb7ee4cf043fbc17eac63cac17c6a60da073ece1

See more details on using hashes here.

File details

Details for the file aiopypiserver-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: aiopypiserver-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 27.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for aiopypiserver-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 85465accab34efef7ec1dc218a81c3602de5585a2db0f556cee9c58d90669a22
MD5 6f0e468037f9ce365e8a7fbad3139eb6
BLAKE2b-256 ddb3429e7b9ce382258afae3757d9090ad36b3b03e4b631775daf391e7ad25b6

See more details on using hashes here.

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