Python parser for LinkHeader
Project description
linkheader_parser
This is a parser for HTTP link header. This package does not cover 100% of the RFC definition of LinkHeaders, but should work in 99% of common cases.
Please report any issue on github.
Install package:
pip install linkheader_parser
Usage:
from linkheader_parser import parse
link_header = = (
'<https://api.github.com/user/9287/repos?client_id=1&client_secret=2&page=2&per_page=100>; rel="next", <https://api.github.com/user/9287/repos?client_id=1&client_secret=2&page=3&per_page=100>; rel="last"'
)
result = parse(link_header)
Result:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
linkheader_parser-0.5.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for linkheader_parser-0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 678dbf69ff874433717820e3340842aea0635845efc70bc185ef37d7870723ed |
|
MD5 | 7dc552eb7157d8823ca986a4bb738050 |
|
BLAKE2b-256 | 4956808f11a43475e2f822d3956fe14438dc40f964edddc20214d8920d648f70 |