Skip to main content

shebang(path) - get script shebang

Project description

https://img.shields.io/pypi/v/shebang.svg https://img.shields.io/pypi/pyversions/shebang.svg https://img.shields.io/pypi/dm/shebang.svg

Install

github.com: pip install git+git://github.com/russianidiot/shebang.py.git

pypi.python.org: pip install shebang

download: [ -e requirements.txt ] && pip install -r requirements.txt; python setup.py install

Usage

shebang(path) function

from shebang import *

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

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

shebang("/bin/test")
None

Feedback

github_issues - Github Issues

gitter - Chat with me (english/russian)

russianidiot.github.io/python/ - my Python packages

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page