Skip to main content

Utilities for making connections easier.

Project description

dot-connect

tox

A Python package designed to simplify the way you fetch connection configurations and establish connections to various database and cloud systems.

🚀 Features

  • Unified Interface: Single interface - no need to remember different APIs for databases or cloud providers.
  • Easy Configuration: Fetch connection configurations from multiple sources like JSON files, environment variables, etc.
  • Supported Backends: MySQL, Postgres, and Snowflake. More coming soon.

💽 Installation

pip install dot-connect

📚 Quickstart

  1. Create a .env file.
SNOWFLAKE_ACCOUNT=orgname-accountname
SNOWFLAKE_USER=username
SNOWFLAKE_PASSWORD=password
  1. 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! Please see our CONTRIBUTING.md for 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.2.0.tar.gz (8.9 kB view hashes)

Uploaded Source

Built Distribution

dot_connect-0.2.0-py3-none-any.whl (13.1 kB view hashes)

Uploaded Python 3

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