KoNLPy-gRPC
Redesigned KoNLPy (Wrapper) for Usability and Portability with gRPC.
Requirements:
pip install poetry
pip install -r $(python manage.py requirements.txt) -r $(python manage.py requirements-dev.txt)
gRPC Compile needed!
python -m grpc_tools.protoc -I protos/ --python_out=konlpy_grpc/_generated/ --grpc_python_out=konlpy_grpc/_generated/ protos/*.proto
Server
python -m pip install konlpy
python -m konlpy_grpc server
python -m konlpy_grpc hannanum_server
python -m konlpy_grpc kkma_server
python -m konlpy_grpc komoran_server
python -m konlpy_grpc mecab_server
python -m konlpy_grpc okt_server
Tests
python -m pytest
python -m pytest --grpc-fake-server
python -m pytest --grpc-real-server=[::]:50051
python -m pytest --konlpy-repo=../konlpy
Release
rm -rf dist/
poetry publish --build -r test
poetry run twine upload --repository-url https://test.pypi.org/legacy/ dist/*
TODO
- [P0] client.py will be a konlpy-alike module.
- [P0] KoNLPy monkey-patcher
- [P1] Packaging with Poetry
pyproject.toml.- PyPI Register
- Find lowerbound-version of requirements.
- [P1] gRPC Proto Compile
- [P1] In-house tool:
manage.py
- [P1] KoNLPy Version Matching (set minimum) and Follow-up
- [P1] gRPC retry/timeout/error_handling logic
- [P1] gRPC reflection
- [P1] gRPC heartbeat
- [P1] gRPC Gateway (gRPC to JSON)
- [P2] Dockerize / Register
- k8s and istio?
- [P2] CI
- [P3] Button for deploying this to AWS/GCS/Azure now! (and connect by README.)
- [P3] CustomDic?
- [P3] Stream I/O
- [P3] Redesign tests/ with grpc-testing
- [P4] Java Edition for KoNLPy-gRPC-Server
- gRPC protos deploy/versioning
Additional Links
- KoNLPy/KoNLPy
- Pruned KoNLPy v0.5.2-rc.1
- Currently, servers rely on KoNLPy v0.5.2 version.
License
GNU GPLv3
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
konlpy_grpc-0.1.0.tar.gz
(24.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file konlpy_grpc-0.1.0.tar.gz.
File metadata
- Download URL: konlpy_grpc-0.1.0.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/0.12.17 CPython/3.7.4 Darwin/19.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af7980100463712d73309cb1809757bf691ba2ed9ca7b10576a049c4ddee8ce5
|
|
| MD5 |
07b2e6cd222923164a1141f0c56b0312
|
|
| BLAKE2b-256 |
8cc972977e784acf03a2cecb7affed33d11d6df285809bcbe40dd5d80614232c
|
File details
Details for the file konlpy_grpc-0.1.0-py3-none-any.whl.
File metadata
- Download URL: konlpy_grpc-0.1.0-py3-none-any.whl
- Upload date:
- Size: 38.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/0.12.17 CPython/3.7.4 Darwin/19.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db41c355140b71258a432b32c4022cb42e0d59d5d75dac8a16ea274f0d47c25c
|
|
| MD5 |
f684697e969a2ee0ccbc67b2bf78aba7
|
|
| BLAKE2b-256 |
63e46dccd7ce43bb98624c961d1e3e5b8e0a24ff5d9d629afaeda7d22f9ff51c
|