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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64565288d49c77ec7e7b3f023216169cb9dbb97eab6c5a90a276c0f08b11b82c
|
|
| MD5 |
50799a63f14425a136d8260fc5206467
|
|
| BLAKE2b-256 |
bf2cf0cf5929109df4312174f45270d1da5aa6b31bdd9b93a4d4d8426afe5036
|
Provenance
The following attestation bundles were made for nuvolos-0.7.0.tar.gz:
Publisher:
release.yaml on nuvolos-cloud/python-connector
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nuvolos-0.7.0.tar.gz -
Subject digest:
64565288d49c77ec7e7b3f023216169cb9dbb97eab6c5a90a276c0f08b11b82c - Sigstore transparency entry: 1898461934
- Sigstore integration time:
-
Permalink:
nuvolos-cloud/python-connector@f93708e73050cf27ba4adf84d9388e7a02921a4a -
Branch / Tag:
- Owner: https://github.com/nuvolos-cloud
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@f93708e73050cf27ba4adf84d9388e7a02921a4a -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3459cdf349db2c4bdbeb6bb4aa44b280620f176f31ef951020b675acb24ca90c
|
|
| MD5 |
58c1d4bd3ce16e4a3526278079f14f6e
|
|
| BLAKE2b-256 |
0f798d9223ef018bd4edaf00653d8926720b0f3a15e550e7a517770ea0e90d9c
|
Provenance
The following attestation bundles were made for nuvolos-0.7.0-py3-none-any.whl:
Publisher:
release.yaml on nuvolos-cloud/python-connector
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nuvolos-0.7.0-py3-none-any.whl -
Subject digest:
3459cdf349db2c4bdbeb6bb4aa44b280620f176f31ef951020b675acb24ca90c - Sigstore transparency entry: 1898462124
- Sigstore integration time:
-
Permalink:
nuvolos-cloud/python-connector@f93708e73050cf27ba4adf84d9388e7a02921a4a -
Branch / Tag:
- Owner: https://github.com/nuvolos-cloud
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@f93708e73050cf27ba4adf84d9388e7a02921a4a -
Trigger Event:
release
-
Statement type: