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.3.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.3-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cloud_db_connector-0.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 963237db95e9cb4a1cab47e139d5409d26afbc24adb67a0f2ca92d2877a65e44
MD5 3c52d785f09f08f3f797444559a46698
BLAKE2b-256 39a9c93415bea0873a7507f1551ba8398cda10a1ec03a6d7e1c81bc0ab90a00e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cloud_db_connector-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 685b4be0f7851ae78bc610f5324e37eb36efb0f51c56e6a327ef5173d8c18059
MD5 a63a856dde1b4f6401a1b38f48f9c1f7
BLAKE2b-256 f3a09a187dd5fb35e056dde6e2d2796c4361ceec5718a2a815841cc0e3c0e01b

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