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.2.tar.gz (45.7 MB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for wag_advanced_analytics_utils-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2841a8e8ac09c1cbf195a26c12ca2a7bb107bbc790df9732491f73ea4c40b4a8
MD5 6fec1df4aa4a6dbb26d4967b1d79f8ad
BLAKE2b-256 bdbc2f21a6a31c08d7a2d70c095f54cf8a98add23ef108f1b5d9caf9767ba853

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wag_advanced_analytics_utils-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8678187b2b97a8f8acd878eb4f3b5ed7671f00db21fd91f5d0f127414c7c9218
MD5 2113bf24a8f28dce02ff9b540c411e94
BLAKE2b-256 4d89524b3027c55752272c94d33565bf9c1e3770dbed70d303d74e1bed55d66a

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