Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypiserver-backend-s3-0.0.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

pypiserver_backend_s3-0.0.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pypiserver-backend-s3-0.0.2.tar.gz.

File metadata

  • Download URL: pypiserver-backend-s3-0.0.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for pypiserver-backend-s3-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3bba974bb8f556f306ce67be6562e604babb21c9bed41729ccbf0d50ae3216dc
MD5 0c61e5e634d0234bcd955174a3367393
BLAKE2b-256 8d67f1613666c539a92fc870921e44f319af352d302ad87cb985dc37785260bf

See more details on using hashes here.

File details

Details for the file pypiserver_backend_s3-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pypiserver_backend_s3-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a4d76653e5226c8a2500ac90f69ada37e6464633a847f8e865d552f67d769607
MD5 49976751f3e045dee10aa73818543596
BLAKE2b-256 f361673129b405a44db73c2ca81afc0c91113a79473bc5adb4b9ae1f20f2d823

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page