Skip to main content

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

[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

Metadata

Release files for aclib 0.2.4

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

Source distribution (sdist)

Source distribution for aclib 0.2.4
File Size Uploaded Provenance Actions
aclib-0.2.4.tar.gz 2.5 kB Without provenance Details for aclib-0.2.4.tar.gz

Release files / aclib-0.2.4.tar.gz

Download URL aclib-0.2.4.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4c8c9d279c485e419ceb7a9e41ddeeb94d4cc54b2ce9f9c466032130d2442d42
BLAKE2b-256 checksum
How to use checksums
008cfb2776b5febcfb2bb3a5815a68ccdcd16e0980a868004ca2dc7e57007223
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Security for aclib 0.2.4

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