A unified cloud storage package for AWS, Azure, and GCP
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloud_storage_service-0.2.35.tar.gz.
File metadata
- Download URL: cloud_storage_service-0.2.35.tar.gz
- Upload date:
- Size: 32.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac387d784018895c5daecd2e57a2f1d74c2cea6ee5a7bbc8365625565db81d33
|
|
| MD5 |
baaec851b65c7c7029787efc844ed1da
|
|
| BLAKE2b-256 |
155bac0b80dd3c556c998bfd002497f25e80cb5473a64a06e2408a89d57f9d45
|
File details
Details for the file cloud_storage_service-0.2.35-py3-none-any.whl.
File metadata
- Download URL: cloud_storage_service-0.2.35-py3-none-any.whl
- Upload date:
- Size: 33.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e263a2a2a4ca525ab412ff125992f23b5778fb9f5cd0cd4f289cb786dee355e
|
|
| MD5 |
87e0394ba68b410a338cf17473372b33
|
|
| BLAKE2b-256 |
17abee586f8d46374b3d65a66a6f9e6e97967aed7556fe349c28db974fad4376
|