Skip to main content

get script shebang

Project description


$ [sudo] pip install shebang


function __doc__
shebang.get(path) return script shebang
shebang.shebang(path) return script shebang. deprecated

Executable modules

usage __doc__
python -m shebang path print script shebang


>>> import shebang

>>> shebang.get("path/to/")
'/usr/bin/env python'

>>> shebang.get("path/to/file.txt")

>>> shebang.get("/bin/ls")
$ python -m shebang
/usr/bin/env python


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for shebang, version 2019.4.13
Filename, size File type Python version Upload date Hashes
Filename, size shebang-2019.4.13.tar.gz (1.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page