Skip to main content

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 details)

Uploaded Source

Built Distribution

linkheader_parser-0.6-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file linkheader_parser-0.6.tar.gz.

File metadata

  • Download URL: linkheader_parser-0.6.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for linkheader_parser-0.6.tar.gz
Algorithm Hash digest
SHA256 c51139de9e161164d685eba1ad429d965238cce48b8218a7a8c4441cca5021ce
MD5 b0e255caa23f6d21b3b83e7d1e8bbec7
BLAKE2b-256 85da6e5dce77b7459f5ae8af240978e1a1f0231d570ec2ee5df6aa0cb663e6b6

See more details on using hashes here.

File details

Details for the file linkheader_parser-0.6-py3-none-any.whl.

File metadata

  • Download URL: linkheader_parser-0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for linkheader_parser-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e30efea29751946b0d71b8a694e2be4d0b7bf5164f3e9870ecc0fca76f8139cd
MD5 91c4128c761b3fa3fd6d6cd6bedec28c
BLAKE2b-256 1dc03eaa417aa5ad45e82a97c87bf9c1f3b84c510b6c11b44e2e8b055d9f1c8d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page