Up to [cvs.NetBSD.org] / pkgsrc / textproc / py-xmlschema
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-xmlschema: updated to 4.3.2 4.3.2 (2026-06-30) * Fix for issues * Add Georgian language
py-xmlschema: updated to 4.3.1 v4.3.1 (2026-01-17) * normalize_url(): workaround for issue 467 (UNC paths with Python < 3.12.5) * META_SCHEMA and BASE_SCHEMA paths converted to 'file' URL scheme * Clean optional dependencies
py-xmlschema: updated to 4.3.0 v4.3.0 (2026-01-03) * Add arguments validation for schemas and validation methods (by validation contexts) * Add custom XPath parser for find/findall/iterfind APIs on schemas for match singleton sequence also if position is a number greater than 1 in predicate expression * Improve build of XSD elements and groups, using a three-state built flag for components * Extend and fix memory tests (Python 3.14+ seems to consume more memory) * Drop support for Python 3.9 and add development support for Python 3.15
py-xmlschema: updated to 4.2.0 v4.2.0 * Add arguments validation for schemas and validation methods (by validation contexts) * Add `SchemaSettings` dataclass for storing read-only settings for schema instances and for managing package default settings * Add *block* argument to `XMLResource` class * Add *MAX_SCHEMA_SOURCES* package limit (`1000`, applied to `XsdGlobals` global maps instances) * Add *MAX_XML_ELEMENTS* package limit (`1,000,000`, applied to non-lazy `XMLResource` instances) * Reduce *MAX_XML_DEPTH* limit to 1000 and apply it to all `XMLResource` instances * Fix for substitute match in case of unexpected child
py-xmlschema: updated to 4.1.0 `v4.1.0`_ (2025-06-05) * Add XPath selectors: ElementSelector and ElementPathSelectors * Add *selector* argument to XMLResource and iterparse filters * Fix element substitution * Restore v3.4.5 builder methods as helpers * Add overall_min_occurs and overall_max_occurs helpers to XsdElement * Extend error message for XML syntax errors * Fix query/fragment like for filenames
py-xmlschema: updated to 4.0.0 v4.0.0 * Extend support of `lxml.etree` through *iterparse* optional argument * Rework internal decoding/encoding methods, replacing generators with normal functions * Replace kwargs with a validation context (DecodeContext and EncodeContext) * Add SchemaLoader class and variants * Slicing of XsdGlobals with parent maps * Fix `XsdUnion` validation performance issue * Drop support for Python 3.8
py-xmlschema: updated to 3.1.0 v3.1.0 * Add GData converter * Fix typing protocols usage * Extend XSD annotations parsing
py-xmlschema: updated to 3.0.2 v3.0.2 * Use XPath subtree as fragment for xs:assert * Fix in XMLSchemaProxy definition and usage for providing a base-uri to schema nodes * Module xpath.py splitted to a subpackage for including all the custom XPath 1.0/2.0 parsers and related classes to XPath * Add support for Python 3.13 (pre-releases)
py-xmlschema: updated to 3.0.1 v3.0.1 (2024-01-09) * Hotfix release for broken requirement * Set python-requires metadata to >=3.8 * Upgrade GitHub Actions v3.0.0 (2024-01-07) * XML declaration processing option *xmlns_processing* for converters * Decode/validate from XML document with dynamic schema load * XMLResource enhancement for a better XML resources processing * Improve lazy resources iteration removing preceding elements (*thin_mode* option) * Drop support for Python 3.7
py-xmlschema: convert to wheel.mk Fix PLIST while here. Bump PKGREVISION.
py-xmlschema: updated to 2.4.0 v2.4.0 * Improve schema export using XSD source encoding * Add XML signature and encryption to local fallback schemas
py-xmlschema: updated to 2.1.1 `v2.1.1`_ (2022-10-01) ====================== * Fix *schema_path* usage in `XMLSchemaBase.iter_errors()` * Add *allow_empty* option to `XMLSchemaBase` validation API `v2.1.0`_ (2022-09-25) ====================== * Add *to_etree()* to document API * Improve generic encoding with wildcards * Clean document API and schema decoding `v2.0.4`_ (2022-09-08) ====================== * Add *use_location_hints* argument to document API for giving the option of ignoring XSI schema locations hints * Fix import from locations hints with namespace mismatch `v2.0.3`_ (2022-08-25) ====================== * Add *keep_empty* and *element_hook* options to main `iter_decode()` method * Fix default namespace mapping in `BadgerFishConverter` * Fix type restriction check if restricted particle has `maxOccurs==0` `v2.0.2`_ (2022-08-12) ====================== * Fix XSD 1.1 assertions effective scope * Add support for Python 3.11 `v2.0.1`_ (2022-07-21) ====================== * Remove warnings during the build of the package using package_data specs in setup.py * Fix decoding with `process_namespaces=False` and xsi:type in XML instance * Refactor `DataElement.get()`, restore `DataElement.set()` * Add *map_attribute_names* argument to `DataElementConverter` `v2.0.0`_ (2022-07-18) ====================== * Refactor XPath interface for the full XPath node implementation of elementpath v3.0 * Fix BadgerFishConverter with mixed content * Improve `get()` and `set()` of DataElement
py-xmlschema: updated to 1.11.0 v1.11.0 * Add localization for validation related error messages * Add Italian translation * Add Russian partial translation
py-xmlschema: updated to 1.10.0 v1.10.0: * Add 'nonlocal' option to *defuse* argument of `XMLResource` (also for schema classes) * Add 'none' option to *allow* argument of `XMLResource` * Fix too strict parsing on XSD annotations * Drop support for Python 3.6
py-xmlschema: updated to 1.8.2 v1.8.2 * Fix for issues * Fix type annotation of XMLSchema source argument
py-xmlschema: updated to 1.8.1 v1.8.1 * Near compliance with strict type annotations * Removed ModelGroup class, merged with XsdGroup * Some optimizations and fixes from static analysis
py-xmlschema: updated to 1.7.1 `v1.7.1`_ (2021-09-03) ====================== * Activate mypy checks for package * Fix for issues 257 and 259 `v1.7.0`_ (2021-08-02) ====================== * Make XSD annotation parsing lazy * Add lazy annotations to schema instances * Add get_annotation() method to multiple-facets classes
py-xmlschema: updated to 1.5.1 v1.5.1 * Optimize NamespaceView read-only mapping * Add experimental XML data bindings with a DataBindingConverter * Add experimental PythonGenerator for static codegen with Jinja2
py-xmlschema: updated to 1.5.0 v1.5.0 * Add DataElement class for creating objects with schema bindings * Add DataElementConverter for decode to structured objects * Add an experimental abstract base class for building jinja2 based code generators (jinja2 as an optional dependency)
py-xmlschema: updated to 1.4.1 v1.4.1 * Include the pull request (fix xml.etree import) * Additional tests for schema components v1.4.0 * Fix for issues * Code cleaning and optimizations on schema components * Reducing and grouping helper functions
py-xmlschema: updated to 1.3.0 v1.3.0: * Drop support for Python 3.5 * Add XmlDocument and Wsdl11Document classes * Refactoring of XMLResource to support ElementTree-like XPath API on both full and lazy modes
py-xmlschema: updated to 1.2.4 v1.2.4: * Use the regex engine of *elementpath* library * Fix and extend tests on xs:assert
py-xmlschema: updated to 1.2.3 v1.2.3: * Full coverage of W3C tests (excluding ones for unavailable or unimplemented features) * Update and restrict elementpath dependency to v2.0.x * Fix check and iteration of empty model group * Fix substitution group iteration for local elements
py-xmlschema: updated to 1.2.0 v1.2.0: * Add ColumnarConverter class * Add command-line interface utility for document API * Fix a stable public API for XSD types, elements and attributes * Add security modes for accessing URLs
py-xmlschema: updated to 1.1.1 v1.1.1: * Change of *skip* validation mode with errors filtering in decode() or encode() * Extension of location hints by argument to imported/included schemas * Fixed lazy validation with identity constraints * Fixed many W3C instance tests (remain ~100 over 15344 tests)
py-xmlschema: updated to 1.1.0 v1.1.0: * Removed Python 2 compatibility code * Removed tests code from binary package * Improved identity constraints validation * Added JSON lazy decoding as experimental feature
py-xmlschema: updated to 1.0.16 v1.0.16: * Improved XMLResource class for working with compressed files * Fix for validation with XSD wildcards and 'lax' process content * Fix ambiguous items validation for xs:choice and xs:sequence models
py-xmlschema: added version 1.0.15 The xmlschema library is an implementation of XML Schema for Python (supports Python 2.7 and Python 3.5+). This library arises from the needs of a solid Python layer for processing XML Schema based files for MaX (Materials design at the Exascale) European project. A significant problem is the encoding and the decoding of the XML data files produced by different simulation software. Another important requirement is the XML data validation, in order to put the produced data under control. The lack of a suitable alternative for Python in the schema-based decoding of XML data has led to build this library. Obviously this library can be useful for other cases related to XML Schema based processing, not only for the original scope.