Overview
A helper library for working with features and featuresets programmatically leveraging the existing anaml_client SDK.
Example Usage
from anaml_client import Anaml ##import Anaml as normal.
from anaml_helper import AnamlHelper ##import AnamlHelper
anaml_client = Anaml(url=,apikey=,secret=,ref=) ##create Anaml class
anaml_helper = AnamlHelper(anaml_client) ##pass Anaml to AnamlHelper
This will provide access to the helper methods for interacting with Features and FeatureSets via anaml sdk. N.B - The library is currently limited to working only with Features and FeatureSet objects.
The below contains some examples and a list of available methods.
Feature Methods
- create_feature
- update_feature_aggregate
- update_feature_attributes
- update_feature_description
- update_feature_entityRestrictions
- update_feature_filter
- update_feature_labels
- update_feature_name
- update_feature_postAggregateExpr
- update_feature_select
- update_feature_table
- update_feature_template
- update_feature_to_DayWindow
- update_feature_to_OpenWindow
- update_feature_to_RowWindow
#Creating EventFeature
anaml_helper.create_feature("feature_name",
attributes=[{"key": "OWNER", "value": "C11_HH360"},
{"key": "CREATOR", "value": "my_email@domain.com"}],
labels=["label1", "label2"],
select="accnt_key",
description="feature description",
template=None,
table=383,
filter="accnt_key is not null",
aggregate="count",
post_aggregate=None,
entity_ids=[4])
#Updating feature labels
anaml_helper.update_feature_labels(feature_id=3467,labels=['label1','label2','label3'])
#Updating feature filter
anaml_helper.update_feature_filter(feature_id=3467, filter="accnt_id is not null")
#Updating feature name
anaml_helper.update_feature_name(feature_id=3457, name="modified_feature_name")
#Updating feature window to DayWindow
anaml_helper.update_feature_to_DayWindow(feature_id=3467, days=30)
#Updating feature window to RowWindow
anaml_helper.update_feature_to_RowWindow(feature_id=3467, rows=10_000)
FeatureSet Methods
- create_featureset
- update_featureset_attributes
- update_featureset_description
- update_featureset_entity
- update_featureset_features
- update_featureset_labels
- update_featureset_name
#Creating FeatureSet
anaml_helper.create_featureset(
name="featureset_name",
entity=4,
description="featureset description.",
labels=["featureset_label1","featureset_label2"],
attributes=[{"key": "OWNER", "value": "C11_HH360"}],
features=[3467, 3459, 3462]
)
#Updating featureset name
anaml_helper.update_featureset_name(featureset_id=440,name="new_featureset_name")
#Updating featureset description
anaml_helper.update_featureset_description(featureset_id=440,description="new featureset description")
#Updating featureset entity
anaml_helper.update_featureset_entity(featureset_id=333, entity_id=3)
Metadata
Release files for anaml-helper 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| anaml_helper-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for anaml_helper-1.0.1-py3-none-any.whl |
Release files / anaml_helper-1.0.1-py3-none-any.whl
| Download URL | anaml_helper-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9573b8b32d74de59d4ab5905424e79ab1a7982772e2043935c31511f89aecc94
|
|
BLAKE2b-256 checksum How to use checksums |
bc88cbd2d8164b25178bf76a53034245e4d675feb2c7172f75438c582d3fcce8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.4
|
Security for anaml-helper 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.