Skip to content

scottmmjackson/python_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

python_tools

A set of python tools that I've made to scratch itches.

is_pdf.py

Now with the ability to be imported as a module!

>>> import is_pdf
>>> is_pdf.isPdfOpen("/Users/scottmmjackson/14-1799.Opinion.5-19-2015.1.PDF")
True
>>> is_pdf.isPdfOpen("/Users/scottmmjackson/14-1799.Opinion.5-19-2015.1.html")
False

is_pdf.isPdf(filehandle) - takes a filehandle and returns true or false

is_pdf.isPdfOpen(filename) - takes a fully qualified file name and passes the return value from isPdf

For command-line usage, pass --help to is_pdf.py.

About

Some random python tools that may help you, or not.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages