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"
Metadata
Release files for pypiserver-backend-s3 0.0.2
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 |
|---|---|---|---|---|
| pypiserver-backend-s3-0.0.2.tar.gz | 6.6 kB | Without provenance | Details for pypiserver-backend-s3-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pypiserver_backend_s3-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for pypiserver_backend_s3-0.0.2-py3-none-any.whl |
Total release size: 11.2 kB
Release files / pypiserver-backend-s3-0.0.2.tar.gz
| Download URL | pypiserver-backend-s3-0.0.2.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3bba974bb8f556f306ce67be6562e604babb21c9bed41729ccbf0d50ae3216dc
|
|
BLAKE2b-256 checksum How to use checksums |
8d67f1613666c539a92fc870921e44f319af352d302ad87cb985dc37785260bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|
Release files / pypiserver_backend_s3-0.0.2-py3-none-any.whl
| Download URL | pypiserver_backend_s3-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a4d76653e5226c8a2500ac90f69ada37e6464633a847f8e865d552f67d769607
|
|
BLAKE2b-256 checksum How to use checksums |
f361673129b405a44db73c2ca81afc0c91113a79473bc5adb4b9ae1f20f2d823
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|
Security for pypiserver-backend-s3 0.0.2
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.