Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Paper size related tools

Project description

sources pypi build coverage documentation license

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 (with and height);
  • functions to convert sizes between units;
  • 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.


This module is compatible with both python 2 and 3.

See the end of list for a (quick and dirty) Debian package.

  • From sources:

  • From pip:

    pip install papersize
  • Quick and dirty Debian (and Ubuntu?) package

    This requires stdeb to be installed:

    python --command-packages=stdeb.command bdist_deb
    sudo dpkg -i deb_dist/python-papersize-<VERSION>_all.deb


  • Current python version:

    python test
  • All supported python versions (using tox):



The documentation is available on readthedocs. You can build it using:

cd doc && make html

Project details

Download files

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

Files for PaperSize, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size papersize-1.0.1-py2.py3-none-any.whl (8.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size papersize-1.0.1.tar.gz (27.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page