The Alphacruncher python library
Project description
aclib - The alphacruncher python library
Installation
$ pip install aclib
Usage
The library provides 2 convenience functions for connecting to the remote database with your credentials. It assumes that you have a credential file ~/.odbc.ini in the following format
[datahub] uid = <username> pwd = <password>
You can then get the SQLAlchemy connection string, or create an SQLAlchemy engine directly:
>>> from aclib import get_url, get_engine >>> get_url("db_name","schema_name") 'snowflake://<username>:<password>@alphacruncher.eu-central-1/?warehouse=<username>&database=db_name&schema=schema_name' >>> eng = get_engine("db_name","schema_name")
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
aclib-0.1.2.tar.gz
(1.9 kB
view hashes)