Skip to main content

Parse shebangs and return their components.

Project description

# Parse Shebang

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 |

## API Usage

shebang = parseshebang.parse(file_to_parse)
subprocess.check_call(shebang + ["/"])

`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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
parse-shebang-0.0.22.tar.gz (4.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page