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.6.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for linkheader_parser-0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e30efea29751946b0d71b8a694e2be4d0b7bf5164f3e9870ecc0fca76f8139cd |
|
MD5 | 91c4128c761b3fa3fd6d6cd6bedec28c |
|
BLAKE2b-256 | 1dc03eaa417aa5ad45e82a97c87bf9c1f3b84c510b6c11b44e2e8b055d9f1c8d |