Metadata-Version: 2.1
Name: contenttype
Version: 0.1.3
Summary: A package for parsing content-type headers.
Home-page: https://github.com/koenwoortman/contenttype
Author: Koen Woortman
Author-email: koensw@outlook.com
License: MIT
Project-URL: Source, https://github.com/koenwoortman/contenttype
Project-URL: Bug Tracker, https://github.com/koenwoortman/contenttype/issues
Platform: UNKNOWN
Classifier: Framework :: Django
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# Parse Content-Type Headers
> Python package for parsing Content-Type HTTP headers

## Usage

```python
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'
```


