Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cookapps-datacenter-0.0.15.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

cookapps_datacenter-0.0.15-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file cookapps-datacenter-0.0.15.tar.gz.

File metadata

  • Download URL: cookapps-datacenter-0.0.15.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for cookapps-datacenter-0.0.15.tar.gz
Algorithm Hash digest
SHA256 345d61e93021df44b566371e35a74129c69285e04514de505d2d3076d65fde01
MD5 6c725af6909265e0280430696c7d0782
BLAKE2b-256 328a95fe543b4163216b0c6a85ac7d74b2c2cf104662c1b38c7b18f0b2fd0c91

See more details on using hashes here.

File details

Details for the file cookapps_datacenter-0.0.15-py3-none-any.whl.

File metadata

File hashes

Hashes for cookapps_datacenter-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 2e5fa1b4e9ad671574a61c3e8bb42edb69c3954d1a786080f68f956b2f8acce1
MD5 1e42831db494b019156975767d1843ec
BLAKE2b-256 2e44a1f3c0896c687fdc76cddc1816cac2550d46baec785f022522cdf84e3e48

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page