Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am cpesch on github.
  • I am cpesch (https://keybase.io/cpesch) on keybase.
  • I have a public key whose fingerprint is 5A8B 88BF 375F A65C EF86 A077 D616 8529 B7BE 5C82

To claim this, I am signing this object:

@cpesch
cpesch / CouchObject.py
Created January 4, 2009 08:18
CouchObject as pasted by leah.culver@gmail.com
import couchdb
import settings
import type
class CouchObject(object):
'''
Convert between a CouchDB document and Python object.
Create Python objects while maintaining a schema-free database.
Define object properties without storing null fields.
'''
import java.nio.channels.SocketChannel;
public class ChangeRequest {
public static final int REGISTER = 1;
public static final int CHANGEOPS = 2;
public SocketChannel socket;
public int type;
public int ops;