Skip to content

Commit 058f414

Browse files
committed
Added new pagesizes module, based on reportlab
1 parent 1de981b commit 058f414

File tree

3 files changed

+409
-12
lines changed

3 files changed

+409
-12
lines changed

doc-source/docs.rst

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
.. contents:: Table of Contents
66

77
.. automodule:: domdf_python_tools
8-
:members:
8+
:members:
9+
:undoc-members:
10+
911

1012
==================================
1113
:mod:`domdf_python_tools.dates`
@@ -16,38 +18,51 @@
1618
.. note:: This module requires the `pytz <https://pypi.org/project/pytz/>`_ package to be installed.
1719

1820
.. automodule:: domdf_python_tools.dates
19-
:members:
21+
:members:
22+
:undoc-members:
23+
2024

2125
==================================
2226
:mod:`domdf_python_tools.doctools`
2327
==================================
2428

25-
2629
.. automodule:: domdf_python_tools.doctools
27-
:members:
30+
:members:
31+
:undoc-members:
32+
2833

2934
==================================
30-
:mod:`domdf_python_tools.paths`
35+
:mod:`domdf_python_tools.pagesizes`
3136
==================================
3237

38+
.. automodule:: domdf_python_tools.pagesizes
39+
:members:
40+
:undoc-members:
41+
42+
43+
==================================
44+
:mod:`domdf_python_tools.paths`
45+
==================================
3346

3447
.. automodule:: domdf_python_tools.paths
35-
:members:
48+
:members:
49+
:undoc-members:
50+
3651

3752
===================================
3853
:mod:`domdf_python_tools.terminal`
3954
===================================
4055

41-
4256
.. automodule:: domdf_python_tools.terminal
43-
:members:
57+
:members:
58+
:undoc-members:
59+
4460

4561
==================================
4662
:mod:`domdf_python_tools.utils`
4763
==================================
4864

49-
5065
.. automodule:: domdf_python_tools.utils
51-
:members:
52-
66+
:members:
67+
:undoc-members:
5368

domdf_python_tools/__init__.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@
1414
# Copyright © 2012 atzz
1515
# Licensed under CC-BY-SA
1616
#
17+
# pagesizes.py
18+
# Based on reportlab.lib.pagesizes and reportlab.lib.units
19+
# www.reportlab.co.uk
20+
# Copyright ReportLab Europe Ltd. 2000-2017
21+
# Copyright (c) 2000-2018, ReportLab Inc.
22+
# All rights reserved.
23+
# Licensed under the BSD License
24+
#
25+
# Includes data from en.wikipedia.org.
26+
# Licensed under the Creative Commons Attribution-ShareAlike License
27+
#
1728
# Parts of the docstrings based on the Python 3.8.2 Documentation
1829
# Licensed under the Python Software Foundation License Version 2.
1930
# Copyright © 2001-2020 Python Software Foundation. All rights reserved.
@@ -38,7 +49,7 @@
3849
#
3950

4051
from domdf_python_tools.utils import *
41-
from domdf_python_tools import paths, terminal, utils, doctools
52+
from domdf_python_tools import paths, terminal, utils, doctools, pagesizes
4253

4354
__all__ = ["paths", "terminal", "utils", "dates"]
4455

0 commit comments

Comments
 (0)