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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for cookapps_datacenter-0.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd59d9c4373430108bc791ab3d73d017b5750df63d1151d47e96ea1b847b7b66 |
|
MD5 | 6b6e8cd0b330ca4f6c739e17181b2f71 |
|
BLAKE2b-256 | b89cb0b331819154af9fd75aa57f98bbdd2cf66c47f57edb91cb65682c5ea99c |