Skip to main content

The Nuvolos Python library for database connectivity

Project description

nuvolos - The database connectivity library for Nuvolos

Installation

$ pip install --upgrade nuvolos

Connecting to Snowflake with Nuvolos Connector

1. Using SQLAlchemy with Username/Password

from nuvolos import get_connection
from sqlalchemy import text

# Connect using username and password
conn = get_connection(
    username="your_username",
    password="your_password",
    dbname="YOUR_DB",
    schemaname="YOUR_SCHEMA"
)

try:
    # Execute a query
    result = conn.execute(text("SELECT * FROM YOUR_TABLE"))
    for row in result:
        print(row)
finally:
    conn.close()

2. Using SQLAlchemy with RSA Key

import os
from nuvolos import get_connection
from sqlalchemy import text

# Set environment variables for RSA authentication
os.environ["SNOWFLAKE_RSA_KEY"] = "/path/to/rsa_key.p8"
os.environ["SNOWFLAKE_RSA_KEY_PASSPHRASE"] = "your_key_passphrase"  # Optional

# Connect using RSA key authentication
conn = get_connection(
    username="YOUR_USERNAME",
    dbname="YOUR_DB",
    schemaname="YOUR_SCHEMA"
)

try:
    # Execute a query
    result = conn.execute(text("SELECT * FROM YOUR_TABLE"))
    for row in result:
        print(row)
finally:
    conn.close()

3. Using Raw Connector with Username/Password

from nuvolos import get_raw_connection

# Connect using username and password
conn = get_raw_connection(
    username="your_username",
    password="your_password",
    dbname="YOUR_DB",
    schemaname="YOUR_SCHEMA"
)

4. Using Raw Connector with RSA Key

import os
from nuvolos import get_raw_connection

# Set environment variables for RSA authentication
os.environ["SNOWFLAKE_RSA_KEY"] = "/path/to/rsa_key.p8"
os.environ["SNOWFLAKE_RSA_KEY_PASSPHRASE"] = "your_key_passphrase"  # Optional

# Connect using RSA key authentication
conn = get_raw_connection(
    username="YOUR_USERNAME",
    dbname="YOUR_DB",
    schemaname="YOUR_SCHEMA"
)

Documentation and examples available at: https://docs.nuvolos.cloud/data/access-data-from-applications#connecting-with-python

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

nuvolos-0.7.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nuvolos-0.7.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file nuvolos-0.7.0.tar.gz.

File metadata

  • Download URL: nuvolos-0.7.0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nuvolos-0.7.0.tar.gz
Algorithm Hash digest
SHA256 64565288d49c77ec7e7b3f023216169cb9dbb97eab6c5a90a276c0f08b11b82c
MD5 50799a63f14425a136d8260fc5206467
BLAKE2b-256 bf2cf0cf5929109df4312174f45270d1da5aa6b31bdd9b93a4d4d8426afe5036

See more details on using hashes here.

Provenance

The following attestation bundles were made for nuvolos-0.7.0.tar.gz:

Publisher: release.yaml on nuvolos-cloud/python-connector

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nuvolos-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: nuvolos-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nuvolos-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3459cdf349db2c4bdbeb6bb4aa44b280620f176f31ef951020b675acb24ca90c
MD5 58c1d4bd3ce16e4a3526278079f14f6e
BLAKE2b-256 0f798d9223ef018bd4edaf00653d8926720b0f3a15e550e7a517770ea0e90d9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for nuvolos-0.7.0-py3-none-any.whl:

Publisher: release.yaml on nuvolos-cloud/python-connector

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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