A Python library for implementing RFC 6570 URI Templates, currently at version 4.2.0, with a release cadence of approximately every 1-2 years.
pip install uritemplateVerified import paths — ran on the pinned version, not inferred.
Expands a URI template with a user variable using the 'expand' function from 'uritemplate'.
Update import statements to 'from uritemplate import expand' and 'from uritemplate import URITemplate'.
Ensure consistency between 'var_dict' and 'kwargs' to avoid unintentional overrides.
pip install uritemplate
template.expand({'variable': 'value'})template.expand({'variable': 'value'})template = uritemplate.URITemplate('/path/{foo}')