Finds content type of request response from content disposition/ content type and when content disposition and content type not present in response headers
Project description
request_content_type_finder
Finds type of requests content in the following cases -
- content disposition and content type present in response headers
- when none of the above is present, content type is found using file signatures(magic bytes)
Installation
pip install request-content-type-finder
Usage
from request_content_type_finder import find
find(requests_response)
Contributors
| Name | Contact |
|---|---|
| Shivam Kadukar | shivamk2802@gmail.com |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file request-content-type-finder-0.1.0.tar.gz.
File metadata
- Download URL: request-content-type-finder-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a31438702fdcb7eebc9fffc8a9f972d1fedc36734e14b7facc387946199ac99
|
|
| MD5 |
488a45ec0396beb970555e089e11c6da
|
|
| BLAKE2b-256 |
b40b29ab6648275b32c4ca9cadff15a15c655582b036d6c4d2725672bae6933b
|
File details
Details for the file request_content_type_finder-0.1.0-py3-none-any.whl.
File metadata
- Download URL: request_content_type_finder-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c570531ce353a94752ab415340eea68b7da2262824ed00cba414f6afc3eaece6
|
|
| MD5 |
526b1c35ed5218ee06c136ca86727282
|
|
| BLAKE2b-256 |
37b6683d5975deb5eaccd35a98d8645b0c85775fa2ea5056a43e72379fa3c804
|