You are here: Home / LBN / Up2date / Core Linux / BastionLinux 19 / python-uritemplate-0.6-1.lbn19.noarch

python-uritemplate-0.6-1.lbn19.noarch

Package Attributes
RPM  python-uritemplate-0.6-1.lbn19.noarch.rpm Architecture  noarch Size  18253 Created  2019/09/30 06:54:35 UTC
Package Specification
Summary URI Templates
Group Application/Internet
License ZPL
Home Page https://pypi.python.org/packages/source/u/uritemplate/uritemplate-0.6.tar.gz
Description

This is a Python implementation of RFC6570, URI Template, and can expand templates up to and including Level 4 in that specification.

It exposes a method, expand. For example:

>>> from uritemplate import expand >>> expand("http://www.{domain}/", {"domain": "foo.com"}) http://www.foo.com/

It also exposes a method variables that returns all variables used in a uritemplate. For example:

>>> from uritemplate import variables >>> variables(http:www{.domain*}{/top,next}{?q:20}) >>> set([domain, next, q, 'top'])

This function can be useful to determine what keywords are available to be expanded.

Requires
python  
rpmlib(FileDigests)  
rpmlib(CompressedFileNames)  
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PartialHardlinkSets)  
rpmlib(PayloadIsXz)  
Provides
python-uritemplate

Document Actions