https://github.com/yu-iskw/python-rest-apis
RESTful API with various web frameworks with machine learning in python
https://github.com/yu-iskw/python-rest-apis
flask machine-learning python rest-api sklearn tornado uwsgi
Last synced: about 2 months ago
JSON representation
RESTful API with various web frameworks with machine learning in python
- Host: GitHub
- URL: https://github.com/yu-iskw/python-rest-apis
- Owner: yu-iskw
- Created: 2018-11-27T05:49:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-04T18:57:35.000Z (over 7 years ago)
- Last Synced: 2025-04-04T17:50:12.982Z (about 1 year ago)
- Topics: flask, machine-learning, python, rest-api, sklearn, tornado, uwsgi
- Language: Python
- Homepage:
- Size: 4.02 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RESTful API in Python
[Performance Result with docker](./docs/performance_docker.md)
## Prerequisites
- Anaconda
- Docker
- docker-compose
- vegeta
- `brew install vegeta`
## Commands
```
# Command to create, update and remove the conda environment.
make create-conda
make update-conda
make remove-conda
# lint and test
make lint
make test
# Build the docker images
make build-docker
# Run docker container with docker-compose.
make run-docker/tornado
make run-docker/uwsgi
```
## Motivation
I am looking for the best web framework and server in python for machine learning microservices.
I saw some articles that uWSGI's perormance is not good with high concurrencies.
So I want to make sure the performance of uWSGI and tornado by myself.
- A Performance Analysis of Python WSGI Servers: Part 2 | Blog | AppDynamics https://blog.appdynamics.com/engineering/a-performance-analysis-of-python-wsgi-servers-part-2/
- [Rewriting Uber Engineering: The Opportunities Microservices Provide \| Uber Engineering Blog](https://eng.uber.com/building-tincup/)