CookApps DATACENTER SDK
Project description
CookApps Data Center SDK
Installation
$ pip3 install --upgrade cookapps-datacenter
Examples
from cookapps_datacenter import DataCenter
from cookapps_datacenter.config import *
""" Athena Query Test """
if __name__ == "__main__":
## Athena Config - cookapps_datacenter.config.AthenaConfig
athena_config = AthenaConfig(
s3_bucket = '{S3_BUCKET}',
s3_output_uri = '{ATHENA_RESULT_S3_URI}',
region = '{ATHENA_REGION}',
tmp_local_path = '/path/to/dir'
)
## SDK
dc = DataCenter(
aws_profile_name='{AWS_CREDENTIAL_PROFILE}',
athena_config=athena_config
)
df = dc.athena.run_query('SELECT * FROM "users"', 'test_db')
print(df)
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
Close
Hashes for cookapps-datacenter-0.0.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe88d279575ba493f55784c2c36968087c41d5a63429b1402f95fd8afd3df92c |
|
MD5 | 94360542f45f025bc6eaa3980ebc68f2 |
|
BLAKE2b-256 | 5a38bfece58afd72733f681423e579921a4b25e17a73c9afa80c4372533d1512 |
Close
Hashes for cookapps_datacenter-0.0.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe716f53349b0716995fc7d816d0dc1e54acb6b36e4a7d75dc8bb880287caf2a |
|
MD5 | 81c1f3cf42bea65e66486ae644f1220c |
|
BLAKE2b-256 | e97f0407af6281c05b566de7719f15a80ba6f4c16dc848ab428b28534f9fabbd |