--- id: std-uritemplate version: "2.0.12" license: Apache-2.0 license_treatment: permissive maintenance: active --- # std-uritemplate — std-uritemplate implementation for Python License: permissive · Maintenance: active · Downloads: 14.6M/mo ## What it is and what it does std-uritemplate is a cross-language implementation of the URI Template specification (RFC 6570) Level 4, providing a single public method to expand template strings by substituting variable values. It takes a template string with placeholders and a dictionary of substitutions, then returns the expanded URI. The library is designed with zero dependencies, no regex usage, and no configuration options—just a straightforward expand function that handles primitive type substitutions. The package is part of a multi-language standardization effort aimed at providing stable, maintainable URI template handling across ecosystems. It supports Python 3.8 through 3.14 and is actively maintained by an independent organization. The implementation prioritizes readability and maintenance over micro-optimizations, making it suitable for applications that need RFC 6570 compliance without external dependencies. Use it for: - Build dynamic API URLs in REST clients by substituting host, path, and query parameters into RFC 6570 templates. - Generate OpenAPI-compliant URIs where URI templates are part of the specification. - Construct URLs with variable path segments and query strings without external dependencies. - Expand templated URLs in code generation tools that rely on RFC 6570. - Create portable URL generation logic that works identically across multiple programming languages. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Expands RFC 6570 URI Templates (Level 4) by substituting variables into template strings to generate URIs. Yes. The package is actively maintained, has zero dependencies, supports current Python versions (3.8–3.14), carries no known vulnerabilities, and is licensed permissively. Install it when you need RFC 6570 Level 4 URI template expansion without adding dependency weight. The single-method API and design-by-constraint approach make it a low-risk, straightforward choice for standards-compliant URL generation. ## Install pip install std-uritemplate uv add std-uritemplate poetry add std-uritemplate ## Installing std-uritemplate Before you install: Low install friction with no runtime dependencies. Active maintenance with a recent release 29 days ago. Supports Python 3.8 through 3.14. License in practice: Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions. Quickstart: pip install std-uritemplate from std-uritemplate import StdUriTemplate template = "{scheme}://{host}{/path*}" substitutions = {"scheme": "https", "host": "example.com", "path": ["a", "b"]} result = StdUriTemplate.expand(template, substitutions) Verify before relying: - Whether the Python implementation has been formally reviewed (description marks it as not reviewed but does not explain impact) - Performance characteristics and suitability for high-volume URI expansion workloads ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 14.6M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags uri template expansion, rfc 6570 implementation, url template substitution, uri template variables, template-based url generation, uritemplate parser, dynamic uri construction, rfc-6570, zero-dependencies, url-generation [View on SkillFed](https://skillfed.io/packages/std-uritemplate) · [View on PyPI](https://pypi.org/project/std-uritemplate/)