Package containing the common functions used in all the Advanced Analytics algorithms
Project description
README
This package contains all the common functions used to run the Advanced Analytics algorithms. We provide a brief explanation of each of the modules and the corresponding functions:
-
athena_data_provider
contains the classAthenaDataProvider
, which is initialized by giving the parameters- aws_access_key_id
- aws_secret_access_key
- s3_staging_dir
- region_name.
The function
read_query
returns a DataFrame with the information requested by the query passed as argument. -
logger
contains the classLogger
, which logs important messages and prints them to the terminal or CloudWatch in AWS. -
metrics
contains the classMetrics
, which creates the metrics and pushes them to Datadog. -
s3_client
contains the classS3Client
, that is initialized using boto3.client and boto3.resource and the environment variable RESULT_BUCKET.The function
upload_files
uploads the DataFrame returned by the algorithm (output_df
) to the given path (output_path
) in AWS, for the chosen variant (variant
– typicallyproduction
or the name of the experiment, if testing new features).
To use these modules in the experiments do the following:
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
Built Distribution
File details
Details for the file wag_advanced_analytics_utils-0.0.2.tar.gz
.
File metadata
- Download URL: wag_advanced_analytics_utils-0.0.2.tar.gz
- Upload date:
- Size: 45.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2841a8e8ac09c1cbf195a26c12ca2a7bb107bbc790df9732491f73ea4c40b4a8 |
|
MD5 | 6fec1df4aa4a6dbb26d4967b1d79f8ad |
|
BLAKE2b-256 | bdbc2f21a6a31c08d7a2d70c095f54cf8a98add23ef108f1b5d9caf9767ba853 |
File details
Details for the file wag_advanced_analytics_utils-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: wag_advanced_analytics_utils-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8678187b2b97a8f8acd878eb4f3b5ed7671f00db21fd91f5d0f127414c7c9218 |
|
MD5 | 2113bf24a8f28dce02ff9b540c411e94 |
|
BLAKE2b-256 | 4d89524b3027c55752272c94d33565bf9c1e3770dbed70d303d74e1bed55d66a |