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
File details
Details for the file cookapps_datacenter-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: cookapps_datacenter-0.0.13-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95b405877d2330c08b73f49f6cc1e8e390795423ab7a5da6b306c700d54adade |
|
MD5 | 17a2bc424116e8c09ff9c7cdd188d606 |
|
BLAKE2b-256 | 00b6d60a5fe8ef5beebb51725c0d67ab26523d2066a5717ccc941867da68eb38 |