A pypiserver backend for storing packages directly to S3 (using boto3)
Project description
pypiserver-backend-s3
A pypiserver backend for storing packages directly to S3 or S3 like services (using boto3).
This is for use with pypiserver-pluggable-backends
.
Installation
pip install pypiserver-pluggable-backends pypiserver-backend-s3
Verify that that you can see the backend with the pypi-server backends
command.
Running
The basic usage is actually pretty simple.
export AWS_ACCESS_KEY=""
export AWS_SECRET_ACCESS_KEY=""
pypi-server run --backend=s3 --backend-set bucket=mybucketname prefix=pypiserver
You can also specify these as command line args.
pypi-server run --backend=s3 \
--backend-set \
bucket=mybucketname \
prefix=pypiserver \
access_key="" \
secret_access_key=""
No Thoughts Just Try It
aws-vault exec myprofile -- pypi-server run -P . -a . --backend=s3 --backend-set bucket=mybucket prefix=myprefix
curl http://localhost:8080/packages/
# In this repo.
python -m build
twine upload --repository-url http://localhost:8080/ dist/*
curl http://localhost:8080/packages/
pip install pypiserver-backend-s3 --extra-index-url=http://localhost:8080
Running With Backblaze
To run with Backblaze (B2) just set the endpoint
option.
pypi-server run --backend=s3 \
--backend-set \
bucket=mybucketname \
prefix=pypiserver \
access_key="<b2_keyId>" \
secret_access_key="<b2_appKey>"
endpoint="https://s3.us-west-002.backblazeb2.com"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pypiserver-backend-s3-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12f484d6479fabba124a9e7c5e41d6f7830d45b299af40e539ea379e5dfbe56f |
|
MD5 | aa53769fa5749969dbb68bf321d1d227 |
|
BLAKE2b-256 | ea7f14935e3009e68738791b8567e4a2b7236bb2c88eb737ff8182bf89a982ea |
Close
Hashes for pypiserver_backend_s3-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7e053b733bbc051805ade02fc83dedf8ec4706187fdc7114dbb3867cdc07553 |
|
MD5 | 820f2007773dc60931de044bf7d7552d |
|
BLAKE2b-256 | 451dc850cebb90697020c3ce8538a73995a6358842ab68b5b3bb0d0c9bc03153 |