A programming language that is designed to be easy to read and use.
web | documentation | wikipedia | feed

See also | :django
See also (alternative) | :ruby


Development setup

If you are going to be programming your own project, or running someone else's project from source, you will need to create an isolated virtual environment for that project. In this virtualenv you will store the external libraries that project requires, separate from your system libraries and other project libraries. The following intructions will help you install and configure tools for managing Python and virtualenvs, including an IDE.

Now you can start learning and developing...

GNOME integration

PyGObject (aka PyGI)
A Python API for :gnome integration

PyGObject for Windows
"Cross-platform python dynamic bindings of GObject-based libraries for Windows 32-bit and 64-bit."


Learning Python

The Hitchiker's Guide to Python

(aka the Python Guide) An excellent and well-maintained reference for Python programmers. Advice for every stage in a project, for different types of projects, as well as useful resources and summaries of well-regarded Python packages.
web | project | issues

Awesome Python

A curated list of well-regarded Python libraries.
project | issues

Using curly braces in Python

Advanced programming languages like C++ and Java use braces. To use braces in Python, try the following:

from __future__ import braces


Other libraries

Much like the original Hitchhiker's Guide, not all packages have entries in the Python Guide or Awesome Python list. Here are some of them:

datetime strftime reference
See also

Python library for assertions that can be used in production code as well as test frameworks.
code | documentation | pypi

Python library to check code quality (PEP8, McCabe complexity)
code | documentation | pypi

Multi-threaded task queue (includes cron jobs)

project | etc

Secret Storage interface

Python Call Graph

See also

Code snippets

Desktop indicator
Example of ... appindicator? or something custom?

String formatting

Using variables in string formatting

message = "Message with {fieldname} in it."
message.format(fieldname = value)

message = "Message with %(name)s in it." % {"name": value, }

TODO: what if variables "fieldname" and "value" have the same name? is there a shortcut?

Backlinks: blender alembic-python qt sqlalchemy pycharm menagerie fish mysql reahl imagemagick matplotlib postgresql gnome ldap ruby ffmpeg animation foreman django audio python:windows-setup python:pyenv git:dulwich sharing:api

CC0 / Public domain dedication To the extent possible under law, d3vid seaward has waived all copyright and related or neighboring rights to "Python in Grasmere notebook, including code snippets" (why? how?)