Skip to main content

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!

Metadata

Release files for rem-calc 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rem-calc 1.1.0
File Size Uploaded
rem-calc-1.1.0.tar.gz 2.7 kB Details

Release files / rem-calc-1.1.0.tar.gz

Download URL rem-calc-1.1.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cdfcda2747668e3b1e68b2898a70cee7fafb8cdedde36743dd73d36d42796d98
BLAKE2b-256 checksum
How to use checksums
ed9dd407762dedd9d7124adec19cd8e24c99efd3901a48cd64ef0c518dd1d4e5
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page