A collection of my Python scripts. Maybe they are useful for someone else.
Project description
jfscripts
A collection of my personal Python scripts.
dns-ipv6-prefix.py
usage: dns-ipv6-prefix.py [-h] dnsname
Get the ipv6 prefix from a DNS name.
positional arguments:
dnsname The DNS name, e. g. josef-friedrich.de
optional arguments:
-h, --help show this help message and exit
extract-pdftext.py
usage: extract-pdftext.py [-h] [-c] [-v] file
positional arguments:
file A PDF file containing text
optional arguments:
-h, --help show this help message and exit
-c, --colorize Colorize the terminal output.
-v, --verbose Make the command line output more verbose.
find-dupes-by-size.py
usage: find-dupes-by-size.py [-h] path
Find duplicate files by size.
positional arguments:
path A directory to recursively search for duplicate files.
optional arguments:
-h, --help show this help message and exit
list-files.py
usage: list-files.py [-h] input_files [input_files ...]
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 *.txt
list-files.py "*.txt"
list-files.py dir/
list-files.py "dir/*.txt"
positional arguments:
input_files files to process.
optional arguments:
-h, --help show this help message and exit
mac-to-eui64.py
usage: mac-to-eui64.py [-h] mac prefix
Convert mac addresses to EUI64 ipv6 addresses.
positional arguments:
mac The mac address.
prefix The ipv6 /64 prefix.
optional arguments:
-h, --help show this help message and exit
magick-imslp.py
usage: magick-imslp.py [-h] [-b] [-B] [-c] [-e] [-f] [-j] [-n] [-p] [-r] [-S]
[-t THRESHOLD] [-v]
input_files [input_files ...]
A wrapper script for imagemagick to process image files suitable for imslp.org
(International Music Score Library Project). See also
http://imslp.org/wiki/IMSLP:Musiknoten_beisteuern
positional arguments:
input_files files to process.
optional arguments:
-h, --help show this help message and exit
-b, --backup Backup original images (add _backup.ext to filename).
-B, --border Frame the images with a white border.
-c, --colorize Colorize the terminal output.
-e, --enlighten-border
Enlighten the border.
-f, --force Overwrite the target file even if it exists and it
seems to be already converted.
-j, --join Join single paged PDF files to one PDF file. This
option takes only effect with the option --pdf.
-n, --no-multiprocessing
Disable multiprocessing.
-p, --pdf Generate a PDF file using CCITT Group 4 compression.
-r, --resize Resize 200 percent.
-S, --threshold-series
Convert the samge image with different threshold
values to find the best threshold value.
-t THRESHOLD, --threshold THRESHOLD
threshold, default 50 percent.
-v, --verbose Make the command line output more verbose.
replace-pdfpage.py
usage: replace-pdfpage.py [-h] pdf number image
Replace one page in a PDF file with an image file.
positional arguments:
pdf The PDF file
number The page number of the PDF page to replace
image The image file to replace the PDF page with
optional arguments:
-h, --help show this help message and exit
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jfscripts-0.2.4.tar.gz
(25.9 kB
view hashes)