PλPI (or PlambdaPI
, which is a play on PyPI) is a simple tool to create an AWS-hosted, PEP 503 compliant personal PyPI repository. It's using S3 bucket to host the repository, indexed using a Lambda function via an API Gateway.
- Install Terraform .
- Make a ZIP file with the lambda code:
$ zip -r lambda.zip lambda.py
- Check terraform configuration:
$ terraform plan
- Execute terraform configuration:
$ terraform apply
- Upload your Python package file (egg, wheel and/or gzipped source) to the S3 bucket (creating directory if necessary)
- Install the package anywhere using
pip install --extra-index-url=[api gateway's URL] [package-name]
- Better documentation
- Options to set up authorization on the API Gateway
- Script to automatically build and upload a Python package