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.
Metadata
Release files for aiopypiserver 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiopypiserver-0.0.7.tar.gz | 21.5 kB | Without provenance | Details for aiopypiserver-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiopypiserver-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for aiopypiserver-0.0.7-py3-none-any.whl |
Total release size: 43.0 kB
Release files / aiopypiserver-0.0.7.tar.gz
| Download URL | aiopypiserver-0.0.7.tar.gz |
|---|---|
| Size | 21.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35b22a8f0cae8787b5ed31b33e3f2abcb2bd46c8fbd40a0ef97ccd5501889b88
|
|
BLAKE2b-256 checksum How to use checksums |
2168684426f85a0bf84c69200d13ca031c20378a5f11a11f773ad65acc60a028
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / aiopypiserver-0.0.7-py3-none-any.whl
| Download URL | aiopypiserver-0.0.7-py3-none-any.whl |
|---|---|
| Size | 21.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4347f13b0825bf04bf16634bc1b8a7f093f912f162a9655b9bfc8f1c8e2d40e2
|
|
BLAKE2b-256 checksum How to use checksums |
73541443ff899fc9e831dcf9f7044e734b77e36d9fcc0a1d6e6fcbb6b9ff5603
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for aiopypiserver 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.