Skip to main content

Paper size related tools

Project description

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:

  • 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

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.7.0.tar.gz (78.1 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.7.0-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: papersize-1.7.0.tar.gz
  • Upload date:
  • Size: 78.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for papersize-1.7.0.tar.gz
Algorithm Hash digest
SHA256 e7e5c190f3acd9c950a1b6cf61d0be9927792ce643c7652457d2b16ead06c537
MD5 b8557555473f1a7c06450bb1de75c435
BLAKE2b-256 9e3015108f061a0948f8b16bec950594941e146240267db5858d64ad742cf81a

See more details on using hashes here.

File details

Details for the file papersize-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: papersize-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for papersize-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4429c0c1e3bba1be9d90abc22678e39844c6ad08328dbdd7342004920fbde7e2
MD5 893acd9faad99b02b1ea1e909ab59ca2
BLAKE2b-256 b07887ac7f0481427104edf7d4bf0b62d5663fcae8abff9bc5180c14db12c622

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