https://github.com/alokkusingh/home-category-api
Home Stack Categorisation API using ML model
https://github.com/alokkusingh/home-category-api
Last synced: about 1 year ago
JSON representation
Home Stack Categorisation API using ML model
- Host: GitHub
- URL: https://github.com/alokkusingh/home-category-api
- Owner: alokkusingh
- License: mit
- Created: 2023-12-21T10:33:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-21T01:48:39.000Z (about 1 year ago)
- Last Synced: 2025-04-23T12:18:36.628Z (about 1 year ago)
- Language: Python
- Size: 1.98 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# home-category-api
Home Stack Classification API using ML model
```shell
python -m grpc_tools.protoc -Iproto --python_out=interface/grpc/servicer/generated --pyi_out=interface/grpc/servicer/generated --grpc_python_out=interface/grpc/servicer/generated proto/expenseCategorizer.proto
```
```shell
pip install neptune
```
```shell
pip install neptune-notebooks
jupyter nbextension enable --py neptune-notebooks
```
```shell
docker build -t alokkusingh/home-category-api:latest -t alokkusingh/home-category-api:1.0.0 .
```
```shell
docker push alokkusingh/home-category-api:latest
```
```shell
docker push alokkusingh/home-category-api:1.0.0
```
```shell
docker run -p 5051:50051 --rm --name home-category-api alokkusingh/home-category-api
```
```shell
brew install grpcurl
```
```shell
grpcurl --plaintext localhost:5051 list
```
```shell
grpcurl -plaintext localhost:5051 describe
```
```shell
grpcurl -plaintext localhost:5051 describe interface.grpc.servicer.ExpenseCategorizer
```
```shell
grpcurl -plaintext localhost:5051 describe grpc.health.v1.Health
```
```shell
grpcurl -plaintext localhost:5051 grpc.health.v1.Health/Check
```
```shell
grpcurl -plaintext -d '{"head": "Dentist"}' 127.0.0.1:5051 interface.grpc.servicer.ExpenseCategorizer/getExpenseCategoryUnary
```