Skip to main content

Parse Content-Type Headers

Python package for parsing Content-Type HTTP headers

Usage

from contenttype import ContentType

result = ContentType.parse('application/rss+xml; charset=utf-8')

result.type       # => 'application'
result.subtype    # => 'rss'
result.suffix     # => 'xml'
result.parameters # => {'charset': 'utf-8'}
result.charset    # => 'utf-8'

Metadata

Release files for contenttype 0.1.3

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

Source distribution (sdist)

Source distribution for contenttype 0.1.3
File Size Uploaded Provenance Actions
contenttype-0.1.3.tar.gz 3.1 kB Without provenance Details for contenttype-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for contenttype 0.1.3
File Interpreter ABI Platform Actions
contenttype-0.1.3-py3-none-any.whl Python 3 none any Details for contenttype-0.1.3-py3-none-any.whl

Total release size: 6.2 kB

Release files / contenttype-0.1.3.tar.gz

Download URL contenttype-0.1.3.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4108e655d71c90c2121c3f18e8e2e7ca0abcab08f42af8663f2777a79a44003b
BLAKE2b-256 checksum
How to use checksums
b2857ef45233346dee6a9f0fe2a7cb771d08aa3a535ed3530065c77136de9fce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.10

Release files / contenttype-0.1.3-py3-none-any.whl

Download URL contenttype-0.1.3-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9bf1af61c3658a1a96e5d7ebc0da5ab6d49dbf988d9ff374aa01bd5410a41875
BLAKE2b-256 checksum
How to use checksums
918716399364beb4ccf112490b42221278b5998f398f830a49f6cd6d9061666e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.10

Security for contenttype 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

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