background preloader

Python

Facebook Twitter

Book/ Book/ 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. Learn Python Through Public Data Hacking. Learn Python Through Public Data Hacking. Free Graphics for Flash and Indie Games. How to Think Like a Computer Scientist — How to Think like a Computer Scientist: Interactive Edition.

This interactive book is a product of the Runestone Interactive Project at Luther College, led by Brad Miller and David Ranum. There have been many contributors to the project. Our thanks especially to the following: This book is based on the Original work by: Jeffrey Elkner, Allen B. Downey, and Chris MeyersActivecode based on SkulptCodelens based on Online Python TutorMany contributions from the CSLearning4U research group at Georgia Tech.ACM-SIGCSE for the special projects grant that funded our student Isaac Dontje Lindell for the summer of 2013.NSF The Runestone Interactive tools are open source and we encourage you to contact us, or grab a copy from GitHub if you would like to use them to write your own resources. Installation and quick start — nose 1.3.0 documentation. Nose extends unittest to make testing easier. On most UNIX-like systems, you’ll probably need to run these commands as root or using sudo.

Install nose using setuptools/distribute: Or pip: Or, if you don’t have setuptools/distribute installed, use the download link at right to download the source package, and install it in the normal fashion: Ungzip and untar the source package, cd to the new directory, and: However, please note that without setuptools/distribute installed, you will not be able to use third-party nose plugins.

This will install the nose libraries, as well as the nosetests script, which you can use to automatically discover and run tests. Now you can run tests for your project: cd path/to/project nosetests You should see output something like this: .................................. ---------------------------------------------------------------------- Ran 34 tests in 1.440s OK Indicating that nose found and ran your tests.

For help with nosetests’ many command-line options, try: Python Extension Packages for Windows - Christoph Gohlke. By Christoph Gohlke, Laboratory for Fluorescence Dynamics, University of California, Irvine. This page provides 32- and 64-bit Windows binaries of many scientific open-source extension packages for the official CPython distribution of the Python programming language. The files are unofficial (meaning: informal, unrecognized, personal, unsupported, no warranty, no liability, provided "as is") and made available for testing and evaluation purposes. If downloads fail reload this page, enable JavaScript, disable download managers, disable proxies, clear cache, and use Firefox.

Please only download files manually as needed. Most binaries are built from source code found on PyPI or in the projects public revision control systems. Source code changes, if any, have been submitted to the project maintainers or are included in the packages. Refer to the documentation of the individual packages for license restrictions and dependencies. Use pip version 8 or newer to install the downloaded .whl files. CodeSkulptor. CodeSkulptor. CodeSkulptor. Download – Orange. This page contains nightly builds from the code repository. These are typically stable and we recommend using them. Windows ¶ Full package: Snapshot of Orange with Python 2.7 and required libraries This package is recommended to those installing Orange for the first time.

It includes all required libraries (Python, PythonWin, NumPy, PyQt, PyQwt ...), though it will not change any libraries you might already have. (Also available: Orange for Python 2.6 , Orange for Python 2.5 ) Pure Orange: Snapshot of Orange for Python 2.7 Use this version if you are updating from an earlier snapshot. You can install it over your existing installation. (Also available: Orange for Python 2.6 , Orange for Python 2.5 ) Mac OS X ¶ Bundle: Orange Snapshot This is an universal bundle with everything packed in and ready for an unadvanced user. easy_install/pip: Orange is available as a PyPi package.

From source ¶ setup.py ¶ python setup.py build sudo python setup.py install To install orange locally run: C4.5 files ¶ Home. Python IDE & Django IDE for Web developers : JetBrains PyCharm. Pong. Pong (marketed as PONG) is one of the earliest arcade video games; it is a tennis sports game featuring simple two-dimensional graphics. While other arcade video games such as Computer Space came before it, Pong was one of the first video games to reach mainstream popularity. The aim is to defeat the opponent in a simulated table tennis game by earning a higher score. The game was originally manufactured by Atari Incorporated (Atari), who released it in 1972.

Allan Alcorn created Pong as a training exercise assigned to him by Atari co-founder Nolan Bushnell. Bushnell based the idea on an electronic ping-pong game included in the Magnavox Odyssey, which later resulted in a lawsuit against Atari. Pong quickly became a success and is the first commercially successful video game, which led to the start of the video game industry. Gameplay[edit] The two paddles return the ball back and forth. Pong is a two-dimensional sports game that simulates table tennis. Development and history[edit] S Python Class - Educational Materials. Welcome to Google's Python Class -- this is a free class for people with a little bit of programming experience who want to learn Python. The class includes written materials, lecture videos, and lots of code exercises to practice Python coding.

These materials are used within Google to introduce Python to people who have just a little programming experience. The first exercises work on basic Python concepts like strings and lists, building up to the later exercises which are full programs dealing with text files, processes, and http connections. The class is geared for people who have a little bit of programming experience in some language, enough to know what a "variable" or "if statement" is. Beyond that, you do not need to be an expert programmer to use this material. This material was created by Nick Parlante working in the engEDU group at Google. Special thanks for the help from my Google colleagues John Cox, Steve Glassman, Piotr Kaminski, and Antoine Picard.

Python. Matplotlib: python plotting — Matplotlib 1.2.1 documentation. Matplotlib: Lessons from middle age. 24.6. IDLE — Python v2.7.4 documentation. IDLE is the Python IDE built with the tkinter GUI toolkit. IDLE has the following features: coded in 100% pure Python, using the tkinter GUI toolkitcross-platform: works on Windows and Unixmulti-window text editor with multiple undo, Python colorizing and many other features, e.g. smart indent and call tipsPython shell window (a.k.a. interactive interpreter)debugger (not complete, but you can set breakpoints, view and step) 24.6.2.

Basic editing and navigation Backspace deletes to the left; Del deletes to the rightArrow keys and Page Up/Page Down to move aroundHome/End go to begin/end of lineC-Home/C-End go to begin/end of fileSome Emacs bindings may also work, including C-B, C-P, C-A, C-E, C-D, C-L 24.6.2.1. Automatic indentation After a block-opening statement, the next line is indented by 4 spaces (in the Python Shell window by one tab). 24.6.2.2. 24.6.3. The coloring is applied in a background “thread,” so you may occasionally see uncolorized text.

Python syntax colors: Keywords orange red. The Python Language Reference — Python v2.7.4 documentation. Wiki - Understanding basic Python using Pystep | An Introduction to Interactive Programming in Python.

Exercises

Skulpt. CodeSkulptor.