shebang(path) - get script shebang
Project description
Install
$ [sudo] pip install shebang
Usage
>>> from shebang import shebang
>>> shebang(path)
Examples
>>> shebang("path/to/file.py")
'/usr/bin/env python'
>>> shebang("path/to/file.txt")
None
shebang("/bin/test")
None
Sources
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-1.0.2.tar.gz
(1.3 kB
view details)
File details
Details for the file shebang-1.0.2.tar.gz.
File metadata
- Download URL: shebang-1.0.2.tar.gz
- Upload date:
- Size: 1.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4edc77d24f676dee16b0f581ea2eb6c3b5d04d9d82b5ed17683ff91286a4d902
|
|
| MD5 |
155b2dc44c5ef05784684170c0845fac
|
|
| BLAKE2b-256 |
1ff238c0d41af14069b16c2ee0f41d820df1ed0ddefb363129ee33d9ede11860
|