Skip to main content


Project description


A library for storing documents in AWS s3

Before you start

For best results, create a bucket with the following settings:

  • Encryption on
  • Versioning on


pip install s3vault

Environment variables

The following environment variables can optionally be provided:



from s3vault.vault import Vault
vault = Vault(bucket, owner_id, collection)

You can also provide aws_access_key_id, aws_secret_access_key and aws_s3_region_name, otherwise if will default to the values in the environment variables above.

Upload a file from a url

vault.upload_from_url(url, filename, extension='pdf')
  • url: the url to fetch the file to store from
  • filename the Key at which to store the object. Convention: :collection/:owner_id/:object_id

TODO: this method should use the same convention as the below methods to enforce consistency

Get a file


Project details

Download files

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

Files for s3vault, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size s3vault-0.1.1.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page