uritemplate

4.2.0 · active · verified Sat Mar 28

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.

Warnings

Install

Imports

Quickstart

Expands a URI template with a user variable using the 'expand' function from 'uritemplate'.

from uritemplate import expand

uri = 'https://api.github.com{/user}'

expanded_uri = expand(uri, user='sigmavirus24')
print(expanded_uri)

view raw JSON →