Skip to main content

rem-calc helps you to calculate rem values based on pixel values.

Project description

rem-calc

GitHub PyPI - Python Version PyPI

rem-calc helps you to calculate rem values based on pixel values. It has an interactive and calculate mode. The interactive mode is useful if you need to convert a lot of values, the calcualte mode should be used for single values.

Install

pip install rem-calc

Usage

Printing Help

$ rem-calc
Usage: rem-calc.py [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  calculate
  interactive

Single Rem Calculation

$ rem-calc calculate --base 16 --target 20
1.25rem

Single Pixel Calculation

$ rem-calc inverse --base 16 --rem 2.75
44px

Interactive Value Calculation

$ rem-calc interactive --base 16
Enter target pixel:
20
1.25rem
Enter target pixel:
40
2.5rem
Enter target pixel:
^C
Aborted!

Project details


Download files

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

Source Distribution

rem-calc-1.1.0.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file rem-calc-1.1.0.tar.gz.

File metadata

  • Download URL: rem-calc-1.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for rem-calc-1.1.0.tar.gz
Algorithm Hash digest
SHA256 cdfcda2747668e3b1e68b2898a70cee7fafb8cdedde36743dd73d36d42796d98
MD5 97b444adaf127717088651331af71c18
BLAKE2b-256 ed9dd407762dedd9d7124adec19cd8e24c99efd3901a48cd64ef0c518dd1d4e5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page