Skip to main content

imageZIP

This is a small python package to archive (encrypt) files and directories into a single image file.

This project is made just for fun, it has no practical use, output "ZIP" image will always have the same or greater file size than it's content. Also, this is not easy-to-scan like QR codes.

Algorithm is pretty easy. If folder to zip is chosen, it will iterate through all folders and files inside it. If folder is found, it will write relative path of folder in bytes and add special folder delimiter at the end. If file is found, it will write it's relative path and name in bytes, add special file delimiter and then write all it's content in bytes with additional second file delimiter. When bytes array is ready to go, it will build an image, where individual pixels representing particular byte number.

Example

demo image

This is an "imageZIP archive", containing this whole "imageZIP" repository.

It was created with imageZIP.zip("imageZIP/", scale=4).

You can actually download this image and unzip it with imageZIP.unzip("demo_zip.png", scale=4), it will create "imageZIP" folder with all repository files.

How to use

To download this package, you can use pip install imageZIP.

Then go to python terminal and write import imageZIP.

Then you can use 2 available functions:

  • imageZIP.zip(path: str, scale: int = 1, color_mode: str = 'heat_map');
  • imageZIP.unzip(path: str, scale: int = 1, color_mode: str = 'heat_map').

Only path attribute is necessary here, other settings can be omitted.

Notes:

  • For zip and unzip you have to provide same scale and color_mode settings;
  • scale is have to be int > 0;
  • Available color_modes are: bw, heat_map, heat_map_toxic;
  • Unexpected issues can occur if folders or files names contains \ or /.

Metadata

Release files for imageZIP 2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for imageZIP 2
File Size Uploaded Provenance Actions
imageZIP-2.tar.gz 5.4 kB Without provenance Details for imageZIP-2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for imageZIP 2
File Interpreter ABI Platform Actions
imageZIP-2-py3-none-any.whl Python 3 none any Details for imageZIP-2-py3-none-any.whl

Total release size: 11.0 kB

Release files / imageZIP-2.tar.gz

Download URL imageZIP-2.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b3a5b9d6aedc3132a12d6fda9e20d470143ed2171b36a30df2392d3a72dd2a26
BLAKE2b-256 checksum
How to use checksums
b3e2385283090bd966aceb1d92abda7ee4f49503044e0dcc6cc4ebaca97ee638
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

Release files / imageZIP-2-py3-none-any.whl

Download URL imageZIP-2-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c9ce2654c5c01af6cf074159deac663171d6bb3097239be2135b6d3a96a7f4a
BLAKE2b-256 checksum
How to use checksums
8d4e2ec661c33352f4e748a4e1b3a7d38eca8bf7963fe11cc6845eee3e14dc89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

Security for imageZIP 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page