Skip to content

Instantly share code, notes, and snippets.

PyCon 2013, occurring once again in sunny Santa Clara, California, will now be accepting all types of proposals through MONTH DAY, 2012. As with years past, we're looking forward to receiving your best proposals for tutorials, talks, and posters.

About PyCon 2013

The 2013 conference will run from XXXXXX to YYYYY at the Santa Clara Convention Center, just 15 minutes from San Jose, and one hour from San Francisco. On the schedule we have the main conference running Friday XXX through Sunday XXXXX, which is preceded by two days of tutorials and followed up by four days of sprints.

Continuing a trend started years ago, attendance records were once again broken last year, and the schedule was the best we've assembled. Can you help us top 2012?

Who Should Submit a Proposal?

digraph CreateView {
// Basic graph, node, and edge styling.
splines="true";
ranksep=0.5;
node [shape="box", style="rounded" fontsize="11", height="0.4", fontname="MetaPro"];
edge [headport="n"];
// Graph title - \G means "title of the graph"; the \ns are the only way
// I can find to visuall separate the title from the rest of the graph.

And this comes from included.rst.

It even includes

  • markup
  • and all that hazz
web: gunicorn -w4 -b0.0.0.0:$PORT app:app
@transaction.commit_manually
def foo():
db.execute("SELECT ...")
bar()
db.execute("SELECT ...")
transaction.commit()
def bar():
db.execute("INSERT ...")
import glob
import gzip
def top_paths(filename):
# Count the top paths in a single gziped file
counts = {}
with gzip.open(filename) as f:
for line in f:
path = line.split()[6]
counts[path] = counts.get(path, 0) + 1
@jacobian
jacobian / pip-cache-install.py
Created May 1, 2012 05:22
Install a package from your local pip download cache without touching the 'net.
#!/usr/bin/env python
"""
Install a package from your local pip download cache without having to touch
the 'net at all.
You'll need to be using a pip download cache; that is, you'll need the
following in your ~/.pip/pip.cfg:
[install]
@jacobian
jacobian / github.py
Created April 26, 2012 16:59
The world's crappiest GitHub API wrapper.
"""
Teeny-tiny GitHub API wrapper (just for the bits this app needs).
All that this does is expose a `requests.session` that makes it easy to
access GitHub, like so::
>>> with github.session() as gh:
... resp = gh.get('repos/django/django')
.. print resp.keys()
class User(models.Model):
def __getattr__(self, attr):
for profile in self.profiles:
try:
return getattr(profile, attr)
except AttributeError:
continue
raise AttributeError
@jacobian
jacobian / authuser.md
Created March 30, 2012 00:35
Upgrading auth.User - the profile approach

Upgrading auth.User - the profile approach

This proposal presents a "middle ground" approach to improving and refactoring auth.User, based around a new concept of "profiles". These profiles provide the main customization hook for the user model, but the user model itself stays concrete and cannot be replaced.

I call it a middle ground because it doesn't go as far as refactoring the whole auth app -- a laudable goal, but one that I believe will ultimately take far too long -- but goes a bit further than just fixing the most egregious errors (username length, for example).

This proposal includes a fair number of design decisions -- you're reading the fifth or sixth draft. To keep things clear, the options have been pruned out and on the one I think is the "winner" is still there. But see the FAQ at the end for some discussion and justification of various choices.

The User model