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='connexa-dev-stage-sandbox.cluster-cg6tpgotjkv0.us-east-1.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.2.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.2-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cloud_db_connector-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 c68e004dd82b5e79ebf58188cb80979143132168f388b6adbfbae8924cd3cb56
MD5 0f53bb09adc6db551dec51110baff597
BLAKE2b-256 179b814669aede426e7a2769c285ff816edb08bf17f0640fc89629a9bccd951e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cloud_db_connector-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d3785a69bd2d7bc54bb66a3a3b5f4c13a82ba14aec385e0c58d56ed2209b1625
MD5 50da21f26bf3019df61d100d7e093bf7
BLAKE2b-256 5e3da12b01d35f30254c9cf648929569b040eee613b72f9207af6b98a9e89a23

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