IndexedRedis.fields.FieldValueTypes
index

# Copyright (c) 2016, 2017 Timothy Savannah under LGPL version 2.1. See LICENSE for more information.
#
# FieldValueTypes - Types that can be passed to "valueType" of an IRField for special implicit conversions
#

 
Modules
       
json

 
Classes
       
builtins.type(builtins.object)
IRJsonValue
datetime.datetime(datetime.date)
IRDatetimeValue

 
class IRDatetimeValue(datetime.datetime)
    IRDatetimeValue - A field type that is a datetime. Pass this as "valueType" to an IRField to use a datetime
 
 
Method resolution order:
IRDatetimeValue
datetime.datetime
datetime.date
builtins.object

Static methods defined here:
__new__(self, *args, **kwargs)
Create and return a new object.  See help(type) for accurate signature.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
CAN_INDEX = True

Methods inherited from datetime.datetime:
__add__(self, value, /)
Return self+value.
__eq__(self, value, /)
Return self==value.
__ge__(self, value, /)
Return self>=value.
__getattribute__(self, name, /)
Return getattr(self, name).
__gt__(self, value, /)
Return self>value.
__hash__(self, /)
Return hash(self).
__le__(self, value, /)
Return self<=value.
__lt__(self, value, /)
Return self<value.
__ne__(self, value, /)
Return self!=value.
__radd__(self, value, /)
Return value+self.
__reduce__(...)
__reduce__() -> (cls, state)
__reduce_ex__(...)
__reduce_ex__(proto) -> (cls, state)
__repr__(self, /)
Return repr(self).
__rsub__(self, value, /)
Return value-self.
__str__(self, /)
Return str(self).
__sub__(self, value, /)
Return self-value.
astimezone(...)
tz -> convert to local time in new timezone tz
combine(...) from builtins.type
date, time -> datetime with same date and time fields
ctime(...)
Return ctime() style string.
date(...)
Return date object with same year, month and day.
dst(...)
Return self.tzinfo.dst(self).
fromtimestamp(...) from builtins.type
timestamp[, tz] -> tz's local time from POSIX timestamp.
isoformat(...)
[sep] -> string in ISO 8601 format, YYYY-MM-DDT[HH[:MM[:SS[.mmm[uuu]]]]][+HH:MM].
sep is used to separate the year from the time, and defaults to 'T'.
timespec specifies what components of the time to include (allowed values are 'auto', 'hours', 'minutes', 'seconds', 'milliseconds', and 'microseconds').
now(tz=None) from builtins.type
Returns new datetime object representing current time local to tz.
 
  tz
    Timezone object.
 
If no tz is specified, uses local timezone.
replace(...)
Return datetime with new specified fields.
strptime(...) from builtins.type
string, format -> new datetime parsed from a string (like time.strptime()).
time(...)
Return time object with same time but with tzinfo=None.
timestamp(...)
Return POSIX timestamp as float.
timetuple(...)
Return time tuple, compatible with time.localtime().
timetz(...)
Return time object with same time and tzinfo.
tzname(...)
Return self.tzinfo.tzname(self).
utcfromtimestamp(...) from builtins.type
Construct a naive UTC datetime from a POSIX timestamp.
utcnow(...) from builtins.type
Return a new datetime representing UTC day and time.
utcoffset(...)
Return self.tzinfo.utcoffset(self).
utctimetuple(...)
Return UTC time tuple, compatible with time.localtime().

Data descriptors inherited from datetime.datetime:
fold
hour
microsecond
minute
second
tzinfo

Data and other attributes inherited from datetime.datetime:
max = datetime.datetime(9999, 12, 31, 23, 59, 59, 999999)
min = datetime.datetime(1, 1, 1, 0, 0)
resolution = datetime.timedelta(0, 0, 1)

Methods inherited from datetime.date:
__format__(...)
Formats self with strftime.
fromordinal(...) from builtins.type
int -> date corresponding to a proleptic Gregorian ordinal.
isocalendar(...)
Return a 3-tuple containing ISO year, week number, and weekday.
isoweekday(...)
Return the day of the week represented by the date.
Monday == 1 ... Sunday == 7
strftime(...)
format -> strftime() style string.
today(...) from builtins.type
Current date or datetime:  same as self.__class__.fromtimestamp(time.time()).
toordinal(...)
Return proleptic Gregorian ordinal.  January 1 of year 1 is day 1.
weekday(...)
Return the day of the week represented by the date.
Monday == 0 ... Sunday == 6

Data descriptors inherited from datetime.date:
day
month
year

 
class IRJsonValue(builtins.type)
    IRJsonValue - A value which is interpreted as json. 
    Supports object (dicts), strings, array, number. 
 
"null" is supported using IRNullType, because cannot subclass "NoneType".
"bool" is supported using a number 0.0 or 1.0 - because cannot subclass "bool"
 
 
Method resolution order:
IRJsonValue
builtins.type
builtins.object

Methods defined here:
__init__(self, *args, **kwargs)
Initialize self.  See help(type(self)) for accurate signature.
__str__(self)
Return str(self).

Static methods defined here:
__new__(self, *args, **kwargs)
Create and return a new object.  See help(type) for accurate signature.

Data and other attributes defined here:
CAN_INDEX = False

Methods inherited from builtins.type:
__call__(self, /, *args, **kwargs)
Call self as a function.
__delattr__(self, name, /)
Implement delattr(self, name).
__dir__(...)
__dir__() -> list
specialized __dir__ implementation for types
__getattribute__(self, name, /)
Return getattr(self, name).
__instancecheck__(...)
__instancecheck__() -> bool
check if an object is an instance
__prepare__(...) from builtins.type
__prepare__() -> dict
used to create the namespace for the class statement
__repr__(self, /)
Return repr(self).
__setattr__(self, name, value, /)
Implement setattr(self, name, value).
__sizeof__(...)
__sizeof__() -> int
return memory consumption of the type object
__subclasscheck__(...)
__subclasscheck__() -> bool
check if a class is a subclass
__subclasses__(...)
__subclasses__() -> list of immediate subclasses
mro(...)
mro() -> list
return a type's method resolution order

Data descriptors inherited from builtins.type:
__abstractmethods__
__dict__
__text_signature__

Data and other attributes inherited from builtins.type:
__base__ = <class 'type'>
type(object_or_name, bases, dict)
type(object) -> the object's type
type(name, bases, dict) -> a new type
__bases__ = (<class 'type'>,)
__basicsize__ = 864
__dictoffset__ = 264
__flags__ = 2148292097
__itemsize__ = 40
__mro__ = (<class 'IndexedRedis.fields.FieldValueTypes.IRJsonValue'>, <class 'type'>, <class 'object'>)
__weakrefoffset__ = 368

 
Functions
       
__ir_json__str__(self)

 
Data
        __all__ = ('IRDatetimeValue', 'IRJsonValue')