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_providercontains 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_queryreturns a DataFrame with the information requested by the query passed as argument. -
loggercontains the classLogger, which logs important messages and prints them to the terminal or CloudWatch in AWS. -
metricscontains the classMetrics, which creates the metrics and pushes them to Datadog. -
s3_clientcontains the classS3Client, that is initialized using boto3.client and boto3.resource and the environment variable RESULT_BUCKET.The function
upload_filesuploads the DataFrame returned by the algorithm (output_df) to the given path (output_path) in AWS, for the chosen variant (variant– typicallyproductionor the name of the experiment, if testing new features).
To use these modules in the experiments do the following:
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
337f80173c86be92cafea546d79ffd81d2b89d4b0fcdcf0a6d5af020454e36df
|
|
| MD5 |
09a5d5394b685224a9aad038b19c7173
|
|
| BLAKE2b-256 |
d82c9c3a013004c7477143aa7999fe11aed45871ca5a26878d75ee589c25ff50
|
File details
Details for the file aa_algorithms_utils-0.0.1-py3-none-any.whl.
File metadata
- Download URL: aa_algorithms_utils-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.4 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 |
6b1d26db7aabdedaa5527ee796f38e9631e108a23d5b180d37e437c118d3171c
|
|
| MD5 |
1e83cb46b0f57d4b39af2052fa5f9e12
|
|
| BLAKE2b-256 |
0c604d5a7398fd8acc24c06435f9ce444e794055610799b4f3421606de56e3b6
|