Module Expr Str Import alias ImportFrom alias Import alias identifier Assign NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd BinOpAdd BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body If NameLoad body Assign NameStore Num Assign NameStore Num orelse Assign NameStore Num Assign NameStore Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpMult NameLoad NameLoad BinOpDiv Call NameLoad NameLoad Str Num NameLoad handlers ExceptHandler type NameLoad body If CompareNotIn Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore BinOpMult NameLoad NameLoad Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call NameLoad NameLoad keyword NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpDiv SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Num Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call NameLoad NameLoad keyword NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpDiv SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Num TryExcept body Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore BinOpDiv NameLoad Num Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd BinOpAdd Str Call AttributeLoad Str attr Call NameLoad NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr keyword NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg body Assign AttributeStore NameLoad attr Dict For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str Call NameLoad NameLoad Return BinOpAdd BinOpAdd Str Call AttributeLoad Str attr NameLoad Str decorator_list decorator_list
N/A N/A 
Data type definitions that are used when converting data to and from
the binary format that the data will be stored in.

In addition to the default classes included here, you may also define
custom types by creating a new class that extends :class:`~.CassandraType`.
For example, IntString, which stores an arbitrary integer as a string, may
be defined as follows:

.. code-block:: python

    >>> class IntString(pycassa.types.CassandraType):
    ...
    ...    @staticmethod
    ...    def pack(intval):
    ...        return str(intval)
    ...
    ...    @staticmethod
    ...    def unpack(strval):
    ...        return int(strval)

 N/A calendar datetime datetime N/A pycassa.marshal marshal N/A __all__ N/A CassandraType BytesType LongType IntegerType AsciiType UTF8Type TimeUUIDType LexicalUUIDType CounterColumnType DoubleType FloatType DecimalType BooleanType DateType OldPycassaDateType IntermediateDateType CompositeType UUIDType DynamicCompositeType TimestampType CassandraType N/A object N/A N/A 
    A data type that Cassandra is aware of and knows
    how to validate and sort. All of the other classes in this
    module are subclasses of this class.

    If `reversed` is true and this is used as a column comparator,
    the columns will be sorted in reverse order.


    The `default` parameter only applies to use of this
    with ColumnFamilyMap, where `default` is used if a row
    does not contain a column corresponding to this item.
     __init__ N/A N/A self reversed default N/A False None N/A N/A N/A self reversed reversed N/A N/A self default default N/A N/A N/A hasattr N/A self __class__ pack N/A N/A N/A self pack N/A N/A marshal packer_for N/A N/A self __class__ __name__ N/A N/A N/A hasattr N/A self __class__ unpack N/A N/A N/A self unpack N/A N/A marshal unpacker_for N/A N/A self __class__ __name__ N/A __str__ N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self __class__ __name__ (reversed= N/A N/A N/A str N/A self reversed lower ) N/A N/A BytesType N/A CassandraType N/A N/A  Stores data as a byte array  N/A N/A LongType N/A CassandraType N/A N/A  Stores data as an 8 byte integer  N/A N/A IntegerType N/A CassandraType N/A N/A 
    Stores data as a variable-length integer. This
    is a more compact format for storing small integers
    than :class:`~.LongType`, and the limits
    on the size of the integer are much higher.

    .. versionchanged:: 1.2.0
        Prior to 1.2.0, this was always stored as a 4 byte
        integer.

     N/A N/A Int32Type N/A CassandraType N/A N/A  Stores data as a 4 byte integer  N/A N/A AsciiType N/A CassandraType N/A N/A  Stores data as ASCII text  N/A N/A UTF8Type N/A CassandraType N/A N/A  Stores data as UTF8 encoded text  N/A N/A UUIDType N/A CassandraType N/A N/A  Stores data as a type 1 or type 4 UUID  N/A N/A TimeUUIDType N/A CassandraType N/A N/A  Stores data as a version 1 UUID  N/A N/A LexicalUUIDType N/A CassandraType N/A N/A  Stores data as a non-version 1 UUID  N/A N/A CounterColumnType N/A CassandraType N/A N/A  A 64bit counter column  N/A N/A DoubleType N/A CassandraType N/A N/A  Stores data as an 8 byte double  N/A N/A FloatType N/A CassandraType N/A N/A  Stores data as a 4 byte float  N/A N/A DecimalType N/A CassandraType N/A N/A 
    Stores an unlimited precision decimal number.  `decimal.Decimal`
    objects are used by pycassa to represent these objects.
     N/A N/A BooleanType N/A CassandraType N/A N/A  Stores data as a 1 byte boolean  N/A N/A DateType N/A CassandraType N/A N/A 
    An 8 byte timestamp. This will be returned
    as a :class:`datetime.datetime` instance by pycassa. Either
    :class:`datetime` instances or timestamps will be accepted.

    .. versionchanged:: 1.7.0
        Prior to 1.7.0, datetime objects were expected to be in
        local time. In 1.7.0 and beyond, naive datetimes are
        assumed to be in UTC and tz-aware objects will be
        automatically converted to UTC for storage in Cassandra.
     N/A N/A N/A TimestampType DateType _to_timestamp N/A N/A v use_micros N/A False N/A N/A use_micros N/A N/A scale 1000000.0 N/A micro_scale 1.0 N/A N/A scale 1000.0 N/A micro_scale 1000.0 N/A N/A N/A converted N/A N/A calendar timegm N/A N/A v utctimetuple N/A converted N/A N/A converted scale N/A N/A getattr v microsecond 0 micro_scale N/A N/A N/A AttributeError N/A N/A N/A N/A type v N/A marshal _number_types N/A N/A N/A TypeError DateType arguments must be a datetime or timestamp N/A converted N/A v scale N/A N/A long converted N/A OldPycassaDateType N/A CassandraType N/A N/A 
    This class can only read and write the DateType format
    used by pycassa versions 1.2.0 to 1.5.0.

    This formats store the number of microseconds since the
    unix epoch, rather than the number of milliseconds, which
    is what cassandra-cli and other clients supporting DateType
    use.

    .. versionchanged:: 1.7.0
        Prior to 1.7.0, datetime objects were expected to be in
        local time. In 1.7.0 and beyond, naive datetimes are
        assumed to be in UTC and tz-aware objects will be
        automatically converted to UTC for storage in Cassandra.
     pack N/A N/A v N/A args kwargs N/A N/A ts N/A _to_timestamp v use_micros True N/A N/A N/A N/A marshal _long_packer pack ts N/A staticmethod unpack N/A N/A v N/A N/A N/A ts N/A N/A N/A N/A N/A marshal _long_packer unpack v N/A 0 1000000.0 N/A N/A N/A datetime utcfromtimestamp ts N/A staticmethod N/A IntermediateDateType N/A CassandraType N/A N/A 
    This class is capable of reading either the DateType
    format by pycassa versions 1.2.0 to 1.5.0 or the correct
    format used in pycassa 1.5.1+.  It will only write the
    new, correct format.

    This type is a good choice when you are using DateType
    as the validator for non-indexed column values and you are
    in the process of converting from thee old format to
    the new format.

    It almost certainly *should not be used* for row keys,
    column names (if you care about the sorting), or column
    values that have a secondary index on them.

    .. versionchanged:: 1.7.0
        Prior to 1.7.0, datetime objects were expected to be in
        local time. In 1.7.0 and beyond, naive datetimes are
        assumed to be in UTC and tz-aware objects will be
        automatically converted to UTC for storage in Cassandra.
     pack N/A N/A v N/A args kwargs N/A N/A ts N/A _to_timestamp v use_micros False N/A N/A N/A N/A marshal _long_packer pack ts N/A staticmethod unpack N/A N/A v N/A N/A N/A raw_ts N/A N/A N/A N/A N/A marshal _long_packer unpack v N/A 0 1000.0 N/A N/A N/A N/A N/A datetime utcfromtimestamp raw_ts N/A N/A N/A ValueError N/A N/A corrected_ts N/A raw_ts 1000.0 N/A N/A N/A datetime utcfromtimestamp corrected_ts N/A staticmethod N/A CompositeType N/A CassandraType N/A N/A 
    A type composed of one or more components, each of
    which have their own type.  When sorted, items are
    primarily sorted by their first component, secondarily
    by their second component, and so on.

    Each of `*components` should be an instance of
    a subclass of :class:`CassandraType`.

    .. seealso:: :ref:`composite-types`

     __init__ N/A N/A self N/A components N/A N/A N/A self components components N/A __str__ N/A N/A self N/A N/A N/A N/A N/A CompositeType( N/A N/A ,  join N/A map str N/A self components ) N/A pack N/A N/A self N/A N/A N/A N/A N/A marshal get_composite_packer composite_type self N/A property unpack N/A N/A self N/A N/A N/A N/A N/A marshal get_composite_unpacker composite_type self N/A property N/A DynamicCompositeType N/A CassandraType N/A N/A 
    A type composed of one or more components, each of
    which have their own type.  When sorted, items are
    primarily sorted by their first component, secondarily
    by their second component, and so on.

    Unlike CompositeType, DynamicCompositeType columns
    need not all be of the same structure. Each column
    can be composed of different component types.

    Components are specified using a 2-tuple made up of
    a comparator type and value. Aliases for comparator
    types can optionally be specified with a dictionary 
    during instantiation.

     __init__ N/A N/A self N/A aliases N/A N/A N/A self aliases N/A N/A alias aliases N/A N/A N/A isinstance alias dict N/A N/A N/A N/A N/A self aliases update alias N/A __str__ N/A N/A self N/A N/A N/A aliases N/A N/A N/A k v N/A N/A N/A self aliases iteritems N/A N/A N/A N/A aliases append N/A N/A k => N/A str v N/A N/A N/A DynamicCompositeType( N/A N/A ,  join aliases ) N/A N/A