get script shebang
Project description
Install
$ [sudo] pip install shebang
Functions
function | description |
---|---|
shebang.get(path) |
return script shebang |
shebang.shebang(path) |
return script shebang. deprecated |
CLI
usage | description |
---|---|
python -m shebang path |
print script shebang |
Examples
>>> import shebang
>>> shebang.get("path/to/file.py")
'/usr/bin/env python'
>>> shebang.get("path/to/file.txt")
None
>>> shebang.get("/bin/ls")
None
$ python -m shebang file.py
/usr/bin/env python
readme-md - README.md generator
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-2018.11.20.tar.gz
(1.5 kB
view hashes)
Built Distribution
Close
Hashes for shebang-2018.11.20-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bf5d7730e6d9ee8c8e81ebc3f884a63572a6409b8ae5330b9f1a3c2a2484fba |
|
MD5 | 86f184be972420795f6010b532b4c082 |
|
BLAKE2b-256 | e5998cdee0050b2499101176a0da6d1343814d1e8a08fb569823003bc09bf7d6 |