Giter Club home page Giter Club logo

seldon-deploy-sdk's Introduction

Seldon Deploy SDK

This repository holds different SDK implementations to interact with the Seldon Deploy API.

โš ๏ธ NOTE: The Seldon Deploy SDK only supports Seldon Deploy >=0.9.

Python

Installation

To install the Python version of the SDK run:

pip install seldon-deploy-sdk

Usage

The Python version of the SDK includes support for common authentication workflows.

You can see an example usage below:

from seldon_deploy_sdk import EnvironmentApi, Configuration, ApiClient
from seldon_deploy_sdk.auth import OIDCAuthenticator

config = Configuration()
config.host = "http://X.X.X.X/seldon-deploy/api/v1alpha1"
config.oidc_client_id = "sd-api"
config.oidc_server = "http://X.X.X.X/auth/realms/deploy-realm"
config.username = "*******"
config.password = "*******"
config.auth_method = 'password_grant'

auth = OIDCAuthenticator(config)
config.access_token = auth.authenticate()

api_client = ApiClient(config, auth)

env_api = EnvironmentApi(api_client)
user = env_api.read_user()

print(user)

You can find more details on the Python SDK documentation.

SDK Generation

To generate a new version of the SDK, you can use the Makefile targets available. For example, for Python you could do:

make python

Templates

There is some custom logic added on top of each client. These extra files and customisation can be found in the ./templates folder.

seldon-deploy-sdk's People

Contributors

ivan-valkov avatar rafalskolasinski avatar ryandawsonuk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.