Python - a playful python for programming |
| Wednesday, 25 October 2006 10:45 | |||
|
Python is a great programming language. One of the best parts of this language is that it can be used tightly with C and C++. Python is concise and cleanly formatted. Python is portable. It can be used cross platforms. Everything in Python is an object and multiple inheritance is allowed. Python for Fun Learn Python in 100 Python Session Log Lines: A Python Demo « sysblogd Python Tips, Tricks, and Hacks - Siafoo - pretty great page on all sorts of things python. zone.effbot.org Python in Science: How long until a Nobel Prize? | And Now For Something Completely Different, Nov. 2007 Singleton? We don't need no stinkin' singleton: the Borg design pattern « ActiveState Code __repr__ and __str__So whats the difference with __repr__ vs __str__?__repr__ is usually equal to __str__, but __repr__ is constrained by the following truth: eval(obj.__repr__()) = obj __str__ is used many times to pretty up or format the data within. The __str__ method ((An Unofficial) Python Reference Wiki) Python dictionary from an object's fields - Stack Overflow - sometimes you want to quickly print the member variables of a python object...__dict__ gives you that... Dive Into Python - A very nice tutorial on python....a good read. Python Tutorial (release 2.5.2) Python Library Reference New-style Classes - references on class definitions and what not. Python Network Programming easy_install and setuptoolsBuilding and Distributing Packages with setuptoolsPEAK - Easy Install setuptools and Python Paste Yolk - Trac - yolk will tell you what you've installed with setuptools, easy_install and distutils. Also query tool for pypi. Installing easy_install on Fedora, or other yum based systems. yum provides \*/easy_install yum install python-setuptools-devel Tutorial - Embedded Python Python ORMs and query stuffDee - think linq for python.HigherLevelDatabaseProgramming - PythonInfo Wiki - list of ORMs for python...and other stuff. FrontPage - Storm - Storm is an object-relational mapper (ORM) for Python developed at Canonical. Geniusql - Trac - low-level Object-Relational Mapper for Python applications. Dejavu - Trac - Dejavu uses Geniusql behind the scenes for RDBMS back ends, but allows you to mix and match them with RAM, filesystem, and other stores. mysqldbWriting MySQL Scripts with Python DB-APIMySQLdb User's Guide Not sure why, but I get Python AttributeError: 'Cursor' object has no attribute 'insert_id' when using int(cursor.insert_id()) with mysqldb. Instead use (cursor.lastrowid)...which works! :) MySQL for Python in Windows - Stack Overflow SQLObject - ORMConnecting databases to Python with SQLObjectSQLAlchemy - ORMSQLAlchemy - The Database Toolkit for Pythonsqlalchemy-migrate - Google Code - auto generate schema and python models. SQLAlchemy 0.5 Documentation - Object Relational Tutorial Elixir – Trac - Elixir is a declarative layer on top of the SQLAlchemy formalchemy - Project Hosting on Google Code - Auto-generated, customizable HTML input form fields from your SQLAlchemy mapped classes. Welcome to FormAlchemy’s documentation! — FormAlchemy v1.3.4 documentation DjangoDjangoThe Django Book The Django Book: Version 2.0 (English) import this. » Django on Windows Sh*tmores: Exploring Django - The Basic Cygwin Setup (1) Django Pluggables • Find reusable applications for your Django project, quickly and easily! Django snippets: Top-rated snippets Quick tour screencast showing django django-rest-interface - Google Code django-tinymce - Project Hosting on Google Code installationbasic - django-filebrowser - Project Hosting on Google Code Django snippets: Welcome Pinax - built up using django. Contributing to Pinax — Pinax v0.9alpha1 documentation - developer notes for working from git. This Week in Django - This Week in Django Django on Twisted Web - Using the latest twisted.web.wsgi functionality sunlightlabs's django-secretballot at master - GitHub ericflo's twissandra at master - GitHub - Twissandra is an example project, created to learn and demonstrate how to use Cassandra. Running the project will present a website that has similar functionality to Twitter. (python virtualenv,pip,cassandra,Thrift) jespern / django-piston / wiki / Home — bitbucket.org montylounge/django-mingus - GitHub -a Django blog engine leveraging reusable apps for all its features. Speeding Up Mingus | joshbohde.com - Using StaticGenerator to make Mingus fast. PylonsPylons is a lightweight web framework emphasizing flexibility and rapid development. Pylons’ core tools including FormEncode, Mako, SQLAlchemy, and Routes. Built up from other successful python projects...PylonsHQ - Home - pylons home. The Definitive Guide to Pylons - James Gardner — Pylons Book v1.1 documentation - pylons book Jonathan Ellis's Programming Blog - Spyced: A small admin app for Pylons GeoDjango - did YOU know about django's GIS capabilities?GeoDjango - GIS extensions to django!Installing GeoDjango with PostgreSQL and zc.buildout — Stereoplex JSON in pythonsimplejson -- A simple, fast, extensible JSON encoder and decoderJSON response in djangosimple use of simplejson on someobj.from django.utils import simplejson return HttpResponse(simplejson.dumps(someobj), content_type='application/json; charset=UTF-8') I've needed to do this sorta stuff before when using old code... newforms-admin Migration and Screencast | oebfare NewformsAdminBranch - Django - Trac Everyblock is written in Python, using the Django Web framework. It requires PostgreSQL and PostGIS. EveryBlock — A news feed for your block ebcode - Project Hosting on Google Code Python and IRC Getting Twisted pyzine.com -online zine for python Py++ is an object-oriented framework for creating a code generator for Boost.Python library. Python-Ogre PyOgre Python, MD5, duplicate files finder The path Python module Pyre. Python Frameworks for Geoscience Visualization and Analysis pygccxml VideoCapture - win32 extension for video in python. Open Source Python GIS Hacks Module search path1. current directory (interpreter prompt) or directory of the input script2. directories specified in the PYTHONPATH environment variable 3. installation-dependent system paths, such as c:\python24\lib for the library of standard modules and c:\python24\lib\site-packages for installed non-standard modules. The PYTHONPATH variable is useful with uninstalled bundles such FWTools. Pre-built packages for Python on Mac OS X Linguistics and NLPCharming Python: Get started with the Natural Language ToolkitScience/Math ToolsSciPy: Scientific Tools for PythonMatplotlib Numerically Python Pygr NetworkX generating python module dependency graphs Computing eigenvalues for quantum maps (using python) StatPy: Statistical Computing with Python Importing Python Modules PyEvolve: a toolkit for statistical modeling of molecular evolution Refactoring in pythongRope, a python refactoring library ...Rope Overview Python UnittestsPython Unit Testing FrameworkPyUnit Installation and quick start — nose documentation py.test index Your way out of The Lack of Testing Death Spiral - Pythoscope Writing clean, testable, high quality code in Python Python ProjectsItaka - on-demand screen capture serverPython Call Graph PyObjC - The Python <-> Objective-C Bridge Vision Egg - a powerful, flexible, and free way to produce stimuli for vision research experiments. Pyro - About - PYthon Remote Objects provides an object-oriented form of RPC. C/C++ wrappingRiverbank : SIP : OverviewSimplified Wrapper and Interface Generator Wrap GObjects in Python IronPythonIronPython is Python in the .NET DLR.IronPython goes to MSIL so you get the advantage of using all the power of visual studio debugging support! Very cool IronPython is a new implementation of the Python programming language running on .NET. IronPython - Release: 1.0 Production - (check here for the 1.0 samples) IronPython Blog IronPython Studio - integrate IronPython into Visual Studio. (IronPython Studio requires the vs shell) Download details: Visual Studio 2008 Shell (isolated mode) Planet IronPython Main Page - IronPython Cookbook Basic Handwriting Recognition - IronPython Cookbook FePy project aims to provide enhancements and addons to IronPython. FePy - project aims to provide enhancements and add-ons for IronPython, an implementation of Python programming language. FePy Blog *IronPython run in Silverlight outperforms traditional Javascript by a couple of orders of magnitude* Qouted from Introduction to IronPython & Silverlight. IronPython is the new IValueConverter, IMultiValueConverter The PyBinding MarkupExtension: use Python statements for Data Binding Sho - Microsoft Research - Sho is an interactive environment for data analysis and scientific computing that lets you seamlessly connect scripts (in IronPython) with compiled code (in .NET) to enable fast and flexible prototyping. NumPy and SciPy for IronPython / .Net EditorsThe Eric Python IDEPydev - Eclipse plugin which makes eclipse an excellent auto-completing python editor. Python Tools for Visual Studio FrontPage - IPython - IPython: an interactive computing environment IPython and virtualenv | And Now For Something Completely Different If you ever get an error like: error: invalid Python installation: unable to open /usr/lib/python2.5/config/MakefileYou can fix it by installing the development packages for your python installation. ie. yum install python2.5-devel web2py Enterprise Web Framework ElementTree Overview - xml processing library for python, comes with 2.5 out of the box. REST in pythonCherryPy Tutorial - CherryPy - TracIntro to CherryPy - CherryPy - Trac selector - WSGI Delegation Template languagesAs always, there are 1000 template choices....Mako Templates for Python Kid - Pythonic, XML-based Templating Cheetah - The Python-Powered Template Engine HTML parsingBeautiful Soup is an HTML/XML parser for Python that can turn even invalid markup into a parse tree.html5lib - Project Hosting on Google Code - Library for working with HTML documents (Python and PHP implementations of a HTML parser based on the WHATWG HTML5 specification) concurrencyStackless.com - About Stackless - concurrencyKamaelia PyCap - Pycap wraps the sweet sweet PopCap Game Framework in a super friendly high level python interface. With Pycap you can start building pretty 2D games without installing a compiler or learning C++. twisted async network programmingTwisted Documentation: Twisted DocumentationRunning a Twisted Perspective Broker example with twistd - SaltyCrane Blog Event-Driven Programming with Twisted and Python Twisted Documentation: Generating Deferreds Writing an Markov-Chain IRC Bot with Twisted and Python - Die in a Fire - Eric Florenzano’s Blog Wokkel - enhancements to the Jabber/XMPP protocol implementation as found in Twisted Words, that are meant to eventually move there. orbitedOrbited – Networking for the Web - uses twisted and MorbidQ to support STOMP. Quite simple to install using easy_install.easy_install orbited easy_install simplejson Traits and Orbited Python on the macUsing fink makes it painless to install python and some popular python libraries.# as always it is nice to update fink (things work better that way) fink selfupdate fink update-all fink install scipy-py25 fink install matplotlib-py25 fink install pygame-py25 fink install ipython-py25 # create this link to make python2.5 the default python on the cmdline. sudo ln -s /sw/bin/python2.5 /sw/bin/python Python on windowsI just install the standard python installer for the latest...Download Python Software Then you'll wanna add python and python\scripts to the path in your environment. http://peak.telecommunity.com/dist/ez_setup.py download and run with python. Then I install the pywin32 package as well. Browse Python for Windows extensions Files on SourceForge.net pyweek - contest where people write python games in a week... pyglet - a cross-platform windowing and multimedia library for Python. cocos2dcity41's CocosNet at master - GitHub - port of Cocos2D to C#.cocos2d - a framework for building 2D games, demos, and other graphical/interactive applications. Cocograph - devdev-python - Project Hosting on Google Code cocos2d games « cocos2d for iPhone - forum where people post info about the cocos2d games in the app store. PythonGameLibraries - PythonInfo Wiki - python has a lot of libraries....woow. WSGI in pythonModPythonGateway - AMinus projects - Trac - How to set up mod_python for use as a WSGI serverflup: random Python WSGI stuff - Trac Slicehost Articles: Ubuntu Hardy - Using mod_wsgi to Serve Your Application modwsgi - Project Hosting on Google Code - simple to use Apache module which can host any Python application which supports the Python WSGI interface. IntegrationWithTrac - modwsgi - How to use Trac with mod_wsgi. - Project Hosting on Google Code Mercurial python DVCStawm / Mercurial Recipe / overview — bitbucket.org - zc.buildout recipe for cloning and/or pulling a Mercurial repository.Refactor the Life » Blog Archive » HOWTO setup the Mercurial with Nginx in CentOS 4 tortoisehg / stable / wiki / Home — bitbucket.org - TortoiseHg is a Windows shell extension much like TortoiseSVN and a series of applications for the Mercurial distributed revision control system. It even uses TortoiseSVN overlays. BuildoutBuildout Tutorial — Buildout v1.2.1 documentationDeveloping Django apps with zc.buildout PaverPaver: Easy Scripting for Software Projects — Paver v1.0.1 documentationpaver - Project Hosting on Google Code - Paver: easy build and deployment scripting Paver: easy build and deployment automation for Python projects (#13) - PyCon 2009 - Chicago - A Conference for the Python Community Converting from Make to Paver - O'Reilly Broadcast dinoboff's paver-templates at master - GitHub - Create the the layout of a paver-enable package (paster create -t paver_package <package name>) FabricFabric, Django, Git, Apache, mod_wsgi, virtualenv and pip deployment | MorethansevenTools of the Modern Python Hacker: Virtualenv, Fabric and Pip Recipes - wiki.fabfile.org - Fabric's wiki on Fab recipes. Fabric — Fabric v0.9 documentation Notes on Python Fabric 0.9b1 « SaltyCrane Blog SphinxWriting Technical Documentation with Sphinx, Paver, and Cog - O'Reilly BroadcastOverview — Sphinx v0.6.3 documentation Cog code generatorCog transforms files in a very simple way: it finds chunks of Python code embedded in them, executes the Python code, and inserts its output back into the original file.Ned Batchelder: Cog - embed python code generation tool. Code Generation with Python, Cog, and Nant virtualenvmaking isolated envs in python is way cool.Setting up virtualenv — NIPY Documentation Working with virtualenv — Arthur Koziel Python HTTP automation and other web python thingysmechanize - Stateful programmatic web browsing in Python, after Andy Lester's Perl module WWW::Mechanize.twill: a simple scripting language for Web browsing Zope and related thingsRepoze - Repoze is a collection of technologies which bridges WSGI and Zope .Revotera Vojaĝo: Buildout with Repoze, Zope, and Plone Unicode in PythonHow to Use UTF-8 with PythonHow to replace non ascii characters in string? - Stack Overflow Python internationalizationBabel - A collection of tools for internationalizing Python applications (gettext message catalogs, CLDR (Common Locale Data Repository))PyX - Python graphics package - Python package for the creation of PostScript and PDF files. PIL decoder JPEG not available"decoder jpeg not available"Silver Liningopen source cloud automation, great stuff....libcloud python library - a unified interface to cloud server providers Silver Lining — Silver Lining v0.0 documentation Silver Lining, Shabti and “the cloud” tobami/overmind - GitHub - project aims to provider a complete server provisioning and configuration management application. (django,libcloud,django-celery,RabbitMQ,django-piston) ssimasanti/boatyard - GitHub - Git push to deploy python web app using nginx + uwsgi + virtualenv + pip. ssimasanti/rockets - GitHub - Cloud server management tools using fabric + libcloud + django cli. greenletgreenlet: Lightweight concurrent programming - A "greenlet" is a small independent pseudo-threadEvented Django part one: Socket.IO and gevent | codysoyland.com Jeffrey / gevent-socketio / source – Bitbucket CeleryCelery - The Distributed Task QueueCelery is an open source asynchronous task queue/job queue based on distributed message passing. It is focused on real-time operation, but supports scheduling as well. The recommended message broker is RabbitMQ. ssimasanti/celery - GitHub Async Workers in Django with Celery | joshbohde.com
|
|||
| Last Updated on Friday, 18 November 2011 18:51 |

