Parser for mhtml files
Project description
pimht
Python mhtml parser
Installation
$ pip install pimht
Example
import pimht
mhtml = pimht.from_filename("test.mhtml")
for part in mhtml:
print(part)
Performance
The chardet module, used by default, is slow. Performance can be improved by also installing cchardet and pybase64 with:
$ pip install pimht[speedups]
This is aimed specifically at parsing Google Chrome generated snapshots as fast as possible, but feel free to report issues with MHTML files from other sources.
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 pimht-0.4.6.tar.gz.
File metadata
- Download URL: pimht-0.4.6.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aba4a36a11c30244fa6ca33a7b37b62591f1af408572176551b415fa186bdf64
|
|
| MD5 |
aec5aaf83762257012128894dfcea31f
|
|
| BLAKE2b-256 |
da787cabbe43a1ba7563e51fbf90bc18c46be33e3e4f8e8d9edd57eaad6be406
|
Provenance
The following attestation bundles were made for pimht-0.4.6.tar.gz:
Publisher:
publish-to-pypi.yml on pilate/pimht
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pimht-0.4.6.tar.gz -
Subject digest:
aba4a36a11c30244fa6ca33a7b37b62591f1af408572176551b415fa186bdf64 - Sigstore transparency entry: 488826002
- Sigstore integration time:
-
Permalink:
pilate/pimht@fed0c4c544b40496c4025c3cf177c3add787a329 -
Branch / Tag:
refs/tags/v0.4.6 - Owner: https://github.com/pilate
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@fed0c4c544b40496c4025c3cf177c3add787a329 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pimht-0.4.6-py3-none-any.whl.
File metadata
- Download URL: pimht-0.4.6-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef2808e9a6cf7eabadeaa2fa863bfa63dffda86190dfc799fa3783efd43b710a
|
|
| MD5 |
b9bd58909974d113daab4065ad43cd45
|
|
| BLAKE2b-256 |
075325b30b50676c66ccfc4b56583a9668256bade8712b4e5aa0a133583fca6d
|
Provenance
The following attestation bundles were made for pimht-0.4.6-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on pilate/pimht
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pimht-0.4.6-py3-none-any.whl -
Subject digest:
ef2808e9a6cf7eabadeaa2fa863bfa63dffda86190dfc799fa3783efd43b710a - Sigstore transparency entry: 488826022
- Sigstore integration time:
-
Permalink:
pilate/pimht@fed0c4c544b40496c4025c3cf177c3add787a329 -
Branch / Tag:
refs/tags/v0.4.6 - Owner: https://github.com/pilate
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@fed0c4c544b40496c4025c3cf177c3add787a329 -
Trigger Event:
push
-
Statement type: