datim-2.0.1
توضیحات
Data as an image.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | datim-2.0.1 |
| نام | datim |
| نسخه کتابخانه | 2.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Your Name |
| ایمیل نویسنده | you@example.com |
| آدرس صفحه اصلی | https://github.com/markjoshwel/datim |
| آدرس اینترنتی | https://pypi.org/project/datim/ |
| مجوز | Unlicense |
# datim 2.0.1
Data as an image.
- [Installation](#installation)
- [Usage](#usage)
- [Changelog](CHANGELOG.md)
- [Details](#details)
- [License](#license)
## 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 `0`s. 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](https://unlicense.org).
نیازمندی
| مقدار | نام |
|---|---|
| >=8.3.2,<9.0.0 | Pillow |
| >=4.62.3,<5.0.0) | tqdm |
| >=3.1.3,<4.0.0 | lz4 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.2,<4.0.0 | Python |
نحوه نصب
نصب پکیج whl datim-2.0.1:
pip install datim-2.0.1.whl
نصب پکیج tar.gz datim-2.0.1:
pip install datim-2.0.1.tar.gz