MCPcopy Create free account

hub / github.com/schematics/schematics / functions

Functions853 in github.com/schematics/schematics

↓ 2 callersFunctionimport_loop
The import loop is designed to take untrusted data and convert it into the native types, as described in ``schema``. It does this by calling
schematics/transforms.py:25
↓ 2 callersFunctionimport_string
Imports an object based on a string. This is useful if you want to use import paths as endpoints or something similar. An import path can be
schematics/util.py:129
↓ 2 callersMethodnative_type
(self)
schematics/types/compound.py:94
↓ 2 callersMethodpatch
(self, request, pk)
examples/django/linkify/links/views.py:76
↓ 2 callersMethodpost
(self, model_class, data, context)
schematics/transforms.py:345
↓ 2 callersMethodpre
(self, model_class, instance_or_dict, context)
schematics/transforms.py:342
↓ 2 callersMethodpre_setattr
(self, value)
schematics/types/base.py:287
↓ 2 callersFunctionto_native
(cls, instance_or_dict, **kwargs)
schematics/transforms.py:431
↓ 2 callersMethodto_native
Convert untrusted data to a richer Python construct.
schematics/types/base.py:301
↓ 2 callersMethodto_native
(self, value, context=None)
schematics/types/base.py:1013
↓ 2 callersMethodto_primitive
(self, value, context=None)
schematics/contrib/enum_type.py:72
↓ 2 callersMethodto_primitive
(self, value, context=None)
schematics/contrib/mongo.py:42
↓ 2 callersMethodto_primitive
(self, value, context=None)
schematics/types/base.py:1021
↓ 2 callersMethodvalid_ip
(cls, value)
schematics/types/net.py:60
↓ 2 callersMethodvalidate_length
(self, value, context=None)
schematics/types/base.py:427
↓ 2 callersMethodvalidate_tz
(self, value, context=None)
schematics/types/base.py:924
↓ 1 callersMethod__get__
For a model instance, returns the field's current value. For a model class, returns the field's type object.
schematics/models.py:41
↓ 1 callersMethod__init__
(self, raw_data=None, trusted_data=None, deserialize_mapping=None, init=True, partial=True, s
schematics/models.py:221
↓ 1 callersMethod__init__
(self, name, value)
schematics/util.py:49
↓ 1 callersMethod__missing__
(self, key)
schematics/datastructures.py:181
↓ 1 callersMethod__repr__
(self)
schematics/types/base.py:217
↓ 1 callersMethod__set__
Sets the field's value.
schematics/models.py:55
↓ 1 callersMethod_append_field
Add a new field to this class. :type field_name: str :param field_name: The name of the field to add. :t
schematics/models.py:346
↓ 1 callersMethod_clear
(self)
schematics/datastructures.py:92
↓ 1 callersMethod_coerce
(self, value)
schematics/types/compound.py:210
↓ 1 callersMethod_convert
(self, value, context)
schematics/types/compound.py:53
↓ 1 callersMethod_copy
(self)
schematics/datastructures.py:56
↓ 1 callersMethod_export
(self, value, format, context)
schematics/types/compound.py:60
↓ 1 callersMethod_find_by_name
(self, value)
schematics/contrib/enum_type.py:58
↓ 1 callersMethod_find_by_value
(self, value)
schematics/contrib/enum_type.py:65
↓ 1 callersMethod_freeze
freeze common data structures to something immutable.
schematics/exceptions.py:58
↓ 1 callersMethod_get_candidates
(self)
schematics/types/compound.py:443
↓ 1 callersMethod_info_as_str
(self)
schematics/exceptions.py:122
↓ 1 callersMethod_items
(self)
schematics/datastructures.py:94
↓ 1 callersMethod_mock
(self, context=None)
schematics/types/base.py:232
↓ 1 callersMethod_mock
(self, context=None)
schematics/types/base.py:665
↓ 1 callersMethod_mock
(self, context=None)
schematics/types/base.py:806
↓ 1 callersMethod_mock
(self, context=None)
schematics/types/base.py:1010
↓ 1 callersFunction_mutate
Mutates the converted data before validation. Allows Schema fields to modify and create data values on mutable.
schematics/transforms.py:181
↓ 1 callersMethod_pop
(self, *args)
schematics/datastructures.py:96
↓ 1 callersMethod_read_options
Parses model `Options` class into a `SchemaOptions` instance.
schematics/models.py:126
↓ 1 callersMethod_repr_info
Subclasses may implement this method to augment the ``__repr__()`` output for the instance:: class Person(Model):
schematics/models.py:437
↓ 1 callersMethod_repr_info
(self)
schematics/types/serializable.py:100
↓ 1 callersMethod_repr_info
(self)
schematics/types/base.py:223
↓ 1 callersMethod_setdefaults
(self, source)
schematics/datastructures.py:72
↓ 1 callersMethod_setup
Perform late-stage setup tasks that are run after the containing model has been created.
schematics/types/base.py:235
↓ 1 callersMethod_to_dict
(self)
schematics/datastructures.py:79
↓ 1 callersMethod_transitions
(self, trigger=None, src_state=None, dst_state=None)
schematics/contrib/machine.py:43
↓ 1 callersFunction_validate_model
Validate data using model level methods. :param schema: The Schema to validate ``data`` against. :param mutable: A mappi
schematics/validate.py:72
↓ 1 callersMethodatoms
Iterator for the atomic components of a model definition and relevant data that creates a 3-tuple of the field's name, its type insta
schematics/models.py:321
↓ 1 callersMethodattach_tags
(self, tags)
examples/django/linkify/links/models.py:23
↓ 1 callersMethodcan
(self, state)
schematics/contrib/machine.py:60
↓ 1 callersMethodclear
Clear maps[0], leaving maps[1:] intact.
schematics/datastructures.py:259
↓ 1 callersMethodconvert
(self, value, context=None)
schematics/types/compound.py:49
↓ 1 callersFunctioncount
(n)
tests/test_serialize.py:847
↓ 1 callersMethoddelete
(self, request, pk)
examples/django/linkify/links/views.py:71
↓ 1 callersMethodfind_model
Finds the intended type by consulting potential classes or `claim_function`.
schematics/types/compound.py:402
↓ 1 callersMethodfrom_string
(self, value)
schematics/types/base.py:888
↓ 1 callersMethodfrom_timestamp
(self, value)
schematics/types/base.py:913
↓ 1 callersMethodfrom_total_points
(cls, total_points, category_slug)
tests/test_serialize.py:260
↓ 1 callersMethodget
(self, key, default=None)
schematics/datastructures.py:192
↓ 1 callersMethodget_api_docstring
Generate a sphinx apidoc compatible docstring for use in generating documentation for this model.
schematics/extensions/model_help_text_mixin.py:121
↓ 1 callersFunctionget_full_name
(data, *a, **kw)
tests/test_schema.py:16
↓ 1 callersMethodget_helptext
Generate user friendly description of this Model.
schematics/extensions/model_help_text_mixin.py:71
↓ 1 callersFunctionget_input_dict
(variant)
tests/test_conversion.py:33
↓ 1 callersFunctionget_input_instance
(input_init, variant)
tests/test_conversion.py:61
↓ 1 callersMethodhas_setter
(atom)
schematics/iteration.py:82
↓ 1 callersFunctionmetaclass
(metaclass)
schematics/compat.py:42
↓ 1 callersMethodmodel_class
(self)
schematics/types/compound.py:102
↓ 1 callersFunctionpatch_exceptions
()
schematics/deprecated.py:143
↓ 1 callersFunctionpatch_models
()
schematics/deprecated.py:123
↓ 1 callersFunctionpatch_schema
()
schematics/deprecated.py:134
↓ 1 callersFunctionrepr_compat
(class_)
schematics/compat.py:83
↓ 1 callersFunctionreraise
(tp, value, tb=None)
schematics/compat.py:36
↓ 1 callersMethodresolve
(self, value, context)
schematics/types/union.py:60
↓ 1 callersFunctionset_full_name
(data, value, *a, **kw)
tests/test_schema.py:21
↓ 1 callersFunctionstr_compat
On Python 2, patches the ``__str__`` and ``__repr__`` methods on the given class so that the class can be written for Python 3 and Unicode.
schematics/compat.py:71
↓ 1 callersMethodto_native
(self, value, context=None)
tests/test_model_type.py:217
↓ 1 callersFunctionto_native_converter
(field, value, context)
schematics/transforms.py:364
↓ 1 callersMethodto_primitive
(self, role=None, app_data=None, **kwargs)
schematics/models.py:308
↓ 1 callersFunctionto_primitive_converter
(field, value, context)
schematics/transforms.py:369
↓ 1 callersFunctiontranslator
(string)
tests/test_translator.py:7
↓ 1 callersMethodvalid_url
(self, value)
schematics/types/net.py:197
↓ 1 callersMethodvalidate_regex
(self, value, context=None)
schematics/types/base.py:435
↓ 1 callersFunctionwholelist
Returns a function that evicts nothing. Exists mainly to be an explicit allowance of all fields instead of a using an empty blacklist.
schematics/transforms.py:304
Method__add__
(self, other)
schematics/role.py:54
Method__bool__
(self)
schematics/undefined.py:25
Method__bool__
(self)
schematics/datastructures.py:149
Method__bool__
(self)
schematics/datastructures.py:204
Method__call__
(self, message, lazy=True, *args, **kwargs)
schematics/translator.py:27
Method__call__
(self, name, value)
schematics/role.py:63
Method__call__
(self, field, value, context)
schematics/transforms.py:339
Method__call__
(self, *args)
schematics/transforms.py:354
Method__call__
(self, value, context=None)
schematics/types/base.py:226
Method__call__
(self, field, value, context)
tests/test_export.py:111
Method__contains__
(self, value)
schematics/role.py:33
Method__contains__
(self, value)
schematics/exceptions.py:187
Method__contains__
(self, name)
schematics/models.py:401
Method__contains__
(self, key)
schematics/datastructures.py:90
Method__contains__
(self, key)
schematics/datastructures.py:201
← previousnext →101–200 of 853, ranked by callers