Skip to main content

datim 2.0.1

Data as an image.

Installation

pip install datim

Alternatively, install datim[optional] and get progress bar support.

Usage

datim has four commands:

  • datim
  • imdat
  • datimp
  • imdatp

datim and imdat check whether the compiled variant of datim is installed. If unavailable, it will fallback to the pure Python variant of datim. datimp and imdatp exclusively use the pure Python variant of the module.

$ datim
usage: datim [-h] [-o] [-np] [-nc] [-na] input output

(compiled) turns any file into an image

positional arguments:
  input               input file path
  output              output file path

optional arguments:
  -h, --help          show this help message and exit
  -o, --overwrite     overwrite without confirmation
  -np, --no-progress  do not use tqdm
  -nc, --no-compress  do not compress data
  -na, --no-alpha     do not use alpha channel
$ imdat
usage: imdat [-h] [-o] [-np] [-nc] [-na] input output

(compiled) turns previously converted images into the original file

positional arguments:
  input               input file path
  output              output file path

optional arguments:
  -h, --help          show this help message and exit
  -o, --overwrite     overwrite without confirmation
  -np, --no-progress  do not use tqdm
  -nc, --no-compress  do not compress data
  -na, --no-alpha     do not use alpha channel

Details

An image created by datim is made up by the following: [header][data][trailing random data]

  • [header] -> "<length of [data] hex array encoded in base15 hex>F"

    This is made up of a base15 hex array (0-E) denoting the length of the (compressed) data hex array. It is then suffixed with a hex F, acting as a delimiter betweeen the [header] and [data] section. This method of storing the data hex array was chosen as to not use the alpha layer, which would increase the resulting image file size.

  • [data]

    The (compressed) data is expressed naturally as its hexidecimal counterparts.

  • [trailing 0s]

    After the [data] hex array are trailing 0s. Before 2.0.0, trailing data were randomly generated for cosmetic purposes, but was removed due for performance.

License

datim is unlicensed with The Unlicense.

Release files for datim 2.0.1

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

Source distribution (sdist)

Source distribution for datim 2.0.1
File Size Uploaded
datim-2.0.1.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for datim 2.0.1
File Interpreter ABI Platform
datim-2.0.1-cp38-cp38-manylinux_2_31_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.31+ x86-64 Details

Total release size: 232.7 kB

Release files / datim-2.0.1.tar.gz

Download URL datim-2.0.1.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7c190020f8bd219f5e4636bd3d070e99f14ed5f01144f828a5ddbeaaddc3f9fe
BLAKE2b-256 checksum
How to use checksums
6a5ee0b4e48f547856e29c8496668952fe5c2a3752ff5b12e3ea2b701a9a40ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.8.12 Linux/5.4.0-1051-gke

Release files / datim-2.0.1-cp38-cp38-manylinux_2_31_x86_64.whl

Download URL datim-2.0.1-cp38-cp38-manylinux_2_31_x86_64.whl
Size 226.2 kB
Tags CPython 3.8 Linux glibc 2.31+ x86-64
SHA-256 checksum
How to use checksums
b1f4d5a2d028bf4af2962ffe1ae00a14e657b13a3227c76be522fc66905dc9ea
BLAKE2b-256 checksum
How to use checksums
bee451e78ec7501dae32094cd0a818d5d48009b05c4849481ec6e010d9d173c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.8.12 Linux/5.4.0-1051-gke

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

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