Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(51)  |  Call(47)  |  Derive(0)  |  Import(4)
Wildcard key or value for dictionaries.

>>> from .validator import validate
>>> validate({anything(): 1}, {'foo': 2, 'bar': 49})

src/m/a/MapProxy-1.6.0/mapproxy/config/spec.py   MapProxy(Download)
 
from mapproxy.util.ext.dictspec.validator import validate, ValidationError
from mapproxy.util.ext.dictspec.spec import one_of, anything, number
from mapproxy.util.ext.dictspec.spec import recursive, required, type_spec, combined
 
    'format': str(),
    'encoding_options': {
        anything(): anything()
    },
    'merge_method': str(),
    'ssl_ca_certs': str(),
    'headers': {
        anything(): str()
    },
}
        'db_name': str(),
        'tile_metadata': {
            anything(): anything()
        },
        'tile_id': str(),

src/m/a/mapproxy-HEAD/mapproxy/config/spec.py   mapproxy(Download)
 
from mapproxy.util.ext.dictspec.validator import validate, ValidationError
from mapproxy.util.ext.dictspec.spec import one_of, anything, number
from mapproxy.util.ext.dictspec.spec import recursive, required, type_spec, combined
 
    'format': str(),
    'encoding_options': {
        anything(): anything()
    },
    'merge_method': str(),
    'ssl_ca_certs': str(),
    'headers': {
        anything(): str()
    },
}
        'db_name': str(),
        'tile_metadata': {
            anything(): anything()
        },
        'tile_id': str(),

src/m/a/MapProxy-1.6.0/mapproxy/seed/spec.py   MapProxy(Download)
 
from mapproxy.util.ext.dictspec.validator import validate, ValidationError
from mapproxy.util.ext.dictspec.spec import one_off, anything, number
from mapproxy.util.ext.dictspec.spec import required
 
    'days': number(),
    'weeks': number(),
    'time': anything(),
    'mtime': str(),
}
seed_yaml_spec = {
    'coverages': {
        anything(): coverage,
    },
    'seeds': {
        anything(): {
    },
    'cleanups': {
        anything(): {
            required('caches'): [str()],
            'grids': [str()],

src/m/a/mapproxy-HEAD/mapproxy/seed/spec.py   mapproxy(Download)
 
from mapproxy.util.ext.dictspec.validator import validate, ValidationError
from mapproxy.util.ext.dictspec.spec import one_off, anything, number
from mapproxy.util.ext.dictspec.spec import required
 
    'days': number(),
    'weeks': number(),
    'time': anything(),
    'mtime': str(),
}
seed_yaml_spec = {
    'coverages': {
        anything(): coverage,
    },
    'seeds': {
        anything(): {
    },
    'cleanups': {
        anything(): {
            required('caches'): [str()],
            'grids': [str()],