Skip to main content

Data Attribute Recommendation Python SDK

Project description

Data Attribute Recommendation Python SDK

A client SDK for the Data Attribute Recommendation service on SAP Business Technology Platform (SAP BTP). Part of SAP AI Business Services.

Description

Build Status Coverage Status Documentation Status PyPI - Python Version PyPI version License Code style: black Checked with mypy REUSE status CII Best Practices

Goals of this SDK:

  • Enable easy consumption of the Data Attribute Recommendation service
  • Provide convenient higher-level abstraction on top of the service APIs
  • Serve as reference implementation for other programming languages
  • Provide sample notebooks for reference usage of various templates provided by DAR

Release Notes

See CHANGELOG.md.

Note that this project follows Semantic Versioning. Versions below 1.0.0 are not guaranteed to have a stable API. For this reason, please pay attention to the CHANGELOG.md.

Resources

Requirements

To use the SDK, you will need a recent version of Python. We actively support and test Python 3.5 3.6 up to Python 3.11. We aim to support all officially supported Python version. This includes any Python version not listed as end-of-life in the Python Developer's Guide. You can check the Travis builds to see which environments are actively tested.

Additionally, the pip and virtualenv tools should be installed. See the installation instructions.

To use the SDK, you will need to have a service instance of the Data Attribute Recommendation service. For existing users of SAP BTP, please see the Initial Setup.

If you are new to SAP BTP and Data Attribute Recommendation, consider one of the following options:

Download and Installation

The SDK is installable from the Python Package Index (PyPI). The easiest way to install the SDK is via pip and virtual environments. With a virtual environment (virtualenv), the installation process is isolated to a single directory and will not influence any other projects you may have.

If you are familiar with Python and associated tooling, simply execute:

$ python3 -m virtualenv dar-sdk-venv
$ source dar-sdk-venv/bin/activate/
(dar-sdk-venv) $ pip install data-attribute-recommendation-sdk

In case you prefer more detailed instructions, please see step-by-step instructions below. A separate, more detailed tutorial is also available at developers.sap.com.

Step by Step

The following instructions assume a Linux or macOS environment. For Windows, the process is similar, but the commands may differ slightly. If in doubt, refer to the Python documentation.

First, create a working directory in your home directory.

$ cd $HOME
$ mkdir data-attribute-recommendation-python-sdk/
$ cd data-attribute-recommendation-python-sdk/

Now, create a virtualenv named dar-sdk-venv.

$ python3 -m virtualenv dar-sdk-venv

If you receive a message command not found: python3, then try using the python command instead. If you still receive a message about command not found, please ensure that python is installed.

If you observe No module named virtualenv error messages, make sure that virtualenv is installed.

Now, activate the newly created environment:

$ source dar-sdk-venv/bin/activate
(dar-sdk-venv) $

The name of the virtualenv is now part of your shell prompt.

Finally, install the SDK and its dependencies:

(dar-sdk-venv) $ pip install data-attribute-recommendation-sdk

If you receive an error message command not found: pip, then refer to installing pip.

Congratulations! You have sucessfully installed the SDK. You may now import the SDK package as a first test:

(dar-sdk-venv) $ python3
>>> from sap.aibus.dar.client.data_manager_constants import DataManagerPaths
>>> DataManagerPaths.ENDPOINT_DATASET_COLLECTION
'/data-manager/api/v3/datasets'

To use the SDK, please refer to the SDK documentation. In particular, consider the SDK security guide.

How to obtain support

For issues with the SDK itself, such as installation problems, please file an issue in Github.

For questions on how to best use the SDK, consider asking a question in the SAP Community at answers.sap.com with the Data Attribute Recommendation tag. When creating your question, add Data Attribute Recommendation as a primary tag.

For issues experienced using the service, please refer to Getting Support in the main documentation on the SAP Help Portal.

License

Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. This file and all other files in this repository are licensed under the Apache License, v 2.0 except as noted otherwise in the LICENSE file.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

data_attribute_recommendation_sdk-0.15.2.tar.gz (40.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file data_attribute_recommendation_sdk-0.15.2.tar.gz.

File metadata

File hashes

Hashes for data_attribute_recommendation_sdk-0.15.2.tar.gz
Algorithm Hash digest
SHA256 898ec4e65356817cba597a5f7ca19c1b344b0b74d7b9e863d92db6b13090bd1e
MD5 19cb15265895505b67afd4d8bc5b27cf
BLAKE2b-256 909eda2cfacacafe4fe9d92479d586020ae485b189456efa454a802becf81941

See more details on using hashes here.

Provenance

The following attestation bundles were made for data_attribute_recommendation_sdk-0.15.2.tar.gz:

Publisher: ci.yml on SAP/data-attribute-recommendation-python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file data_attribute_recommendation_sdk-0.15.2-py3-none-any.whl.

File metadata

File hashes

Hashes for data_attribute_recommendation_sdk-0.15.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a5ddab7108a58514afc6b475481cbbacf6d3c3ad13bfc6d52d4d4eb98f508584
MD5 7f77117b34bcb985a29288122950dbc6
BLAKE2b-256 14fb9fef67e34ac1a090f8a7105bcf2352a465dcf51b01498cc0b4b008d0aa75

See more details on using hashes here.

Provenance

The following attestation bundles were made for data_attribute_recommendation_sdk-0.15.2-py3-none-any.whl:

Publisher: ci.yml on SAP/data-attribute-recommendation-python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page