Skip to main content

seqslab-connector

The SeqsLab Connector for Python based on pyhive allows you to create a Python DB API connection to Atgenomix SeqsLab interactive jobs (clusters) and develop Python-based workflow applications. It is a Hive-Thrift-based client with no dependencies on ODBC or JDBC. It also provides a SQLAlchemy dialect and an Apache Superset database engine spec for use with tools to execute DQL.

You are welcome to file an issue for general use cases. You can also contact Atgenomix Support here.

Requirements

Python 3.7 or above is required.

Installation

Install using pip.

pip install seqslab-connector

For Apache Superset integration install with

pip install seqslab-connector[superset]

Usage

DB-API

from seqslab import hive

conn = hive.connect(database='run_name', http_path='job_run_id', username='user', password='pass', host='job_cluster_host')
cursor = conn.cursor()
cursor.execute('SHOW TABLES')
print(cursor.fetchall())
cursor.execute('SELECT * FROM my_workflow_table_name LIMIT 10')
print(cursor.fetchall())
cursor.close()

SQLAlchemy

from sqlalchemy.engine import create_engine

engine = create_engine('seqslab+hive://user:pass@job_cluster_host/run_name?http_path=job_run_id')

Apache Superset

Connecting to Databases

Documentation

For the latest documentation, see SeqsLab.

Metadata

Release files for seqslab-connector 0.9.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for seqslab-connector 0.9.6
File Size Uploaded Provenance Actions
seqslab-connector-0.9.6.tar.gz 10.0 kB Without provenance Details for seqslab-connector-0.9.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for seqslab-connector 0.9.6
File Interpreter ABI Platform Actions
seqslab_connector-0.9.6-py2.py3-none-any.whl Python 2, Python 3 none any Details for seqslab_connector-0.9.6-py2.py3-none-any.whl

Total release size: 21.6 kB

Release files / seqslab-connector-0.9.6.tar.gz

Download URL seqslab-connector-0.9.6.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a59f16d5f1e25a1b278fa44c6ca9292e2e0c10e3e7a5116e3b87bf446bd1fede
BLAKE2b-256 checksum
How to use checksums
ad6959929ee701511a1b02f54d4908b02d5ce304742d2c7f7c96bfa15c95a3ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.18

Release files / seqslab_connector-0.9.6-py2.py3-none-any.whl

Download URL seqslab_connector-0.9.6-py2.py3-none-any.whl
Size 11.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0e6b56a4400ced88ab0e04b05de853d826663e75330cd624c55e0c07efb52413
BLAKE2b-256 checksum
How to use checksums
633f10e11bc39e875d1d521bce0379df751395b80e9c38fbcfae3c474592a6cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.18

Security for seqslab-connector 0.9.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page