papersize 📏 Paper size related tools
This module provides tools to manipulate paper sizes, that is:
- a dictionary of several named standard names (e.g. A4, letter) , with their respective sizes (width and height);
- functions to convert sizes from one unit (e.g. inches) to another (e.g. centimeters);
- functions to manipulate paper orientation (portrait or landscape);
- tools to parse paper sizes, so that you do not have to worry about the format of paper sizes provided by your user, it being
"a4"or"21cm x 29.7cm".
What's new?
See changelog.
Install
See the end of list for a (quick and dirty) Debian package.
-
From sources:
-
Download: https://pypi.python.org/pypi/papersize
-
Install (in a
virtualenv, if you do not want to mess with your distribution installation system):python3 -m pip install .
-
-
From pip:
pip install papersize
Test
-
Current python version:
python3 -m unittest -
All supported python versions (using tox):
tox
Documentation
The documentation is available on readthedocs. You can build it using:
cd doc && make html
Release files for papersize 1.7.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 | |
|---|---|---|---|
| papersize-1.7.0.tar.gz | 78.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| papersize-1.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 106.4 kB
Release files / papersize-1.7.0.tar.gz
| Download URL | papersize-1.7.0.tar.gz |
|---|---|
| Size | 78.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7e5c190f3acd9c950a1b6cf61d0be9927792ce643c7652457d2b16ead06c537
|
|
BLAKE2b-256 checksum How to use checksums |
9e3015108f061a0948f8b16bec950594941e146240267db5858d64ad742cf81a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Release files / papersize-1.7.0-py3-none-any.whl
| Download URL | papersize-1.7.0-py3-none-any.whl |
|---|---|
| Size | 28.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4429c0c1e3bba1be9d90abc22678e39844c6ad08328dbdd7342004920fbde7e2
|
|
BLAKE2b-256 checksum How to use checksums |
b07887ac7f0481427104edf7d4bf0b62d5663fcae8abff9bc5180c14db12c622
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|