Need help with s3pypi?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

239 Stars 74 Forks MIT License 71 Commits 23 Opened issues


CLI tool for creating a Python Package Repository in an S3 bucket.

Services available


Need anything else?

Contributors list


S3PyPI is a CLI for creating a Python Package Repository in an S3 bucket.

An extended tutorial on this tool can be found here.

Getting started


Install s3pypi using pip:

pip install s3pypi

Setting up S3 and CloudFront

Before you can start using

, you must set up an S3 bucket for your Python Package Repository, with static website hosting enabled. Additionally, you need a CloudFront distribution for serving the packages in your S3 bucket to
over HTTPS. Both of these resources can be created using the CloudFormation templates provided in the
aws cloudformation create-stack --stack-name STACK_NAME \
    --template-body file://cloudformation/s3-pypi.json \
    --parameters ParameterKey=AcmCertificateArn,ParameterValue=ACM_CERT_ARN \

Managing Your Server Certificates


Distributing packages

You can now use

to create Python packages and upload them to your S3 bucket. To hide packages from the public, you can use the
option to prevent the packages from being accessible directly via the S3 bucket (they will only be accessible via Cloudfront and you can use WAF rules to protect them). If switching between private and public is not flexible enough, you can use the
option to directly specify the ACL. Alternatively, you can specify a secret subdirectory using the
cd /path/to/your-project/
s3pypi --bucket mybucket [--private | --acl ACL] [--secret SECRET]

Installing packages

Install your packages using

by pointing the
to your CloudFront distribution (optionally followed by a secret subdirectory):
pip install your-project --extra-index-url

Alternatively, you can configure the index URL in

extra-index-url =


Currently there are no plans to add new features to s3pypi. If you have any ideas for new features, check out our contributing guidelines on how to get these on our roadmap.


Got any questions or ideas? We'd love to hear from you. Check out our contributing guidelines for ways to offer feedback and contribute.


Copyright (c) November Five BVBA. All rights reserved.

Licensed under the MIT License.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.