shebang(path) - get script shebang
Project description
Install
[sudo] pip install shebang
Usage
>>> from shebang import shebang
>>> shebang(path)
Example
>>> shebang("path/to/file.py")
'/usr/bin/env python'
>>> shebang("path/to/file.txt")
None
shebang("/bin/test")
None
Sources:
russianidiot.github.io/python/ - Python packages
russianidiot.github.io/cli/ - command line scripts
README.rst - generated with readmemako.py (python+ mako templates) and .README dotfiles
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
shebang-0.0.8.tar.gz
(6.5 kB
view hashes)