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 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.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

pimht-0.4.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file pimht-0.4.1.tar.gz.

File metadata

  • Download URL: pimht-0.4.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for pimht-0.4.1.tar.gz
Algorithm Hash digest
SHA256 c775ea88d43b825b0fd09e391d354c20a562977c0666f033b75189fe03e1be9d
MD5 c58139b07867d3aa50963ddae9481fa3
BLAKE2b-256 725b3ec90bc7d7a34cd4e0eb04b708cf71a6c3d4758205e90f8d17defa6c28c9

See more details on using hashes here.

File details

Details for the file pimht-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: pimht-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for pimht-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4186ea82be49d7987990b7c52d9d4ebe650b9077bf545b7c6f731efa375d4f21
MD5 c3b5a3e256fba0ef66903f5fe2420f7a
BLAKE2b-256 6d57a985c4cc9050c733879566aa1adc7eccc0681790314b268e6cb23518b3e7

See more details on using hashes here.

Supported by

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