ScreenCalc
A simple screen size calculator to convert screen measurement units at
various
densities
Getting Started
Install:
$ pip install ScreenCalc
Use it:
$ sc 100px@hdpi 100dp ... 100.0px@240dpi +-----------+---------+----------+---------+---------+----------+------+ | density | dp | px | sp | mm | in | pt | |-----------+---------+----------+---------+---------+----------+------| | ldpi | 66.6667 | 50 | 66.6667 | 10.5833 | 0.416667 | 30 | | mdpi | 66.6667 | 66.6667 | 66.6667 | 10.5833 | 0.416667 | 30 | | tvdpi | 66.6667 | 88.75 | 66.6667 | 10.5833 | 0.416667 | 30 | | hdpi | 66.6667 | 100 | 66.6667 | 10.5833 | 0.416667 | 30 | | xhdpi | 66.6667 | 133.333 | 66.6667 | 10.5833 | 0.416667 | 30 | | xxhdpi | 66.6667 | 200 | 66.6667 | 10.5833 | 0.416667 | 30 | | xxxhdpi | 66.6667 | 266.667 | 66.6667 | 10.5833 | 0.416667 | 30 | +-----------+---------+----------+---------+---------+----------+------+ ...
Known measurement units are: dp, px, sp, mm, in,
and pt. Screen
density can be one of the named values (ldpi, mdpi, tvdpi,
hdpi,
xhdpi, xxhdpi, or xxxhdpi), or a decimal value (e.g.
100).
Changelog
0.1.0 (2015/04/10)
Fix pt unit conversions
Add unit tests
0.0.1 (2015/04/09)
Initial (mostly) functional release
Release files for ScreenCalc 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ScreenCalc-0.1.0.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ScreenCalc-0.1.0-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 14.7 kB
Release files / ScreenCalc-0.1.0.tar.gz
| Download URL | ScreenCalc-0.1.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2194dd9aeebea02c8f8cc905891c661f552036394e10dd0c36c72138cca76844
|
|
BLAKE2b-256 checksum How to use checksums |
ea7237053f702defad57fc68e11caa47191559bbd1e8a48e95b157a0f0f62f4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ScreenCalc-0.1.0-py2-none-any.whl
| Download URL | ScreenCalc-0.1.0-py2-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
34a0bc2cd7b5071b8adc4935f3c08f1603d247ca7123023825c3a75836efdbca
|
|
BLAKE2b-256 checksum How to use checksums |
4ebf387bf39c07035db2c611d895d434dbea2ff99cfca9ee213c28555a069fa3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |