Python RESTful Service(1)Twisted Version Upgrade

Python RESTful Service(1)Twisted Version Upgrade

Check Python version and Pip Version
>python -V
Python 2.7.13

>pip -V
pip 9.0.1 from /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (python 2.7)

Make sure pip is the latest
>pip install -U setuptools
>pip install -U pip

Install twisted on my command line tool environment
Try to fetch the latest version right now.
>wget https://twistedmatrix.com/Releases/Twisted/17.1/Twisted-17.1.0.tar.bz2
Unzip that and move to the working directory

Install from the source
>python setup.py install    Or  >pip install Twisted

Verify the installation
>>> import twisted
>>> print twisted.version
[Twisted, version 17.1.0]

I have a sample project called sillycat-prest. And there is command to run that
>python restapi/com/sillycat/prestapi/RestAPI.py

But it seems a lot of work to do after we have the twisted.

Let’s try https://github.com/tornadoweb/tornado



References:
twisted
http://sillycat.iteye.com/blog/2243749
http://sillycat.iteye.com/blog/2243775
http://sillycat.iteye.com/blog/2244167
http://sillycat.iteye.com/blog/2244169

tornado
http://www.tornadoweb.org/en/stable/guide.html official document
https://segmentfault.com/a/1190000002703128
https://segmentfault.com/a/1190000002703321
https://segmentfault.com/a/1190000002705416


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326352242&siteId=291194637