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.1.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.1-py3-none-any.whl
(27.2 kB
view details)
File details
Details for the file um2dpi-0.3.1.tar.gz.
File metadata
- Download URL: um2dpi-0.3.1.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 |
d44305d8f437950f99eb95a4f8d70432da86e3afe2a1d18b5498a58668ad283d
|
|
| MD5 |
3ef3b247b9e1cb5861782a3f353f40a1
|
|
| BLAKE2b-256 |
c959c0b0022ed7080153ff71c5996e0ad1360c5aed159a4df9bd26cbd939c2b2
|
File details
Details for the file um2dpi-0.3.1-py3-none-any.whl.
File metadata
- Download URL: um2dpi-0.3.1-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 |
f8f2f1c2bc3e7a82734997a1436d7237cb1e197e89b1b3f8e640b5e2c8080410
|
|
| MD5 |
fdc7023714bb501cce358dd716a7bd87
|
|
| BLAKE2b-256 |
4ddaa0ae2ea2cd9a3bb4e3415b9c13a57ea28a9d410873dc572ab9a6ecd19e9e
|