--- id: uri-template version: "1.3.0" license: MIT License license_treatment: permissive maintenance: abandoned --- # uri-template — RFC 6570 URI Template Processor License: permissive · Maintenance: abandoned · Popularity: top 1,000 on PyPI ## Install pip install uri-template uv add uri-template poetry add uri-template ## Description # uri-template An implementation of RFC 6570 URI Templates. This packages implements URI Template expansion in strict adherence to RFC 6570, but adds a few extensions. ## RFC 6570 Extensions ### Non-string Values RFC 6570 is silent regarding variable values that are not strings, lists, associative arrays, or null. This package handles value types as follows: * Values that are instances of `str` are treated as strings. * Values implementing `collections.abc.Sequence` are treated as lists. * Values implementing `collections.abc.Mapping` are treated as associative arrays. * `None` values are treated as null. * Boolean values are converted to the lower case strings 'true' and 'false'. * All other values will be converted to strings using the Python `str()` function. ### Nested Structures This package handles variable values with nested structure, for example, lists containing other lists or associative arrays, or associative arrays containing lists or other associative arrays. Nested values for variables that do not use the array modifier ('[]') are treated as follows: * Lists containing lists are flattened into a single list. * Lists containing... ## AI interpretation — verify before relying Expands RFC 6570 URI Templates with support for variable substitution, nested structures, default values, and partial expansion. It provides both functional and object-oriented APIs for template validation and expansion. Verdict: A well-designed RFC 6570 implementation with zero dependencies and permissive licensing, suitable for URI template processing tasks. The abandoned maintenance status (1149 days since last release) is a significant concern for long-term reliability and security; use only if the feature set is stable and no active maintenance is required. [View on SkillFed](https://skillfed.io/packages/uri-template) · [View on PyPI](https://pypi.org/project/uri-template/)