Unpack a MIME message into a directory of files.
Overview
MIME messages can be useful as cheap archives: unlike zipfile/tarfile standard modules, email.mime.multipart does not require a full-functional file to create an archive. MIME messages lack the ability to seek to a given file efficiently (much like tar), they have no standard compression (but it can be handled independently anyway), and lack a standard tool to extract them.
Inspired from python’s email examples .
Usage
Extract to directory $PWD/some
$ demultipart /path/to/some.multipart
Any number of multipart files can be specified, they will be extracted in provided order in their own directories.
Tries to prevent escaping extraction directory, but not tested on Windows.
Skips input file if extraction directory already exists.
TODO
Provide compatibility with standard CLI archive manipulation tools (tar, unzip…) so GUI can wrap this command too.
Maybe add multipart creation support.
Metadata
Release files for demultipart 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| demultipart-0.2.tar.gz | 2.7 kB | Without provenance | Details for demultipart-0.2.tar.gz |
Release files / demultipart-0.2.tar.gz
| Download URL | demultipart-0.2.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
873bc0413fce9282a0971003893f403ed64b5f131503e3c0dcacc6c0916220e8
|
|
BLAKE2b-256 checksum How to use checksums |
de6e30a282f3c07ccc654f96f6ed3627861890119d613ba6fcda3cbcf1325c87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for demultipart 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.