A Multi Repository PyPI Server Implemented in Python Flask
Installation Instructions
From source
Clone the source code from the Github’s repository:
git clone https://github.com/hallaj/inupypi.git
Building the application:
python setup.py develop
Running the application
Inupypi can be run using the usual apache mod_wsgi setup as well as stand alone mode.
As Standalone WSGI Server:
inupypi_server -H <INSERT HOSTNAME> -p <INSERT PORT> -t <HTPASSWD FILE> <PATH TO REPOSITORY>
Apache mod_wsgi
To run using apache mod_wsgi, create the following file and save it as inupypi.wsgi:
#!/usr/bin/env python # -*- coding: utf8 -*- from inupypi import create_app config = {'INUPYPI_REPO': '/PATH/TO/REPOSITORY'} application = create_app(**config})Add the following Apache configuration to use the above defined wsgi file:
<VirtualHost *:80> ServerName SERVER_NAME WSGIScriptAlias / /PATH/TO/inupypi.wsgi WSGIDaemonProcess inupypi user=APACHE_USER group=APACHE_GROUP home=/PATH/TO/INUPYPI python-path=/PATH/TO/PYTHON/SITE-PACKAGES/WHERE/INUPYPI/IS/INSTALLED <Location /> WSGIProcessGroup inupypi WSGIPassAuthorization On </Location> </VirtualHost>
FAQ: Why another pypiserver application ?
We could not find another pypiserver that supported multiple repositories.
We wanted to have templates with our pypi server so that formatting can be easily done.
We had a few ideas where we wanted to bring our pypi server that were not compatible or accepted by one of the pypi server implementations.
TODO
Create automated processes to generate all of the steps above to make the process less manual.
Auto resolving and updating of package versions.
Tests
To run the tests:
sh python setup.py test
Metadata
Release files for inupypi 0.3.3
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 |
|---|---|---|---|---|
| inupypi-0.3.3.tar.gz | 188.8 kB | Without provenance | Details for inupypi-0.3.3.tar.gz |
Release files / inupypi-0.3.3.tar.gz
| Download URL | inupypi-0.3.3.tar.gz |
|---|---|
| Size | 188.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
837749ec27b722de1da41f76e4b1cd99556a3897c33ed08f21637d927906e30e
|
|
BLAKE2b-256 checksum How to use checksums |
dd67eca1361050b13cbd4cf9c78d7f068e14d0e9e6be416fe5b4063324318b1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for inupypi 0.3.3
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.