├── .coveragerc ├── .flake8 ├── .github └── workflows │ ├── release.yml │ └── test.yml ├── .gitignore ├── .pre-commit-config.yaml ├── .readthedocs.yaml ├── CHANGELOG.rst ├── LICENSE ├── README.rst ├── docs ├── Makefile ├── make.bat └── source │ ├── _static │ └── css │ │ └── custom.css │ ├── conf.py │ ├── index.rst │ └── pages │ ├── api.rst │ ├── changelog.rst │ ├── contribute.rst │ ├── data-binding │ ├── aliases.rst │ ├── attributes.rst │ ├── elements.rst │ ├── generics.rst │ ├── heterogeneous.rst │ ├── homogeneous.rst │ ├── index.rst │ ├── mappings.rst │ ├── models.rst │ ├── raw.rst │ ├── text.rst │ ├── unions.rst │ └── wrapper.rst │ ├── installation.rst │ ├── misc.rst │ └── quickstart.rst ├── examples ├── computed-entities │ ├── doc.xml │ └── model.py ├── custom-encoder │ ├── doc.xml │ ├── file1.txt │ ├── file2.txt │ └── model.py ├── generic-model │ ├── doc.json │ ├── doc.xml │ └── model.py ├── quickstart │ ├── doc.json │ ├── doc.xml │ └── model.py ├── self-ref-model │ ├── doc.json │ ├── doc.xml │ └── model.py ├── snippets │ ├── aliases.py │ ├── attribute.py │ ├── attribute_namespace.py │ ├── attribute_namespace_inheritance.py │ ├── default_namespace.py │ ├── dynamic_model_creation.py │ ├── element_model.py │ ├── element_namespace.py │ ├── element_namespace_global.py │ ├── element_namespace_model.py │ ├── element_primitive.py │ ├── element_raw.py │ ├── exclude_none.py │ ├── exclude_unset.py │ ├── homogeneous_dicts.py │ ├── homogeneous_models.py │ ├── homogeneous_models_tuples.py │ ├── homogeneous_primitives.py │ ├── homogeneous_tuples.py │ ├── lxml │ │ └── model_mode_strict.py │ ├── mapping.py │ ├── mapping_element.py │ ├── mapping_typed.py │ ├── model_generic.py │ ├── model_mode_ordered.py │ ├── model_mode_unordered.py │ ├── model_namespace.py │ ├── model_root.py │ ├── model_root_collection.py │ ├── model_root_primitive.py │ ├── model_root_type.py │ ├── model_self_ref.py │ ├── model_template.py │ ├── py3.9 │ │ └── serialization.py │ ├── serialization_nillable.py │ ├── skip_empty.py │ ├── text_primitive.py │ ├── text_primitive_optional.py │ ├── union_discriminated.py │ ├── union_models.py │ ├── union_primitives.py │ ├── wrapper.py │ └── wrapper_nested.py ├── xml-serialization-annotation │ ├── doc.xml │ └── model.py └── xml-serialization-decorator │ ├── doc.xml │ └── model.py ├── pydantic_xml ├── __init__.py ├── compat.py ├── config.py ├── element │ ├── __init__.py │ ├── element.py │ ├── native │ │ ├── __init__.py │ │ ├── lxml.py │ │ └── std.py │ └── utils.py ├── errors.py ├── fields.py ├── model.py ├── mypy.py ├── py.typed ├── serializers │ ├── __init__.py │ ├── factories │ │ ├── __init__.py │ │ ├── call.py │ │ ├── heterogeneous.py │ │ ├── homogeneous.py │ │ ├── is_instance.py │ │ ├── mapping.py │ │ ├── model.py │ │ ├── named_tuple.py │ │ ├── primitive.py │ │ ├── raw.py │ │ ├── tagged_union.py │ │ ├── tuple.py │ │ ├── typed_mapping.py │ │ ├── union.py │ │ └── wrapper.py │ └── serializer.py ├── typedefs.py └── utils.py ├── pyproject.toml ├── pytest.ini └── tests ├── helpers.py ├── test_computed_fields.py ├── test_dynamic_model_creation.py ├── test_encoder.py ├── test_entity_naming.py ├── test_errors.py ├── test_examples.py ├── test_extra.py ├── test_forward_ref.py ├── test_generics.py ├── test_heterogeneous_collections.py ├── test_homogeneous_collections.py ├── test_mappings.py ├── test_misc.py ├── test_named_tuple.py ├── test_namespaces.py ├── test_preprocessors.py ├── test_primitives.py ├── test_raw.py ├── test_search_modes.py ├── test_submodels.py ├── test_unions.py └── test_wrapped.py /.coveragerc: -------------------------------------------------------------------------------- 1 | [run] 2 | omit = 3 | pydantic_xml/mypy.py 4 | -------------------------------------------------------------------------------- /.flake8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/.flake8 -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.readthedocs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/.readthedocs.yaml -------------------------------------------------------------------------------- /CHANGELOG.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/CHANGELOG.rst -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/LICENSE -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/README.rst -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/Makefile -------------------------------------------------------------------------------- /docs/make.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/make.bat -------------------------------------------------------------------------------- /docs/source/_static/css/custom.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/_static/css/custom.css -------------------------------------------------------------------------------- /docs/source/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/conf.py -------------------------------------------------------------------------------- /docs/source/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/index.rst -------------------------------------------------------------------------------- /docs/source/pages/api.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/api.rst -------------------------------------------------------------------------------- /docs/source/pages/changelog.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/changelog.rst -------------------------------------------------------------------------------- /docs/source/pages/contribute.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/contribute.rst -------------------------------------------------------------------------------- /docs/source/pages/data-binding/aliases.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/data-binding/aliases.rst -------------------------------------------------------------------------------- /docs/source/pages/data-binding/attributes.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/data-binding/attributes.rst -------------------------------------------------------------------------------- /docs/source/pages/data-binding/elements.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/data-binding/elements.rst -------------------------------------------------------------------------------- /docs/source/pages/data-binding/generics.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/data-binding/generics.rst -------------------------------------------------------------------------------- /docs/source/pages/data-binding/heterogeneous.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/data-binding/heterogeneous.rst -------------------------------------------------------------------------------- /docs/source/pages/data-binding/homogeneous.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/data-binding/homogeneous.rst -------------------------------------------------------------------------------- /docs/source/pages/data-binding/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/data-binding/index.rst -------------------------------------------------------------------------------- /docs/source/pages/data-binding/mappings.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/data-binding/mappings.rst -------------------------------------------------------------------------------- /docs/source/pages/data-binding/models.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/data-binding/models.rst -------------------------------------------------------------------------------- /docs/source/pages/data-binding/raw.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/data-binding/raw.rst -------------------------------------------------------------------------------- /docs/source/pages/data-binding/text.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/data-binding/text.rst -------------------------------------------------------------------------------- /docs/source/pages/data-binding/unions.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/data-binding/unions.rst -------------------------------------------------------------------------------- /docs/source/pages/data-binding/wrapper.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/data-binding/wrapper.rst -------------------------------------------------------------------------------- /docs/source/pages/installation.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/installation.rst -------------------------------------------------------------------------------- /docs/source/pages/misc.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/misc.rst -------------------------------------------------------------------------------- /docs/source/pages/quickstart.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/docs/source/pages/quickstart.rst -------------------------------------------------------------------------------- /examples/computed-entities/doc.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/computed-entities/doc.xml -------------------------------------------------------------------------------- /examples/computed-entities/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/computed-entities/model.py -------------------------------------------------------------------------------- /examples/custom-encoder/doc.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/custom-encoder/doc.xml -------------------------------------------------------------------------------- /examples/custom-encoder/file1.txt: -------------------------------------------------------------------------------- 1 | hello world!!! 2 | -------------------------------------------------------------------------------- /examples/custom-encoder/file2.txt: -------------------------------------------------------------------------------- 1 | ¡Hola Mundo! 2 | -------------------------------------------------------------------------------- /examples/custom-encoder/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/custom-encoder/model.py -------------------------------------------------------------------------------- /examples/generic-model/doc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/generic-model/doc.json -------------------------------------------------------------------------------- /examples/generic-model/doc.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/generic-model/doc.xml -------------------------------------------------------------------------------- /examples/generic-model/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/generic-model/model.py -------------------------------------------------------------------------------- /examples/quickstart/doc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/quickstart/doc.json -------------------------------------------------------------------------------- /examples/quickstart/doc.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/quickstart/doc.xml -------------------------------------------------------------------------------- /examples/quickstart/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/quickstart/model.py -------------------------------------------------------------------------------- /examples/self-ref-model/doc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/self-ref-model/doc.json -------------------------------------------------------------------------------- /examples/self-ref-model/doc.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/self-ref-model/doc.xml -------------------------------------------------------------------------------- /examples/self-ref-model/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/self-ref-model/model.py -------------------------------------------------------------------------------- /examples/snippets/aliases.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/aliases.py -------------------------------------------------------------------------------- /examples/snippets/attribute.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/attribute.py -------------------------------------------------------------------------------- /examples/snippets/attribute_namespace.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/attribute_namespace.py -------------------------------------------------------------------------------- /examples/snippets/attribute_namespace_inheritance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/attribute_namespace_inheritance.py -------------------------------------------------------------------------------- /examples/snippets/default_namespace.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/default_namespace.py -------------------------------------------------------------------------------- /examples/snippets/dynamic_model_creation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/dynamic_model_creation.py -------------------------------------------------------------------------------- /examples/snippets/element_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/element_model.py -------------------------------------------------------------------------------- /examples/snippets/element_namespace.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/element_namespace.py -------------------------------------------------------------------------------- /examples/snippets/element_namespace_global.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/element_namespace_global.py -------------------------------------------------------------------------------- /examples/snippets/element_namespace_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/element_namespace_model.py -------------------------------------------------------------------------------- /examples/snippets/element_primitive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/element_primitive.py -------------------------------------------------------------------------------- /examples/snippets/element_raw.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/element_raw.py -------------------------------------------------------------------------------- /examples/snippets/exclude_none.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/exclude_none.py -------------------------------------------------------------------------------- /examples/snippets/exclude_unset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/exclude_unset.py -------------------------------------------------------------------------------- /examples/snippets/homogeneous_dicts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/homogeneous_dicts.py -------------------------------------------------------------------------------- /examples/snippets/homogeneous_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/homogeneous_models.py -------------------------------------------------------------------------------- /examples/snippets/homogeneous_models_tuples.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/homogeneous_models_tuples.py -------------------------------------------------------------------------------- /examples/snippets/homogeneous_primitives.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/homogeneous_primitives.py -------------------------------------------------------------------------------- /examples/snippets/homogeneous_tuples.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/homogeneous_tuples.py -------------------------------------------------------------------------------- /examples/snippets/lxml/model_mode_strict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/lxml/model_mode_strict.py -------------------------------------------------------------------------------- /examples/snippets/mapping.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/mapping.py -------------------------------------------------------------------------------- /examples/snippets/mapping_element.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/mapping_element.py -------------------------------------------------------------------------------- /examples/snippets/mapping_typed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/mapping_typed.py -------------------------------------------------------------------------------- /examples/snippets/model_generic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/model_generic.py -------------------------------------------------------------------------------- /examples/snippets/model_mode_ordered.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/model_mode_ordered.py -------------------------------------------------------------------------------- /examples/snippets/model_mode_unordered.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/model_mode_unordered.py -------------------------------------------------------------------------------- /examples/snippets/model_namespace.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/model_namespace.py -------------------------------------------------------------------------------- /examples/snippets/model_root.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/model_root.py -------------------------------------------------------------------------------- /examples/snippets/model_root_collection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/model_root_collection.py -------------------------------------------------------------------------------- /examples/snippets/model_root_primitive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/model_root_primitive.py -------------------------------------------------------------------------------- /examples/snippets/model_root_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/model_root_type.py -------------------------------------------------------------------------------- /examples/snippets/model_self_ref.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/model_self_ref.py -------------------------------------------------------------------------------- /examples/snippets/model_template.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/model_template.py -------------------------------------------------------------------------------- /examples/snippets/py3.9/serialization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/py3.9/serialization.py -------------------------------------------------------------------------------- /examples/snippets/serialization_nillable.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/serialization_nillable.py -------------------------------------------------------------------------------- /examples/snippets/skip_empty.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/skip_empty.py -------------------------------------------------------------------------------- /examples/snippets/text_primitive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/text_primitive.py -------------------------------------------------------------------------------- /examples/snippets/text_primitive_optional.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/text_primitive_optional.py -------------------------------------------------------------------------------- /examples/snippets/union_discriminated.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/union_discriminated.py -------------------------------------------------------------------------------- /examples/snippets/union_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/union_models.py -------------------------------------------------------------------------------- /examples/snippets/union_primitives.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/union_primitives.py -------------------------------------------------------------------------------- /examples/snippets/wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/wrapper.py -------------------------------------------------------------------------------- /examples/snippets/wrapper_nested.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/snippets/wrapper_nested.py -------------------------------------------------------------------------------- /examples/xml-serialization-annotation/doc.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/xml-serialization-annotation/doc.xml -------------------------------------------------------------------------------- /examples/xml-serialization-annotation/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/xml-serialization-annotation/model.py -------------------------------------------------------------------------------- /examples/xml-serialization-decorator/doc.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/xml-serialization-decorator/doc.xml -------------------------------------------------------------------------------- /examples/xml-serialization-decorator/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/examples/xml-serialization-decorator/model.py -------------------------------------------------------------------------------- /pydantic_xml/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/__init__.py -------------------------------------------------------------------------------- /pydantic_xml/compat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/compat.py -------------------------------------------------------------------------------- /pydantic_xml/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/config.py -------------------------------------------------------------------------------- /pydantic_xml/element/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/element/__init__.py -------------------------------------------------------------------------------- /pydantic_xml/element/element.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/element/element.py -------------------------------------------------------------------------------- /pydantic_xml/element/native/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/element/native/__init__.py -------------------------------------------------------------------------------- /pydantic_xml/element/native/lxml.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/element/native/lxml.py -------------------------------------------------------------------------------- /pydantic_xml/element/native/std.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/element/native/std.py -------------------------------------------------------------------------------- /pydantic_xml/element/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/element/utils.py -------------------------------------------------------------------------------- /pydantic_xml/errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/errors.py -------------------------------------------------------------------------------- /pydantic_xml/fields.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/fields.py -------------------------------------------------------------------------------- /pydantic_xml/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/model.py -------------------------------------------------------------------------------- /pydantic_xml/mypy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/mypy.py -------------------------------------------------------------------------------- /pydantic_xml/py.typed: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pydantic_xml/serializers/__init__.py: -------------------------------------------------------------------------------- 1 | from . import factories, serializer 2 | -------------------------------------------------------------------------------- /pydantic_xml/serializers/factories/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/serializers/factories/__init__.py -------------------------------------------------------------------------------- /pydantic_xml/serializers/factories/call.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/serializers/factories/call.py -------------------------------------------------------------------------------- /pydantic_xml/serializers/factories/heterogeneous.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/serializers/factories/heterogeneous.py -------------------------------------------------------------------------------- /pydantic_xml/serializers/factories/homogeneous.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/serializers/factories/homogeneous.py -------------------------------------------------------------------------------- /pydantic_xml/serializers/factories/is_instance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/serializers/factories/is_instance.py -------------------------------------------------------------------------------- /pydantic_xml/serializers/factories/mapping.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/serializers/factories/mapping.py -------------------------------------------------------------------------------- /pydantic_xml/serializers/factories/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/serializers/factories/model.py -------------------------------------------------------------------------------- /pydantic_xml/serializers/factories/named_tuple.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/serializers/factories/named_tuple.py -------------------------------------------------------------------------------- /pydantic_xml/serializers/factories/primitive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/serializers/factories/primitive.py -------------------------------------------------------------------------------- /pydantic_xml/serializers/factories/raw.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/serializers/factories/raw.py -------------------------------------------------------------------------------- /pydantic_xml/serializers/factories/tagged_union.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/serializers/factories/tagged_union.py -------------------------------------------------------------------------------- /pydantic_xml/serializers/factories/tuple.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/serializers/factories/tuple.py -------------------------------------------------------------------------------- /pydantic_xml/serializers/factories/typed_mapping.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/serializers/factories/typed_mapping.py -------------------------------------------------------------------------------- /pydantic_xml/serializers/factories/union.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/serializers/factories/union.py -------------------------------------------------------------------------------- /pydantic_xml/serializers/factories/wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/serializers/factories/wrapper.py -------------------------------------------------------------------------------- /pydantic_xml/serializers/serializer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/serializers/serializer.py -------------------------------------------------------------------------------- /pydantic_xml/typedefs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/typedefs.py -------------------------------------------------------------------------------- /pydantic_xml/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pydantic_xml/utils.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pyproject.toml -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/pytest.ini -------------------------------------------------------------------------------- /tests/helpers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/helpers.py -------------------------------------------------------------------------------- /tests/test_computed_fields.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_computed_fields.py -------------------------------------------------------------------------------- /tests/test_dynamic_model_creation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_dynamic_model_creation.py -------------------------------------------------------------------------------- /tests/test_encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_encoder.py -------------------------------------------------------------------------------- /tests/test_entity_naming.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_entity_naming.py -------------------------------------------------------------------------------- /tests/test_errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_errors.py -------------------------------------------------------------------------------- /tests/test_examples.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_examples.py -------------------------------------------------------------------------------- /tests/test_extra.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_extra.py -------------------------------------------------------------------------------- /tests/test_forward_ref.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_forward_ref.py -------------------------------------------------------------------------------- /tests/test_generics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_generics.py -------------------------------------------------------------------------------- /tests/test_heterogeneous_collections.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_heterogeneous_collections.py -------------------------------------------------------------------------------- /tests/test_homogeneous_collections.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_homogeneous_collections.py -------------------------------------------------------------------------------- /tests/test_mappings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_mappings.py -------------------------------------------------------------------------------- /tests/test_misc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_misc.py -------------------------------------------------------------------------------- /tests/test_named_tuple.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_named_tuple.py -------------------------------------------------------------------------------- /tests/test_namespaces.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_namespaces.py -------------------------------------------------------------------------------- /tests/test_preprocessors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_preprocessors.py -------------------------------------------------------------------------------- /tests/test_primitives.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_primitives.py -------------------------------------------------------------------------------- /tests/test_raw.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_raw.py -------------------------------------------------------------------------------- /tests/test_search_modes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_search_modes.py -------------------------------------------------------------------------------- /tests/test_submodels.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_submodels.py -------------------------------------------------------------------------------- /tests/test_unions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_unions.py -------------------------------------------------------------------------------- /tests/test_wrapped.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dapper91/pydantic-xml/HEAD/tests/test_wrapped.py --------------------------------------------------------------------------------