Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pimht-0.4.6.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pimht-0.4.6-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

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

Hashes for pimht-0.4.6.tar.gz
Algorithm Hash digest
SHA256 aba4a36a11c30244fa6ca33a7b37b62591f1af408572176551b415fa186bdf64
MD5 aec5aaf83762257012128894dfcea31f
BLAKE2b-256 da787cabbe43a1ba7563e51fbf90bc18c46be33e3e4f8e8d9edd57eaad6be406

See more details on using hashes here.

Provenance

The following attestation bundles were made for pimht-0.4.6.tar.gz:

Publisher: publish-to-pypi.yml on pilate/pimht

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pimht-0.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ef2808e9a6cf7eabadeaa2fa863bfa63dffda86190dfc799fa3783efd43b710a
MD5 b9bd58909974d113daab4065ad43cd45
BLAKE2b-256 075325b30b50676c66ccfc4b56583a9668256bade8712b4e5aa0a133583fca6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pimht-0.4.6-py3-none-any.whl:

Publisher: publish-to-pypi.yml on pilate/pimht

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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