soulteary / go-nameparser

Nameparser API services, python-nameparser implemented by golang.

Home Page:https://soulteary.com/2023/05/22/using-golang-and-docker-to-implement-python-computing-services.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Name Parser

Nameparser API services, python-nameparser implemented by Golang.

Usage

Start NameParser service, 8080 for HTTP client and 8081 for GRPC client.

docker run --rm -it -p 8080:8080 -p 8081:8081 soulteary/go-nameparser

You can use the following commands to test the HTTP API.

# curl --request POST 'http://127.0.0.1:8080/api/convert' --header 'Content-Type: application/json' --data-raw '{"name": "Dr. Juan Q. Xavier de la Vega III (Doc Vega)"}'

{"text":"Dr. Juan Q. Xavier de la Vega III (Doc Vega)","detail":{"title":"Dr.","first":"Juan","middle":"Q. Xavier","last":"de la Vega","suffix":"III","nickname":"Doc Vega"}}

You can use the following commands to test the GRPC API.

cd example/grpc-client
go run main.go

Tutorial

Dev

docker build -t soulteary/go-nameparser . -f docker/Dockerfile

Credits

License

Keep the same with the python-nameparser, use LGPL-2.1 license.

About

Nameparser API services, python-nameparser implemented by golang.

https://soulteary.com/2023/05/22/using-golang-and-docker-to-implement-python-computing-services.html

License:GNU Lesser General Public License v2.1


Languages

Language:Go 83.8%Language:Dockerfile 13.0%Language:Python 3.2%