ScreenCalc is a Python 3 package template.
Project description
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
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
ScreenCalc-0.1.0.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file ScreenCalc-0.1.0.tar.gz
.
File metadata
- Download URL: ScreenCalc-0.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2194dd9aeebea02c8f8cc905891c661f552036394e10dd0c36c72138cca76844 |
|
MD5 | a5c40ecb58f759d1fdf9bf9477559840 |
|
BLAKE2b-256 | ea7237053f702defad57fc68e11caa47191559bbd1e8a48e95b157a0f0f62f4e |
File details
Details for the file ScreenCalc-0.1.0-py2-none-any.whl
.
File metadata
- Download URL: ScreenCalc-0.1.0-py2-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34a0bc2cd7b5071b8adc4935f3c08f1603d247ca7123023825c3a75836efdbca |
|
MD5 | ff7d71497efa1d6316f2669a5ff63e4b |
|
BLAKE2b-256 | 4ebf387bf39c07035db2c611d895d434dbea2ff99cfca9ee213c28555a069fa3 |