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

aa_algorithms_utils-0.0.1.tar.gz (45.6 MB view details)

Uploaded Source

Built Distribution

aa_algorithms_utils-0.0.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aa_algorithms_utils-0.0.1.tar.gz
  • Upload date:
  • Size: 45.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for aa_algorithms_utils-0.0.1.tar.gz
Algorithm Hash digest
SHA256 337f80173c86be92cafea546d79ffd81d2b89d4b0fcdcf0a6d5af020454e36df
MD5 09a5d5394b685224a9aad038b19c7173
BLAKE2b-256 d82c9c3a013004c7477143aa7999fe11aed45871ca5a26878d75ee589c25ff50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aa_algorithms_utils-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b1d26db7aabdedaa5527ee796f38e9631e108a23d5b180d37e437c118d3171c
MD5 1e83cb46b0f57d4b39af2052fa5f9e12
BLAKE2b-256 0c604d5a7398fd8acc24c06435f9ce444e794055610799b4f3421606de56e3b6

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