Name | cookapps-datacenter JSON |
Version |
0.0.22
JSON |
| download |
home_page | |
Summary | CookApps DATACENTER SDK |
upload_time | 2023-02-02 10:31:49 |
maintainer | |
docs_url | None |
author | synoh |
requires_python | >=3 |
license | |
keywords |
cookapps
aws
datacenter
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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)
```
Raw data
{
"_id": null,
"home_page": "",
"name": "cookapps-datacenter",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3",
"maintainer_email": "",
"keywords": "cookapps,aws,datacenter",
"author": "synoh",
"author_email": "syno@cookapps.com",
"download_url": "",
"platform": null,
"description": "# CookApps Data Center SDK\n\nInstallation\n------------\n```\n$ pip3 install --upgrade cookapps-datacenter\n```\n\nExamples\n--------\n```\nfrom cookapps_datacenter import DataCenter\nfrom cookapps_datacenter.config import *\n\n\"\"\" Athena Query Test \"\"\"\nif __name__ == \"__main__\":\n ## Athena Config - cookapps_datacenter.config.AthenaConfig\n athena_config = AthenaConfig(\n s3_bucket = '{S3_BUCKET}',\n s3_output_uri = '{ATHENA_RESULT_S3_URI}',\n region = '{ATHENA_REGION}',\n tmp_local_path = '/path/to/dir'\n )\n\n ## SDK\n dc = DataCenter(\n aws_profile_name='{AWS_CREDENTIAL_PROFILE}',\n athena_config=athena_config\n )\n df = dc.athena.run_query('SELECT * FROM \"users\"', 'test_db')\n print(df)\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "CookApps DATACENTER SDK",
"version": "0.0.22",
"split_keywords": [
"cookapps",
"aws",
"datacenter"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2fe8f1537a6b9b28437e7e4eece184accc34ad6cc59ce1216854f72e0035f39f",
"md5": "a7bc0d0cf58561d1633c7f4153ee188c",
"sha256": "d520338dc139070d38d57fe03467392bf208140d26e7e033b6e5940fb5f457e4"
},
"downloads": -1,
"filename": "cookapps_datacenter-0.0.22-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a7bc0d0cf58561d1633c7f4153ee188c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3",
"size": 4273,
"upload_time": "2023-02-02T10:31:49",
"upload_time_iso_8601": "2023-02-02T10:31:49.111299Z",
"url": "https://files.pythonhosted.org/packages/2f/e8/f1537a6b9b28437e7e4eece184accc34ad6cc59ce1216854f72e0035f39f/cookapps_datacenter-0.0.22-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-02 10:31:49",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "cookapps-datacenter"
}