Catalog PyPI
Back to packageRELEASE DETAILS

0.2.4

PyPI

aclib

The Alphacruncher python library

Published26 Nov 2019
Direct dependencies0
Transitive dependenciesNot calculated

README

Version 0.2.4 documentation
aclib - The alphacruncher python library
========================================

Installation
============

.. code:: bash

    $ 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

::

    [nuvolos]
    uid = <username>
    pwd = <password>

The library will also look for a special ``/lifecycle/.dbpath`` file.
When used inside an Alphacruncher application, this file is populated by the platfrom
with the db and schema name of the application, and the library will pick these up automatically.

You can then get the SQLAlchemy connection string, or create an SQLAlchemy engine directly:

::

    >>> from aclib import get_url, get_engine
    >>> get_url()
    'snowflake://<username>:<password>@alphacruncher.eu-central-1/?warehouse=<username>'
    >>> 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")

Source: https://github.com/datahub-ac/python-connector

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
aclib-0.2.4.tar.gz

sdist · 2.48 KB · Python source

Source file

Repository

PENDING
datahub-ac/python-connector

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:15 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:95fb3339585fa107cc05deb2671e928165368998c8613a60b36ca6ae2e05df41

Other collected versions

View all collected versions →