Did I find the right examples for you? yes no

All Samples(18)  |  Call(0)  |  Derive(14)  |  Import(4)

src/w/s/WSME-0.6/wsme/rest/args.py   WSME(Download)
 
from wsme.types import iscomplex, list_attributes, Unset
from wsme.types import UserType, ArrayType, DictType, File
from wsme.utils import parse_isodate, parse_isotime, parse_isodatetime
import wsme.runtime

src/w/s/wsme-HEAD/wsme/rest/args.py   wsme(Download)
 
from wsme.types import iscomplex, list_attributes, Unset
from wsme.types import UserType, ArrayType, DictType, File
from wsme.utils import parse_isodate, parse_isotime, parse_isodatetime
import wsme.runtime

src/c/e/ceilometer-HEAD/ceilometer/api/controllers/v2.py   ceilometer(Download)
class CronType(wtypes.UserType):
    """A user type that represents a cron format."""
    basetype = six.string_types
    name = 'cron'
 

src/c/l/climate-HEAD/climate/api/v2/controllers/types.py   climate(Download)
class UuidType(wtypes.UserType):
    """A simple UUID type."""
 
    basetype = wtypes.text
    name = 'uuid'
class CPUInfo(wtypes.UserType):
    """A type for matching CPU info from hypervisors."""
 
    basetype = wtypes.text
    name = 'cpuinfo'
class TextOrInteger(wtypes.UserType):
    """A type for matching either text or integer."""
 
    basetype = wtypes.text
    name = 'textorinteger'
class Datetime(wtypes.UserType):
    """A type for matching unicoded datetime."""
 
    basetype = wtypes.text
    name = 'datetime'

src/i/r/ironic-HEAD/ironic/api/controllers/v1/types.py   ironic(Download)
class MacAddressType(wtypes.UserType):
    """A simple MAC address type."""
 
    basetype = wtypes.text
    name = 'macaddress'
class UuidType(wtypes.UserType):
    """A simple UUID type."""
 
    basetype = wtypes.text
    name = 'uuid'
class BooleanType(wtypes.UserType):
    """A simple boolean type."""
 
    basetype = wtypes.text
    name = 'boolean'
class MultiType(wtypes.UserType):
    """A complex type that represents one or more types.
 
    Used for validating that a value is an instance of one of the types.
 

src/w/s/wsme-HEAD/wsme/tests/test_types.py   wsme(Download)
        class MyType(types.UserType):
            basetype = str
 
        My = MyType()
 

src/w/s/wsme-HEAD/wsme/tests/test_protocols_commons.py   wsme(Download)
from wsme.exc import InvalidInput
 
from wsme.types import UserType, Unset, ArrayType, DictType
 
 
class MyUserType(UserType):
        class FakeType(UserType):
            name = 'fake-type'
            basetype = int
 
        fake_type = FakeType()

src/w/s/WSME-0.6/wsme/tests/test_types.py   WSME(Download)
        class MyType(types.UserType):
            basetype = str
 
        My = MyType()
 

src/w/s/WSME-0.6/wsme/tests/test_protocols_commons.py   WSME(Download)
from wsme.rest.args import from_param, from_params
 
from wsme.types import UserType, Unset, ArrayType, DictType
 
 
class MyUserType(UserType):