uri-template
RFC 6570 URI Template Processor
Decision gist · record as of 2026-08-14
Yes, if your use case is stable URI template expansion and you do not require active maintenance. The package is feature-complete for RFC 6570 and its documented extensions, has no known vulnerabilities, and carries a permissive license. However, do not adopt it if you need ongoing bug fixes, security patches, or support for future RFC revisions—the project is abandoned and will not receive updates.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction—pure Python wheel with no runtime dependencies.
- However, the package is abandoned as of 1150 days since last release, so no active maintenance or security updates are forthcoming.
License · maintenance · safety
MIT License (permissive) — MIT License permits commercial and private use, modification, and distribution with minimal restrictions, making it safe to adopt from a licensing standpoint.
last release 2023-06-21 (1150 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 46,735,284 downloads/mo, #607 on PyPI
Alternatives
Verify before relying
pip install uri-template
import uri_template
template = uri_template.URITemplate('{scheme}://{host}{/path*}')
result = template.expand(scheme='https', host='example.com', path=['api', 'v1', 'users'])
print(result) # https://example.com/api/v1/users- Whether the RFC 6570 standard and its extensions remain stable enough that abandonment poses no practical risk for typical use cases.
- Real-world compatibility with modern URI template consumers and whether edge cases in nested structures or partial expansion are well-tested.
What it is and what it does
uri-template is a Python implementation of RFC 6570 URI Templates that expands template strings by substituting variables with provided values. It handles standard RFC 6570 syntax (e.g., {var}, {+var}, {#var}) and adds several practical extensions: non-string values like booleans and numbers are automatically converted; nested lists and dictionaries are flattened or combined; default values can be specified inline; and partial expansion allows missing variables to remain as unexpanded expressions for later substitution. The package provides both module-level functions (expand, partial, validate) and a URITemplate class for more structured template handling.
The library is designed for scenarios where URLs or URI-like strings need to be generated dynamically—such as API clients, link templates in hypermedia responses, or configuration-driven URL construction. It supports Python 3.7 through 3.11 and has no external dependencies, making it lightweight and portable.
Use it for
- Build dynamic API endpoint URLs from templates with variable parameters and optional query strings.
- Implement hypermedia link templates in REST APIs that clients can expand with their own data.
- Generate URI patterns for routing or URL rewriting systems that need to preserve template syntax until runtime.
- Construct complex URLs with nested data structures (lists, dictionaries) that must be flattened into query parameters.
- Validate and introspect URI template syntax to extract variable names and modifiers before expansion.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if your use case is stable URI template expansion and you do not require active maintenance.
The package is feature-complete for RFC 6570 and its documented extensions, has no known vulnerabilities, and carries a permissive license. However, do not adopt it if you need ongoing bug fixes, security patches, or support for future RFC revisions—the project is abandoned and will not receive updates.
Install
uri-template on PyPI
Before you install
Low install friction—pure Python wheel with no runtime dependencies. However, the package is abandoned as of 1150 days since last release, so no active maintenance or security updates are forthcoming.
License in practice
MIT License permits commercial and private use, modification, and distribution with minimal restrictions, making it safe to adopt from a licensing standpoint.
Quickstart
pip install uri-template
import uri_template
template = uri_template.URITemplate('{scheme}://{host}{/path*}')
result = template.expand(scheme='https', host='example.com', path=['api', 'v1', 'users'])
print(result) # https://example.com/api/v1/users
Verify before relying
- Whether the RFC 6570 standard and its extensions remain stable enough that abandonment poses no practical risk for typical use cases.
- Real-world compatibility with modern URI template consumers and whether edge cases in nested structures or partial expansion are well-tested.
Package facts
| License | MIT License permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,150 days since the last release |
| First released | |
| Downloads | 46,735,284 / month, #607 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules |
Evidence: uri_template-1.3.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “RFC 6570 URI template expansion”
- uri-templateExpands RFC 6570 URI Templates with variable substitution, supporting…
- uritemplateExpands RFC 6570 URI templates by substituting variable placeholders…
- std-uritemplateExpands RFC 6570 URI Templates (Level 4) by substituting variables…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also std-uritemplate · uritemplate · purl · parameter-expansion-patched · expandvars · adaptive-cards-templating-py · prefixcommons · rfc3987 · rfc3987-syntax · xmacro