background preloader

Twisted

Twisted is an event-driven networking engine written in Python and licensed under the open source ​MIT license. Twisted runs on Python 2 and an ever growing subset also works with Python 3. Twisted makes it easy to implement custom network applications. Here's a TCP server that echoes back everything that's written to it: from twisted.internet import protocol, reactor, endpoints class Echo(protocol.Protocol): def dataReceived(self, data): self.transport.write(data) class EchoFactory(protocol.Factory): def buildProtocol(self, addr): return Echo() endpoints.serverFromString(reactor, "tcp:1234").listen(EchoFactory()) reactor.run() Learn more about ​writing servers, ​writing clients and the ​core networking libraries , including support for SSL, UDP, scheduled events, unit testing infrastructure, and much more. Twisted includes an event-driven web server. Learn more about ​web application development, ​templates and Twisted's ​HTTP client. Twisted includes a sophisticated IMAP4 client library.

http://twistedmatrix.com/trac/

Node.JS and the WebSocket protocol After reading Simon Willison’s post on Node.JS, I decided I’d give it a try myself. Today I released node.websocket.js After a couple of months I’ve been watching the progress on the WebSocket protocol, which gives JavaScript developers full-duplex communications channels in the browser. This is a very exciting alternative to the COMET techniques we’re used to seeing. Node.JS is a framework for networked, event-driven applications, where JavaScript has a natural fit.

pyfilesystem - Project Hosting on Google Code Pyfilesystem is a Python module that provides a simplified common interface to many types of filesystem. Filesystems exposed via Pyfilesystem can also be served over the network, or 'mounted' on the native filesystem. Pyfilesystem simplifies working directories and paths, even if you only intend to work with local files. Differences in path formats between platforms are abstracted away, and you can write code that sand-boxes any changes to a given directory. Pyfilesystem works with Linux, Windows and Mac.

23.2. shlex — Simple lexical analysis — Python v2.7.4 documentation New in version 1.5.2. Source code: Lib/shlex.py The shlex class makes it easy to write lexical analyzers for simple syntaxes resembling that of the Unix shell. This will often be useful for writing minilanguages, (for example, in run control files for Python applications) or for parsing quoted strings. Node.js is the New Black If you’ve been paying attention to news about web technology in the last year, you’ve most likely heard the name node.js mentioned at least once or twice. What happened next probably went like this: you asked, “What is it?” and someone (or Google) told you that it was a way to write web servers using JavaScript.

Simple Iterator-based Parsing Fredrik Lundh | November 2005 | Originally posted to online.effbot.org Iterator-based parsing is an efficient and straightforward way of writing recursive-descent parsers in Python. Here’s an outline: PeepCode Screencasts for Web Developers and Alpha Geeks Preview Download Free Preview NOTE: The code download has been updated for the latest Node 0.6.10 release and NPM 1.1.1. The Web has seen at least four major advancements in browser technology, about once every five years. 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. Since 2004, it's been saving programmers hours or days of work on quick-turnaround screen scraping projects.

Simple Top-Down Parsing in Python Fredrik Lundh | July 2008 In Simple Iterator-based Parsing, I described a way to write simple recursive-descent parsers in Python, by passing around the current token and a token generator function. A recursive-descent parser consists of a series of functions, usually one for each grammar rule. Such parsers are easy to write, and are reasonably efficient, as long as the grammar is “prefix-heavy”; that is, that it’s usually sufficient to look at a token at the beginning of a construct to figure out what parser function to call. For example, if you’re parsing Python code, you can identify most statements simply by looking at the first token.

Learning Server-Side JavaScript with Node.js Node.js is all the buzz at the moment, and makes creating high performance, real-time web applications easy. It allows JavaScript to be used end to end, both on the server and on the client. This tutorial will walk you through the installation of Node and your first “Hello World” program, to building a scalable streaming Twitter server. Node.js Node.js is an open source, cross-platform runtime environment for server-side and networking applications. Node.js applications are written in JavaScript, and can be run within the Node.js runtime on OS X, Microsoft Windows, Linux, FreeBSD, NonStop and IBM i. Node.js provides an event-driven architecture and a non-blocking I/O API that optimizes an application's throughput and scalability. These technologies are commonly used for real-time web applications.

Introduction to Nodejs (taking javascript to the server-side) - GeexHQ 0inShare Web Technologies so far Remeber those days when we used only the basic features of html to bring texts, images, tables and few other layouts into our webpage, Later CSS came into the picture and created a huge impact or it has actually influenced the way a normal web user-interface is made. After creating webpages & designs using markups and CSS, developers turned their focus onto the data transfer techniques, thats when Ajax came into the picture. Ajax is one among the awesome web technologies that has taken the web user experience to another level, these days we do a lot of work on the web in less time and without actually reloading a full page.

FrontPage - The PEAK Developers' Center NOTE: Due to rampant spammer edits, this wiki is no longer open to public editing. Email me your user name and login ID if you want to get access. (If your name isn't shown in the upper right corner of this page, you can click on "UserPreferences" to sign up (with a valid e-mail address) and log in. However, to actually edit anything, I'll need to grant permission to your login first.) Why Developers Should Pay Attention to Node.js There's a substantial amount of buzz and enthusiasm right now about Node.js. So what is it, and why should you care about it (well, other than "I said so")? ReadWriteWeb chatted with Javascript developer Guillermo Rauch, co-founder and CTO of LearnBoost in order to get some insights. ReadWriteWeb: So, what is Node.js? ReadWriteWeb: Why should developers care? Rauch: First of all, most web developers are already using jQuery, MooTools, or similar frameworks to leverage JavaScript on the browser.

Related: