Convert drop-spacing in micrometers to DPI.
Project description
um2dpi
Python package to convert drop-spacing in micrometres to dots per inch (DPI).
Index
Installation
Install the package from PyPI:
pip install um2dpi
Or install the package from source:
gh repo clone fabio-terranova/um2dpi
cd um2dpi
pip install .
Usage
um2dpi [-r] <value> [value ...]
Where:
- -r will convert from DPI to micrometres.
Examples
um2dpi 10 20 30
Will output:
10.0 μm: 2540.00 dpi
20.0 μm: 1270.00 dpi
30.0 μm: 846.67 dpi
um2dpi -r 2540 1270 846.67
Will output:
2540.0 dpi: 10.00 μm
1270.0 dpi: 20.00 μm
846.67 dpi: 30.00 μm
Development
Using Hatch and pre-commit for development.
Clone
gh repo clone fabio-terranova/um2dpi
cd um2dpi
hatch run pre-commit install
Run tests
hatch test --cover
Build
hatch build
Publish
hatch publish
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
um2dpi-0.3.0.tar.gz
(28.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
um2dpi-0.3.0-py3-none-any.whl
(27.2 kB
view details)
File details
Details for the file um2dpi-0.3.0.tar.gz.
File metadata
- Download URL: um2dpi-0.3.0.tar.gz
- Upload date:
- Size: 28.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de0167afc08bf4f824e256c636dffc7bf6f51dacf86a9152b53415429198baaa
|
|
| MD5 |
aa10e5fb63c27ef5cfe9b18d67299f24
|
|
| BLAKE2b-256 |
6b1834538ce0bedfafaa591d22269a87ab41987b4873d299d1d4ae12d30d5025
|
File details
Details for the file um2dpi-0.3.0-py3-none-any.whl.
File metadata
- Download URL: um2dpi-0.3.0-py3-none-any.whl
- Upload date:
- Size: 27.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2d33669386226463e44c498b327094d50d26c1bf06da7f6fab50aa6b3c78298
|
|
| MD5 |
d5163ac7eb8e0d1d6311337a760bbd1a
|
|
| BLAKE2b-256 |
a4edf9b4629ab8421189f1eba789f3096502fa7a0a6009aa51bf8d6f3a4fb704
|