Skip to main content

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 class AthenaDataProvider, 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 class Logger, which logs important messages and prints them to the terminal or CloudWatch in AWS.

  • metrics contains the class Metrics, which creates the metrics and pushes them to Datadog.

  • s3_client contains the class S3Client, 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 – typically production 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

wag_advanced_analytics_utils-0.0.1.tar.gz (45.7 MB view details)

Uploaded Source

Built Distribution

File details

Details for the file wag_advanced_analytics_utils-0.0.1.tar.gz.

File metadata

File hashes

Hashes for wag_advanced_analytics_utils-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9a0e5fc24af8494b4929c849f200e95e3b1fdbef7b43cb5e7fc4737c134ec256
MD5 0c3ce2449814f8b81aa5ff7eb735630c
BLAKE2b-256 2526965278aa0e874e93a1a069b1676fc76eb86c49d11cd3b95de6edf1f8ea2a

See more details on using hashes here.

File details

Details for the file wag_advanced_analytics_utils-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for wag_advanced_analytics_utils-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5b7098e7993105797f7fb6044ab88448f7854acfeba0d89db19e1e77cc15429
MD5 c777d32797b1673744a15b5073f060c5
BLAKE2b-256 028de7006830dd89b6c0afe3d59c7bd2421dcc617222b3d4a34a9b2f588cebe7

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