background preloader

Tornado Web Server

Tornado Web Server
Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived connection to each user. Upgrade notes As of Tornado 3.2, the backports.ssl_match_hostname package must be installed when running Tornado on Python 2. This will be installed automatically when using pip or easy_install. Hello, world Here is a simple “Hello, world” example web app for Tornado: import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): def get(self): self.write("Hello, world") application = tornado.web.Application([ (r"/", MainHandler), ]) if __name__ == "__main__": application.listen(8888) tornado.ioloop.IOLoop.instance().start() This example does not use any of Tornado’s asynchronous features; for that see this simple chat room. Installation

http://tornado.readthedocs.org/en/latest/

Using PyObjC for Developing Cocoa Applications with Python Cocoa Frameworks The Cocoa frameworks consist of libraries, APIs, and runtimes that form the development layer for all of OS X. By developing with Cocoa, you will be creating applications the same way OS X itself is created. Your application will automatically inherit the great behaviors and appearances of OS X, with full access to the underlying power of the UNIX operating system. Using Cocoa with the Xcode IDE is simply the best way to create native Mac applications. The Power of Objective-C Twisted Twisted is an event-driven networking engine written in Python and licensed under the open source MIT license. Twisted makes it easy to implement custom network applications. Here's a TCP server that echoes back everything that's written to it:

Beautiful Soup: We called him Tortoise because he taught us. [ Download | Documentation | Hall of Fame | For enterprise | Source | Changelog | Discussion group | Zine ] You didn't write that awful page. You're just trying to get some data out of it. Beautiful Soup is here to help. Whoosh search About Whoosh Whoosh is a fast, featureful full-text indexing and searching library implemented in pure Python. Programmers can use it to easily add search functionality to their applications and websites. Every part of how Whoosh works can be extended or replaced to meet your needs exactly. Some of Whoosh's features include: Pythonic API. Package Index : biblio.webquery 0.4.3b Extracting bibliographic information from web services This package presents a number of methods for querying webservices for bibliographic information, and includes two scripts for querying and renaming files by ISBN. biblio.webquery can be installed in a number of ways. setuptools is preferred, but a manual installation will suffice. Via setuptools / easy_install

nik / py-diffbot py-diffbot is a command line terminal client and python library for the Diffbot article extraction and analysis API. Developer Token To use the client or Python library you will need to include a developer token, which can be obtained by submitting a request at the Diffbot website. Getting Source $ hg clone diffbot Command Line Client EPD - Frequently Asked Questions (FAQ) Q 10. Can I redistribute Canopy Express? Yes, there are a couple different ways you can redistribute Canopy Express or parts of Canopy Express. Latent Semantic Analysis in Python Latent Semantic Analysis (LSA) is a mathematical method that tries to bring out latent relationships within a collection of documents. Rather than looking at each document isolated from the others it looks at all the documents as a whole and the terms within them to identify relationships. An example of LSA: Using a search engine search for “sand”.

Beautiful Soup documentation by Leonard Richardson (leonardr@segfault.org) 这份文档也有中文版了 (This document is also available in Chinese translation) Этот документ также доступен в русском переводе. [Внешняя ссылка] (This document is also available in Russian translation. [External link])

Related: