Skip to main content

Improve your workflow efficiency by connecting to databases and cloud systems effortlessly.

Project description



dot-connect

pytest + coverage codecov PyPI

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. Enjoy 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

Using dot_connect is intuitive and straightforward.

Getting Things Set Up

Before you begin, you can configure your environment variables by using a .env file or an alternative method. Additionally, you can utilize default authorization patterns supported by your chosen backend. dot-connect will prioritize credentials in a .env file.

Below are step-by-step examples of how you can connect and query various backends:

Snowflake

import dot_connect

con = dot_connect.snowflake.connect()
print(con.cursor().execute("SELECT 1;").fetchall())

MySQL

import dot_connect

con = dot_connect.mysql.connect()
cursor = con.cursor()
cursor.execute("SELECT 1")
result = cursor.fetchall()
print(result)

PostgreSQL

import dot_connect

con = dot_connect.postgres.connect()
cursor = con.cursor()
cursor.execute("SELECT 1")
result = cursor.fetchall()
print(result)

🤝 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. For more details, please see our contributing guidelines.

⚖️ 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

dot_connect-0.3.32.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

dot_connect-0.3.32-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file dot_connect-0.3.32.tar.gz.

File metadata

  • Download URL: dot_connect-0.3.32.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for dot_connect-0.3.32.tar.gz
Algorithm Hash digest
SHA256 f2ff4f46f5d6e42caa7408abc0c38bf9e50047f5740458f547785d973c1379ef
MD5 d2127084e0ed4e199e02d27bc314d59a
BLAKE2b-256 0bb9188c9089b26c8fde95c00e0bd8861869334874ff356541ae715782527555

See more details on using hashes here.

File details

Details for the file dot_connect-0.3.32-py3-none-any.whl.

File metadata

  • Download URL: dot_connect-0.3.32-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for dot_connect-0.3.32-py3-none-any.whl
Algorithm Hash digest
SHA256 d422e15efde9da8efdb4e485c29d8d8e3605625f608e4dcb06dfc54e14dd21b9
MD5 3455a852fed48d30a94a89aa56a4235b
BLAKE2b-256 26d23288949529674aef1d6c3df180ed74b17573bb32dd9b56151f5e3bfeed20

See more details on using hashes here.

Supported by

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