Parse shebangs so script-like files can be executed directly on Windows
On Windows, scripts are supposed to be registered with with their
interpreters and placed into PATHEXT, but that information might not
be available and the script still needs to be run. In that case, this
module is useful, because it looks up the required information to run the
script as best as possible.
## Status
| Travis CI (Ubuntu) | AppVeyor (Windows) | Coverage | PyPI | Licence |
|--------------------|--------------------|----------|------|---------|
|[](http://travis-ci.org/polysquare/python-parse-shebang)|[](https://ci.appveyor.com/project/smspillaz/python-parse-shebang)|[](http://coveralls.io/polysquare/python-parse-shebang)|[](https://pypi.python.org/pypi/parse-shebang)[](https://pypi.python.org/pypi/parse-shebang)|[](http://github.com/polysquare/python-parse-shebang)|
## API Usage
shebang = parseshebang.parse(file_to_parse)
subprocess.check_call(shebang + ["/my_script.py"])
`file_to_parse` may be either an open file object, which supports seeking,
or a file name. A list containing the shebang components is returned.
Metadata
Release files for parse-shebang 0.0.22
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| parse-shebang-0.0.22.tar.gz | 4.3 kB | Without provenance | Details for parse-shebang-0.0.22.tar.gz |
Release files / parse-shebang-0.0.22.tar.gz
| Download URL | parse-shebang-0.0.22.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79b83e0d3551a76975cb2110165a01bdd4ab18d220114e8492199adb8cdb8869
|
|
BLAKE2b-256 checksum How to use checksums |
89bd18b3be2cc15622f97853f25e547467e5ab9064521697cad8ba0677fcf345
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for parse-shebang 0.0.22
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.