Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "drucker_client/grpc"]
path = drucker_client/grpc
url = https://github.com/rekcurd/drucker-grpc-proto.git
[submodule "rekcurd_client/grpc"]
path = rekcurd_client/grpc
url = https://github.com/rekcurd/grpc-proto.git
branch = master
72 changes: 36 additions & 36 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,76 +1,76 @@
# Change Log

## [v0.4.5](https://github.com/rekcurd/drucker-client/tree/v0.4.5) (2019-01-30)
[Full Changelog](https://github.com/rekcurd/drucker-client/compare/v0.4.4...v0.4.5)
## [v0.4.5](https://github.com/rekcurd/python-client/tree/v0.4.5) (2019-01-30)
[Full Changelog](https://github.com/rekcurd/python-client/compare/v0.4.4...v0.4.5)

**Merged pull requests:**

- Unittest py37 support [\#17](https://github.com/rekcurd/drucker-client/pull/17) ([keigohtr](https://github.com/keigohtr))
- fix DummyApp in unittest [\#15](https://github.com/rekcurd/drucker-client/pull/15) ([yuki-mt](https://github.com/yuki-mt))
- Unittest py37 support [\#17](https://github.com/rekcurd/python-client/pull/17) ([keigohtr](https://github.com/keigohtr))
- fix DummyApp in unittest [\#15](https://github.com/rekcurd/python-client/pull/15) ([yuki-mt](https://github.com/yuki-mt))

## [v0.4.4](https://github.com/rekcurd/drucker-client/tree/v0.4.4) (2019-01-15)
[Full Changelog](https://github.com/rekcurd/drucker-client/compare/v0.4.3...v0.4.4)
## [v0.4.4](https://github.com/rekcurd/python-client/tree/v0.4.4) (2019-01-15)
[Full Changelog](https://github.com/rekcurd/python-client/compare/v0.4.3...v0.4.4)

**Merged pull requests:**

- Add slack notification [\#13](https://github.com/rekcurd/drucker-client/pull/13) ([keigohtr](https://github.com/keigohtr))
- Add slack notification [\#13](https://github.com/rekcurd/python-client/pull/13) ([keigohtr](https://github.com/keigohtr))

## [v0.4.3](https://github.com/rekcurd/drucker-client/tree/v0.4.3) (2018-12-26)
[Full Changelog](https://github.com/rekcurd/drucker-client/compare/v0.4.2...v0.4.3)
## [v0.4.3](https://github.com/rekcurd/python-client/tree/v0.4.3) (2018-12-26)
[Full Changelog](https://github.com/rekcurd/python-client/compare/v0.4.2...v0.4.3)

**Merged pull requests:**

- Update README.md [\#12](https://github.com/rekcurd/drucker-client/pull/12) ([keigohtr](https://github.com/keigohtr))
- Istio support [\#11](https://github.com/rekcurd/drucker-client/pull/11) ([keigohtr](https://github.com/keigohtr))
- Update README.md [\#12](https://github.com/rekcurd/python-client/pull/12) ([keigohtr](https://github.com/keigohtr))
- Istio support [\#11](https://github.com/rekcurd/python-client/pull/11) ([keigohtr](https://github.com/keigohtr))

## [v0.4.2](https://github.com/rekcurd/drucker-client/tree/v0.4.2) (2018-11-28)
[Full Changelog](https://github.com/rekcurd/drucker-client/compare/v0.4.1...v0.4.2)
## [v0.4.2](https://github.com/rekcurd/python-client/tree/v0.4.2) (2018-11-28)
[Full Changelog](https://github.com/rekcurd/python-client/compare/v0.4.1...v0.4.2)

## [v0.4.1](https://github.com/rekcurd/drucker-client/tree/v0.4.1) (2018-11-20)
[Full Changelog](https://github.com/rekcurd/drucker-client/compare/v0.4.0...v0.4.1)
## [v0.4.1](https://github.com/rekcurd/python-client/tree/v0.4.1) (2018-11-20)
[Full Changelog](https://github.com/rekcurd/python-client/compare/v0.4.0...v0.4.1)

**Merged pull requests:**

- Prepare for release v0.4.1 [\#9](https://github.com/rekcurd/drucker-client/pull/9) ([keigohtr](https://github.com/keigohtr))
- Prepare for release v0.4.1 [\#9](https://github.com/rekcurd/python-client/pull/9) ([keigohtr](https://github.com/keigohtr))

## [v0.4.0](https://github.com/rekcurd/drucker-client/tree/v0.4.0) (2018-11-07)
[Full Changelog](https://github.com/rekcurd/drucker-client/compare/v0.3.4...v0.4.0)
## [v0.4.0](https://github.com/rekcurd/python-client/tree/v0.4.0) (2018-11-07)
[Full Changelog](https://github.com/rekcurd/python-client/compare/v0.3.4...v0.4.0)

**Merged pull requests:**

- Add badge [\#8](https://github.com/rekcurd/drucker-client/pull/8) ([keigohtr](https://github.com/keigohtr))
- Create CONTRIBUTING.md [\#7](https://github.com/rekcurd/drucker-client/pull/7) ([syleeeee](https://github.com/syleeeee))
- Create CODE\_OF\_CONDUCT.md [\#6](https://github.com/rekcurd/drucker-client/pull/6) ([syleeeee](https://github.com/syleeeee))
- Pipnize drucker client [\#5](https://github.com/rekcurd/drucker-client/pull/5) ([keigohtr](https://github.com/keigohtr))
- Add badge [\#8](https://github.com/rekcurd/python-client/pull/8) ([keigohtr](https://github.com/keigohtr))
- Create CONTRIBUTING.md [\#7](https://github.com/rekcurd/python-client/pull/7) ([syleeeee](https://github.com/syleeeee))
- Create CODE\_OF\_CONDUCT.md [\#6](https://github.com/rekcurd/python-client/pull/6) ([syleeeee](https://github.com/syleeeee))
- Pipnize drucker client [\#5](https://github.com/rekcurd/python-client/pull/5) ([keigohtr](https://github.com/keigohtr))

## [v0.3.4](https://github.com/rekcurd/drucker-client/tree/v0.3.4) (2018-10-03)
[Full Changelog](https://github.com/rekcurd/drucker-client/compare/v0.3.3...v0.3.4)
## [v0.3.4](https://github.com/rekcurd/python-client/tree/v0.3.4) (2018-10-03)
[Full Changelog](https://github.com/rekcurd/python-client/compare/v0.3.3...v0.3.4)

## [v0.3.3](https://github.com/rekcurd/drucker-client/tree/v0.3.3) (2018-08-29)
[Full Changelog](https://github.com/rekcurd/drucker-client/compare/v0.3.2...v0.3.3)
## [v0.3.3](https://github.com/rekcurd/python-client/tree/v0.3.3) (2018-08-29)
[Full Changelog](https://github.com/rekcurd/python-client/compare/v0.3.2...v0.3.3)

**Merged pull requests:**

- Refactor `sys.path.append` related code [\#3](https://github.com/rekcurd/drucker-client/pull/3) ([keigohtr](https://github.com/keigohtr))
- Refactor `sys.path.append` related code [\#3](https://github.com/rekcurd/python-client/pull/3) ([keigohtr](https://github.com/keigohtr))

## [v0.3.2](https://github.com/rekcurd/drucker-client/tree/v0.3.2) (2018-08-22)
[Full Changelog](https://github.com/rekcurd/drucker-client/compare/v0.3.1...v0.3.2)
## [v0.3.2](https://github.com/rekcurd/python-client/tree/v0.3.2) (2018-08-22)
[Full Changelog](https://github.com/rekcurd/python-client/compare/v0.3.1...v0.3.2)

## [v0.3.1](https://github.com/rekcurd/drucker-client/tree/v0.3.1) (2018-08-15)
[Full Changelog](https://github.com/rekcurd/drucker-client/compare/v0.3.0...v0.3.1)
## [v0.3.1](https://github.com/rekcurd/python-client/tree/v0.3.1) (2018-08-15)
[Full Changelog](https://github.com/rekcurd/python-client/compare/v0.3.0...v0.3.1)

**Merged pull requests:**

- \[Hotfix\] Change code generator [\#2](https://github.com/rekcurd/drucker-client/pull/2) ([keigohtr](https://github.com/keigohtr))
- \[Hotfix\] Change code generator [\#2](https://github.com/rekcurd/python-client/pull/2) ([keigohtr](https://github.com/keigohtr))

## [v0.3.0](https://github.com/rekcurd/drucker-client/tree/v0.3.0) (2018-08-08)
[Full Changelog](https://github.com/rekcurd/drucker-client/compare/v0.2.0...v0.3.0)
## [v0.3.0](https://github.com/rekcurd/python-client/tree/v0.3.0) (2018-08-08)
[Full Changelog](https://github.com/rekcurd/python-client/compare/v0.2.0...v0.3.0)

**Merged pull requests:**

- Add version info to endpoint [\#1](https://github.com/rekcurd/drucker-client/pull/1) ([keigohtr](https://github.com/keigohtr))
- Add version info to endpoint [\#1](https://github.com/rekcurd/python-client/pull/1) ([keigohtr](https://github.com/keigohtr))

## [v0.2.0](https://github.com/rekcurd/drucker-client/tree/v0.2.0) (2018-07-17)
## [v0.2.0](https://github.com/rekcurd/python-client/tree/v0.2.0) (2018-07-17)


\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
16 changes: 8 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
## How to contribute to Drucker project
## How to contribute to Rekcurd project

First of all, thank you so much for taking your time to contribute! Drucker is not very different from any other open
First of all, thank you so much for taking your time to contribute! Rekcurd is not very different from any other open
source projects you are aware of. It will be amazing if you could help us by doing any of the following:

- File an issue in [the issue tracker](https://github.com/drucker/drucker-client/issues) to report bugs and propose new features and
- File an issue in [the issue tracker](https://github.com/rekcurd/python-client/issues) to report bugs and propose new features and
improvements.
- Ask a question by creating a new issue in [the issue tracker](https://github.com/drucker/drucker-client/issues).
- Browse [the list of previously asked questions](https://github.com/drucker/drucker-client/issues?q=label%3Aquestion).
- Contribute your work by sending [a pull request](https://github.com/drucker/drucker-client/pulls).
- Ask a question by creating a new issue in [the issue tracker](https://github.com/rekcurd/python-client/issues).
- Browse [the list of previously asked questions](https://github.com/rekcurd/python-client/issues?q=label%3Aquestion).
- Contribute your work by sending [a pull request](https://github.com/rekcurd/python-client/pulls).

### Contributor license agreement

When you are sending a pull request and it's a non-trivial change beyond fixing typos, please sign
[the ICLA (individual contributor license agreement)](https://cla-assistant.io/drucker/drucker). Please
[the ICLA (individual contributor license agreement)](https://cla-assistant.io/rekcurd/python-client). Please
[contact us](dl_oss_dev@linecorp.com) if you need the CCLA (corporate contributor license agreement).

### Code of conduct

We expect contributors to follow [our code of conduct](https://github.com/drucker/drucker-client/blob/master/CODE_OF_CONDUCT.md).
We expect contributors to follow [our code of conduct](https://github.com/rekcurd/python-client/blob/master/CODE_OF_CONDUCT.md).
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
# rekcurd-client

[![Build Status](https://travis-ci.com/rekcurd/drucker-client.svg?branch=master)](https://travis-ci.com/rekcurd/drucker-client)
[![Build Status](https://travis-ci.com/rekcurd/python-client.svg?branch=master)](https://travis-ci.com/rekcurd/python-client)
[![PyPI version](https://badge.fury.io/py/rekcurd-client.svg)](https://badge.fury.io/py/rekcurd-client)
[![codecov](https://codecov.io/gh/rekcurd/drucker-client/branch/master/graph/badge.svg)](https://codecov.io/gh/rekcurd/drucker-client "Non-generated packages only")
[![codecov](https://codecov.io/gh/rekcurd/python-client/branch/master/graph/badge.svg)](https://codecov.io/gh/rekcurd/python-client "Non-generated packages only")
[![pypi supported versions](https://img.shields.io/pypi/pyversions/rekcurd-client.svg)](https://pypi.python.org/pypi/rekcurd-client)

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/drucker-parent
https://github.com/rekcurd/community


## Components
- [Rekcurd](https://github.com/rekcurd/drucker): Project for serving ML module.
- [Rekcurd-dashboard](https://github.com/rekcurd/drucker-dashboard): Project for managing ML model and deploying ML module.
- [Rekcurd-client](https://github.com/rekcurd/drucker-client) (here): Project for integrating ML module.
- [Rekcurd](https://github.com/rekcurd/rekcurd-python): Project for serving ML module.
- [Rekcurd-dashboard](https://github.com/rekcurd/dashboard): Project for managing ML model and deploying ML module.
- [Rekcurd-client](https://github.com/rekcurd/python-client) (here): Project for integrating ML module.


## Installation
From source:

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

Expand All @@ -37,12 +37,12 @@ pip install rekcurd_client
Example code is available [here](./example/sample.py).

```python
from drucker_client import DruckerWorkerClient
from drucker_client.logger import logger
from rekcurd_client import RekcurdWorkerClient
from rekcurd_client.logger import logger


host = 'localhost:5000'
client = DruckerWorkerClient(logger=logger, host=host)
client = RekcurdWorkerClient(logger=logger, host=host)

input = [0,0,0,1,11,0,0,0,0,0,
0,7,8,0,0,0,0,0,1,13,
Expand All @@ -57,14 +57,14 @@ response = client.run_predict_arrint_arrint(input)
When you use Kubernetes and deploy Rekcurd service via Rekcurd dashboard, you can access your Rekcurd service like the below.

```python
from drucker_client import DruckerWorkerClient
from drucker_client.logger import logger
from rekcurd_client import RekcurdWorkerClient
from rekcurd_client.logger import logger


domain = 'example.com'
app = 'drucker-sample'
app = 'rekcurd-sample'
env = 'development'
client = DruckerWorkerClient(logger=logger, domain=domain, app=app, env=env)
client = RekcurdWorkerClient(logger=logger, domain=domain, app=app, env=env)

input = [0,0,0,1,11,0,0,0,0,0,
0,7,8,0,0,0,0,0,1,13,
Expand All @@ -76,7 +76,7 @@ input = [0,0,0,1,11,0,0,0,0,0,
response = client.run_predict_arrint_arrint(input)
```

### DruckerWorkerClient
### RekcurdWorkerClient
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<BR>(required) |input: option |output: label<BR>(required) |output: score<BR>(required) |output: option |
Expand Down
1 change: 0 additions & 1 deletion drucker_client/grpc
Submodule grpc deleted from 9f9636
10 changes: 5 additions & 5 deletions example/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
# -*- coding: utf-8 -*-


from drucker_client import DruckerWorkerClient
from drucker_client.logger import logger
from rekcurd_client import RekcurdWorkerClient
from rekcurd_client.logger import logger


host = 'localhost:5000'
client = DruckerWorkerClient(logger=logger, host=host)
client = RekcurdWorkerClient(logger=logger, host=host)

#domain = 'example.com'
#app = 'drucker-sample'
#app = 'rekcurd-sample'
#env = 'development'
#client = DruckerWorkerClient(logger=logger, domain=domain, app=app, env=env)
#client = RekcurdWorkerClient(logger=logger, domain=domain, app=app, env=env)

input = [0,0,0,1,11,0,0,0,0,0,
0,7,8,0,0,0,0,0,1,13,
Expand Down
8 changes: 4 additions & 4 deletions drucker_client/__init__.py → rekcurd_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 The Drucker Authors.
# Copyright 2018 The Rekcurd Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,10 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from drucker_client import _project
from drucker_client import _version
from rekcurd_client import _project
from rekcurd_client import _version

__project__ = _project.__project__
__version__ = _version.__version__

from .drucker_worker_client import DruckerWorkerClient
from .rekcurd_worker_client import RekcurdWorkerClient
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions rekcurd_client/grpc
Submodule grpc added at 4fcb28
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class FluentSystemLogger(SystemLoggerInterface):

def __init__(self, logger_name: str = 'drucker_client', log_level: int = logging.NOTSET) -> None:
def __init__(self, logger_name: str = 'rekcurd_client', log_level: int = logging.NOTSET) -> None:
"""
Constructor
:param logger_name: logger name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def add_fields(self, log_record, record, message_dict):
log_record['host'] = gethostname()
log_record['timestamp'] = int(time.time() * 1000) / 1000

def __init__(self, logger_name: str = 'drucker_client', log_level: int = logging.NOTSET) -> None:
def __init__(self, logger_name: str = 'rekcurd_client', log_level: int = logging.NOTSET) -> None:
"""
Constructor
:param logger_name: logger name
Expand Down
File renamed without changes.
Loading