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.4.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for linkheader_parser-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ccc96a0bf031c3c1ff274d10fc8656cd809cd1945a0b47bffcdff76150d510e |
|
MD5 | fd5dd67fc476e699546add4d5181dbad |
|
BLAKE2b-256 | 67611a89728ed79fd85c0207f948648fd2cf1788f9e17d91598025ccb36abd3d |