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.

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.3.tar.gz (19.3 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.3-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aiopypiserver-0.0.3.tar.gz
Algorithm Hash digest
SHA256 63cee0226743bd0ccf8c086644aa492d731af2303bf084ee26e94274517164c0
MD5 a39b2ed4120b84bc78f768dd7d2656f1
BLAKE2b-256 d718fa5e4f46bf9ee01650127fbdcd7d239d3c3b58ca788e2a241e3ddf4387a5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for aiopypiserver-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 599a5dcf56ddc5506f11022faed74490e83f5ee0a78e41138a1a73f13416d966
MD5 f725e41affebba694efada74260d5d0e
BLAKE2b-256 e3dc99ceff262b3ac04ada106965768850e895dec73d5727bc68aef987f460da

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

This release

0.0.3 This release

2 files

0.0.2

2 files

0.0.1

2 files

0.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page