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:
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)
| File | Size | Uploaded | |
|---|---|---|---|
| aa_algorithms_utils-0.0.1.tar.gz | 45.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|