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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cookapps_datacenter-0.0.22-py3-none-any.whl.
File metadata
- Download URL: cookapps_datacenter-0.0.22-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d520338dc139070d38d57fe03467392bf208140d26e7e033b6e5940fb5f457e4
|
|
| MD5 |
a7bc0d0cf58561d1633c7f4153ee188c
|
|
| BLAKE2b-256 |
2fe8f1537a6b9b28437e7e4eece184accc34ad6cc59ce1216854f72e0035f39f
|