Skip to main content

A Python gRPC client for Rekcurd.

Project description

rekcurd-client

Build Status PyPI version codecov pypi supported versions

Rekcurd client is the project for integrating ML module. Any Rekcurd service is connectable. It can connect the Rekcurd service on Kubernetes.

Parent Project

https://github.com/rekcurd/community

Components

Installation

From source:

git clone --recursive https://github.com/rekcurd/python-client.git
cd python-client
python setup.py install

From PyPi directly:

pip install rekcurd_client

How to use

Example is available here.

Unittest

$ python -m unittest

Method definition

You need to use an appropriate method for your Rekcurd service. The methods are generated according to the input and output formats. V is the length of feature vector. M is the number of classes. If your algorithm is a binary classifier, you set M to 1. If your algorithm is a multi-class classifier, you set M to the number of classes.

method input: data
(required)
input: option output: label
(required)
output: score
(required)
output: option
run_predict_string_string string string (json) string double string (json)
run_predict_string_bytes string string (json) bytes double string (json)
run_predict_string_arrint string string (json) int[M] double[M] string (json)
run_predict_string_arrfloat string string (json) double[M] double[M] string (json)
run_predict_string_arrstring string string (json) string[M] double[M] string (json)
run_predict_bytes_string bytes string (json) string double string (json)
run_predict_bytes_bytes bytes string (json) bytes double string (json)
run_predict_bytes_arrint bytes string (json) int[M] double[M] string (json)
run_predict_bytes_arrfloat bytes string (json) double[M] double[M] string (json)
run_predict_bytes_arrstring bytes string (json) string[M] double[M] string (json)
run_predict_arrint_string int[V] string (json) string double string (json)
run_predict_arrint_bytes int[V] string (json) bytes double string (json)
run_predict_arrint_arrint int[V] string (json) int[M] double[M] string (json)
run_predict_arrint_arrfloat int[V] string (json) double[M] double[M] string (json)
run_predict_arrint_arrstring int[V] string (json) string[M] double[M] string (json)
run_predict_arrfloat_string double[V] string (json) string double string (json)
run_predict_arrfloat_bytes double[V] string (json) bytes double string (json)
run_predict_arrfloat_arrint double[V] string (json) int[M] double[M] string (json)
run_predict_arrfloat_arrfloat double[V] string (json) double[M] double[M] string (json)
run_predict_arrfloat_arrstring double[V] string (json) string[M] double[M] string (json)
run_predict_arrstring_string string[V] string (json) string double string (json)
run_predict_arrstring_bytes string[V] string (json) bytes double string (json)
run_predict_arrstring_arrint string[V] string (json) int[M] double[M] string (json)
run_predict_arrstring_arrfloat string[V] string (json) double[M] double[M] string (json)
run_predict_arrstring_arrstring string[V] string (json) string[M] double[M] string (json)

The input "option" field needs to be a json format. Any style is Ok but we have some reserved fields below.

Field Type Description
suppress_log_input bool True: NOT print the input and output to the log message.
False (default): Print the input and output to the log message.

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

rekcurd_client-1.0.1.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

rekcurd_client-1.0.1-py2.py3-none-any.whl (21.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file rekcurd_client-1.0.1.tar.gz.

File metadata

  • Download URL: rekcurd_client-1.0.1.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for rekcurd_client-1.0.1.tar.gz
Algorithm Hash digest
SHA256 30b8eaf02c58598281e97767cd6c4767049ce248bb88adfa242a7ce08ec36d64
MD5 1296fac45e936731d97c336a743ef247
BLAKE2b-256 eac5195711ade584accee933e79784a290678c1b0b54c41345b1f8a17f2a9211

See more details on using hashes here.

File details

Details for the file rekcurd_client-1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: rekcurd_client-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for rekcurd_client-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 91a441c82cc527d97a0493f6d9a8227ba7348767e25ba7491783fc585ef28727
MD5 0fb55f4858dc954747d00afccc01877a
BLAKE2b-256 8aab141aef0f654d5afec192fe2b9d73a667833825950937f8b40e0203e55ea2

See more details on using hashes here.

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