rename_file_convert_pdf.main()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 7
nop 0
dl 0
loc 11
rs 10
c 0
b 0
f 0
1
"""Example import modules and use ebook_homebrew
2
"""
3
4
from ebook_homebrew.convert import Image2PDF
5
from ebook_homebrew.rename import ChangeFilename
6
7
8
def main():
9
    """Example import modules and use ebook_homebrew
10
    """
11
    rename = ChangeFilename(directory_path="example_file",
12
                            digits="3",
13
                            extension="png")
14
15
    rename.filename_to_digit_number()
16
17
    convert = Image2PDF(digits="3", extension="png")
18
    convert.make_pdf(filename="examples.pdf")
19
20
21
if __name__ == '__main__':
22
    main()
23