Metadata-Version: 2.2
Name: cloud_db_connector
Version: 0.2.3
Summary: A unified cloud db package for AWS, Azure, and GCP
Author: Aaditya Muleva
Author-email: aaditya.muleva@trovehealth.io
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: boto3>=1.20.0
Requires-Dist: pymysql>=1.0.2
Requires-Dist: pyodbc>=4.0.32
Requires-Dist: google-auth>=2.0.0
Requires-Dist: google-auth-oauthlib>=0.4.0
Requires-Dist: cryptography>=3.3.2
Requires-Dist: pyopenssl>=20.0.1
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: license
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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

```plaintext
- 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:
```python
pip install cloud_db_connector
```

## Usage
```python
#! 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)
```
