Comande line interfaces

dns-ipv6-prefix.py

Get the ipv6 prefix from a DNS name.

usage: dns-ipv6-prefix.py [-h] [-V] dnsname

Positional Arguments

dnsname

The DNS name, e. g. josef-friedrich.de

Named Arguments

-V, --version

show program’s version number and exit

extract-pdftext.py

usage: extract-pdftext.py [-h] [-c] [-v] [-V] file

Positional Arguments

file

A PDF file containing text

Named Arguments

-c, --colorize

Colorize the terminal output.

Default: False

-v, --verbose

Make the command line output more verbose.

Default: False

-V, --version

show program’s version number and exit

find-dupes-by-size.py

Find duplicate files by size.

usage: find-dupes-by-size.py [-h] [-V] path

Positional Arguments

path

A directory to recursively search for duplicate files.

Named Arguments

-V, --version

show program’s version number and exit

image-into-pdf.py

Add or replace one page in a PDF file with an image file of the same page size.

usage: image-into-pdf.py [-h] [-c] [-v] [-V]
                         {add,ad,a,convert,cv,c,replace,re,r} ...

Positional Arguments

subcmd_args

Possible choices: add, ad, a, convert, cv, c, replace, re, r

Subcmd_args

Named Arguments

-c, --colorize

Colorize the terminal output.

Default: False

-v, --verbose

Make the cmd_args line output more verbose.

Default: False

-V, --version

show program’s version number and exit

Sub-commands

add (ad, a)

Add one image to an PDF file.

image-into-pdf.py add [-h] [-a AFTER | -b BEFORE | -f | -l] image pdf
Positional Arguments
image

A image (or a PDF) file to add to the PDF page.

pdf

The PDF file.

Named Arguments
-a, --after

Place image after page X.

-b, --before

Place image before page X.

-f, --first

Place the image to the first position.

Default: False

-l, --last

Place the image to the last position.

Default: False

convert (cv, c)

Convert a image file into a PDF file with the same dimensions.

image-into-pdf.py convert [-h] image pdf
Positional Arguments
image

The image file to convert to the PDF format.

pdf

The main PDF file (to get the dimensions).

replace (re, r)

Replace one page in a PDF file with an image (or an PDF) file.

image-into-pdf.py replace [-h] pdf number image
Positional Arguments
pdf

The main PDF file

number

The page number of the PDF page to replace.

image

A image (or a PDF) file to replace the PDF page with.

list-files.py

This is a script to demonstrate the list_files() function in this file.

list-files.py a.txt list-files.py a.txt b.txt c.txt list-files.py (asterisk).txt list-files.py “(asterisk).txt” list-files.py dir/ list-files.py “dir/(asterisk).txt”

usage: list-files.py [-h] [-V] input_files [input_files ...]

Positional Arguments

input_files

Examples for this arguments are: “a.txt”, “a.txt b.txt c.txt”, “(asterisk).txt”, “”(asterisk).txt””, “dir/”, “”dir/(asterisk).txt””

Named Arguments

-V, --version

show program’s version number and exit

mac-to-eui64.py

Convert mac addresses to EUI64 ipv6 addresses.

usage: mac-to-eui64.py [-h] [-V] mac prefix

Positional Arguments

mac

The mac address.

prefix

The ipv6 /64 prefix.

Named Arguments

-V, --version

show program’s version number and exit