Skip to main content

A Python Client for the Tecton FeatureService API

Project description

Python Client Library for Tecton Online Feature Store

A simple Python client for the Feature Server HTTP API that helps customers integrate with Tecton easily.

Documentation

Troubleshooting

If you have any questions or need help, please open an Issue or reach out to us on Slack!

Installing the client

The client can be installed using pip.

pip install tecton-client

The client can then be used as below:

tecton_client = TectonClient(url, api_key)

get_features_request_data = GetFeaturesRequestData(
    join_key_map={"user_id": "123", "merchant": "xyz"},
    request_context_map={"amt": 500.00},
)

get_features_request = GetFeaturesRequest(
    workspace_name="<Your-workspace>",
    feature_service_name="fraud_detection_feature_service",
    request_data=get_features_request_data,
)

get_features_response = tecton_client.get_features(get_features_request)

print(
    [feature.feature_value for feature in get_features_response.feature_values.values()]
)

For more information, please refer to Tecton documentation on the Python Client Library.

License

The project is licensed under Apache License 2.0

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

tecton_client-0.1.0b4.tar.gz (39.8 kB view hashes)

Uploaded Source

Built Distribution

tecton_client-0.1.0b4-py3-none-any.whl (28.2 kB view hashes)

Uploaded Python 3

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