Skip to main content

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.

Install

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 setup.py --command-packages=stdeb.command bdist_deb
    sudo dpkg -i deb_dist/python-papersize-<VERSION>_all.deb

Test

  • Current python version:

    python 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


Download files

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

Source Distribution

papersize-1.0.1.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

papersize-1.0.1-py2.py3-none-any.whl (8.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file papersize-1.0.1.tar.gz.

File metadata

  • Download URL: papersize-1.0.1.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for papersize-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8da3f988c8d8e08cac5f5f4f955ecbd19bac1a0cfed05eb9fd97a69cd91f4224
MD5 2ba00b95ebd5b43075c27fceb826a439
BLAKE2b-256 699d9c598ad1e10b2b3545b980ba7ab525ba8759ea9b6fb4bcd1f5a2b5b53ae5

See more details on using hashes here.

File details

Details for the file papersize-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for papersize-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ad8a5971dc57ff86ccbd721ea465b76c28c2dcee34e9e30e904a846e9a8fb389
MD5 26c7687babb05e65abc61e757a702690
BLAKE2b-256 2d887c61075aac19954b035d1cf7143499741fb43b0178c10c47edc5a12854ba

See more details on using hashes here.

Supported by

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