Cloud Storage Service
A unified cloud storage package that provides seamless integration with major cloud providers: Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform (GCP). This library allows developers to easily access and manage cloud storage services with a consistent interface.
Package Structure
- storage_manager.py # Factory function to create DB connection based on the service type
- aws_storage.py # AWS RDS MySQL connection class
- azure_storage.py # Azure SQL Database connection class
- gcp_storage.py # Google Cloud MySQL connection class
Features
- Supports Multiple Cloud Providers: Easily switch between AWS, Azure, and GCP.
- Flexible Configuration: Configure services with required parameters for each provider.
- Intuitive API: Simple methods for managing cloud storage operations.
Installation
Ensure all necessary dependencies are installed:
pip install cloud_storage_service
Usage
#! pip install cloud_storage_service
from cloud_storage_service import get_cloud_storage_service
def test_get_document_details():
bucket_name = 'testbucket'
prefix = '000740194c8c-adfe-2ab061872773d3/test_data/'
aws_service = get_cloud_storage_service('aws')
try:
documents = aws_service.get_document_details(bucket_name, prefix=prefix, file_type='.xml')
if documents:
print("Fetched document details:")
for doc_name, doc_info in documents.items():
print(f"Document Name: {doc_info['document_name']}")
print(f"Document Hash: {doc_info['document_hash']}")
print(f"Document Size: {doc_info['document_size']} bytes")
print(f"File Type: {doc_info['file_type']}")
print("-" * 40)
else:
print("No documents found.")
except Exception as e:
print(f"Error occurred: {e}")
test_get_document_details()
Metadata
Release files for cloud-storage-service 0.2.47
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 |
|---|---|---|---|---|
| cloud_storage_service-0.2.47.tar.gz | 32.6 kB | Without provenance | Details for cloud_storage_service-0.2.47.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cloud_storage_service-0.2.47-py3-none-any.whl | Python 3 | none | any | Details for cloud_storage_service-0.2.47-py3-none-any.whl |
Total release size: 66.9 kB
Release files / cloud_storage_service-0.2.47.tar.gz
| Download URL | cloud_storage_service-0.2.47.tar.gz |
|---|---|
| Size | 32.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
166c13b32a8e0affdc3a1b7a5b838bc5d402fb0129f671aab8e6f144131894eb
|
|
BLAKE2b-256 checksum How to use checksums |
fa5c5fb5530f74e0f776fc21f6f76c5e798c96dcd257ce723e99ebf3ea0acaa8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.7
|
Release files / cloud_storage_service-0.2.47-py3-none-any.whl
| Download URL | cloud_storage_service-0.2.47-py3-none-any.whl |
|---|---|
| Size | 34.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
591d517a0a795875818d3a402d40fda18baa973f09e803143d5a238a83d61d6e
|
|
BLAKE2b-256 checksum How to use checksums |
f8102dfce771c7ab47dc40ca0b2e7994a503df914554ca662f14b1409ead7ee4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.7
|
Security for cloud-storage-service 0.2.47
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.