Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Python Tornado Version?

How do I get the current version of my Python Tornado module version?

With other packages I can do the following:

print <modulename>.__version__

Source: How to check version of Python modules

like image 955
D Adams Avatar asked Jun 30 '15 18:06

D Adams


People also ask

What is python3 Tornado?

scalable, non-blocking web server and tools - Python 3 package. Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.

What is Tornado package in Python?

Tornado is a Python web framework and asynchronous network library, originally developed at FriendFreed. Tornado uses non-blocking network-io. Due to this, it can handle thousands of active server connections. It is a saviour for applications where long polling and a large number of active connections are maintained.

What is Tornado web application?

A Tornado web application generally consists of one or more RequestHandler subclasses, an Application object which routes incoming requests to handlers, and a main() function to start the server.


1 Answers

Tornado has both tornado.version, which is a string for human consumption (currently "4.2"), and tornado.version_info, which is a numeric tuple that is better for programmatic comparisons (currently (4, 2, 0, 0)). The fourth value of version_info will be negative for betas and other pre-releases.

like image 166
Ben Darnell Avatar answered Sep 27 '22 20:09

Ben Darnell