Skip to main content

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:

Release files for aa-algorithms-utils 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aa-algorithms-utils 0.0.1
File Size Uploaded
aa_algorithms_utils-0.0.1.tar.gz 45.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for aa-algorithms-utils 0.0.1
File Interpreter ABI Platform
aa_algorithms_utils-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 45.6 MB

Release files / aa_algorithms_utils-0.0.1.tar.gz

Download URL aa_algorithms_utils-0.0.1.tar.gz
Size 45.6 MB
Tags Source
SHA-256 checksum
How to use checksums
337f80173c86be92cafea546d79ffd81d2b89d4b0fcdcf0a6d5af020454e36df
BLAKE2b-256 checksum
How to use checksums
d82c9c3a013004c7477143aa7999fe11aed45871ca5a26878d75ee589c25ff50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / aa_algorithms_utils-0.0.1-py3-none-any.whl

Download URL aa_algorithms_utils-0.0.1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b1d26db7aabdedaa5527ee796f38e9631e108a23d5b180d37e437c118d3171c
BLAKE2b-256 checksum
How to use checksums
0c604d5a7398fd8acc24c06435f9ce444e794055610799b4f3421606de56e3b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page