Skip to main content

A unified cloud db package for AWS, Azure, and GCP

Project description

Cloud DB Connector

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

- database_manager.py      # Factory function to create DB connection based on the service type
- db_connection.py         # Interface to get DB connection
- rds_execute.py           # RDS SQL operations

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_db_connector

Usage

#! pip install cloud_db_connector

from cloud_db_connector import get_cloud_db_service
aws_service = get_cloud_db_service(
    service='aws',
    hostname='abc-dev-sandbox.cluster-cgjdfh3jkv0.us.rds.amazonaws.com',
    port=3306,
    username='Username',
    password="Password",
    database='ConnexaDev',
    region='us-east-1'
    )

query = "SELECT * FROM person LIMIT 1;"
results = aws_service.execute(query)

print("Query Results:")
for row in results:
    print(row)

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

cloud_db_connector-0.2.4.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloud_db_connector-0.2.4-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file cloud_db_connector-0.2.4.tar.gz.

File metadata

  • Download URL: cloud_db_connector-0.2.4.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for cloud_db_connector-0.2.4.tar.gz
Algorithm Hash digest
SHA256 c93d1150062604848173e6851bd8c67034e96b737372e98ac0cde2bb60d32a1d
MD5 41b3d84a9c5fb97195568b4d6fdb90b0
BLAKE2b-256 16f57a2a5495eea11baf2aefaa57387e98aaaa866faded3feafa0198197617c0

See more details on using hashes here.

File details

Details for the file cloud_db_connector-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for cloud_db_connector-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 eaa1faaff1865f2bb543cdf7952cdda62bc3983facd2060b7ffa73b08f079d11
MD5 1f7d8ccfb41121ce5c8a41cdaeb4612f
BLAKE2b-256 fd8f38c68aa6d54e6b011a2d2901bbac35bbf4970b8eb9d6683f2d5bf4a9e6c5

See more details on using hashes here.

Supported by

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