Utilities for making connections easier.
Project description
dot-connect
A Python package designed to simplify the way you fetch connection configurations and establish connections to various databases and cloud systems.
🚀 Features
-
Unified Interface: Say goodbye to juggling multiple APIs. With
dot_connect
, you get a standardized interface, making connecting with various databases and cloud providers easier. -
Easy Configuration: Fetch connection configurations with ease.
dot_connect
supports various sources like JSON files, environment variables, and more, ensuring flexibility and adaptability for your projects. -
Supported Backends: Out-of-the-box support for popular systems such as MySQL, Postgres, and Snowflake. We're continuously working to expand this list.
-
Extensibility: Designed with developers in mind, it's easy to extend and customize
dot_connect
for your needs.
📦 Installation (PyPI)
pip install dot-connect
🔧 Usage
-
Create a .env file.
-
Connect and query various backends!
import dot_connect
con = dot_connect.snowflake.connect()
con.cursor().execute("SELECT 1;").fetchall()
con = dot_connect.snowpark.connect()
con.sql("SELECT 1").show()
con = dot_connect.mysql.connect()
cursor = con.cursor()
cursor.execute("SELECT 1")
cursor.fetchall()
con = dot_connect.postgres.connect()
cursor = con.cursor()
cursor.execute("SELECT 1")
cursor.fetchall()
🤝 Contributing
We welcome contributions from the community. Whether it's a bug report, a new feature, or an improvement, your insights will help make dot_connect
even better. Please see our contributing guidelines for more details.
⚖️ License
Licensed under the Apache License, Version 2.0. See LICENSE for the full text.
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
Built Distribution
Hashes for dot_connect-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a166f71d1cca0b5f5385ed2af1b897bce756b8516ff49baf92dfa40f5f8476a2 |
|
MD5 | 75dedd5ce9082d91a57c3d57ba27a007 |
|
BLAKE2b-256 | cb831ae52b4c002ae140104776cfc355f7b9f052e0352a5d0b24018f971eca75 |