Skip to main content

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:


Metadata

Release files for linkheader-parser 0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for linkheader-parser 0.6
File Size Uploaded
linkheader_parser-0.6.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for linkheader-parser 0.6
File Interpreter ABI Platform
linkheader_parser-0.6-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / linkheader_parser-0.6.tar.gz

Download URL linkheader_parser-0.6.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c51139de9e161164d685eba1ad429d965238cce48b8218a7a8c4441cca5021ce
BLAKE2b-256 checksum
How to use checksums
85da6e5dce77b7459f5ae8af240978e1a1f0231d570ec2ee5df6aa0cb663e6b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release files / linkheader_parser-0.6-py3-none-any.whl

Download URL linkheader_parser-0.6-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e30efea29751946b0d71b8a694e2be4d0b7bf5164f3e9870ecc0fca76f8139cd
BLAKE2b-256 checksum
How to use checksums
1dc03eaa417aa5ad45e82a97c87bf9c1f3b84c510b6c11b44e2e8b055d9f1c8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.6 This release

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page