pypicloud.storage.s3 module¶
Store packages in S3
- class pypicloud.storage.s3.CloudFrontS3Storage(request=None, domain=None, crypto_pk=None, key_id=None, **kwargs)[source]¶
Bases:
S3Storage
Storage backend that uses S3 and CloudFront
- class pypicloud.storage.s3.S3Storage(request=None, bucket=None, **kwargs)[source]¶
Bases:
ObjectStoreStorage
Storage backend that uses S3
- check_health()[source]¶
Check the health of the storage backend
- Returns
- (healthy, status)(bool, str)
Tuple that describes the health status and provides an optional status message
- classmethod get_bucket(bucket_name: str, settings: EnvironSettings) boto3.s3.Bucket [source]¶