Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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
Release History

Release History

This version
History Node

0.1.0

History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ScreenCalc-0.1.0-py2-none-any.whl (8.3 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Apr 10, 2015
ScreenCalc-0.1.0.tar.gz (6.4 kB) Copy SHA256 Checksum SHA256 Source Apr 10, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting