Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aiopypiserver

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aiopypiserver

Like pypiserver, but works behind a proxy with relative href addresses. Uses aiohttp.

  • 0.0.7
  • PyPI
  • Socket score

Maintainers
1

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc