Paper size related tools
Project description
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 setup.py install
From pip:
pip install papersize
Quick and dirty Debian (and Ubuntu?) package
This requires stdeb to be installed:
python3 setup.py --command-packages=stdeb.command bdist_deb sudo dpkg -i deb_dist/python-papersize-<VERSION>_all.deb
Test
Current python version:
python3 setup.py test
All supported python versions (using tox):
tox
Documentation
The documentation is available on readthedocs. You can build it using:
cd doc && make html
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
Built Distribution
Hashes for papersize-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a76d2188502518ffb2c06a0f2f7b5aa43265e8e692c9edd8eafd4a9eeac6d8f |
|
MD5 | 77dd6d032df4996cbf07f7b25ef75c27 |
|
BLAKE2b-256 | 6e6d5b56d359934a704545aa83d3916aa25a24fbb75494ec488dff25c5f112ff |