Skip to content

cgDeepLearn/pyserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyserver

template server in python |python微服务小模板

开发日志: https://cgdeeplearn.github.io/2020/05/18/Mirco-service/

1. clone project

git clone https://github.com/cgDeepLearn/pyserver.git

2. install pipenv

pip install pipenv

3. install requirements

cd pyservr/src
pipenv install -r requirements.txt

4. start server

cd pyserver/script
./operate start

5.test request

curl http://127.0.0.1:10001/test -d '{"order_id":12345}'

6. and more

  • config server_ip/port
  • config mysql / redis
  • develop api by need
  • config gevent workers in gunicorn_config.py

About

template server in python | python 微服务小模板

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published