Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Shellingham detects what shell the current Python executable is running in.

Usage

>>> import shellingham
>>> shellingham.detect_shell()
('bash', '/bin/bash')

detect pokes around the process’s running environment to determine what shell it is run in. It returns a 2-tuple:

  • The executable name (without extension on Windows), always lowercased.

  • The command used to run the shell.

ShellDetectionFailure is raised if detect fails to detect the surrounding shell.

Download files

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

Source Distribution

shellingham-1.0.0.dev0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shellingham-1.0.0.dev0-py2.py3-none-any.whl (6.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file shellingham-1.0.0.dev0.tar.gz.

File metadata

File hashes

Hashes for shellingham-1.0.0.dev0.tar.gz
Algorithm Hash digest
SHA256 fc23d62fd5b60214f9acb61ee1388c9a96cfd838e8dc9fa96720024dee0ab939
MD5 d7401906a7e4a6e15459c8a84e24777c
BLAKE2b-256 c4b7f6daad2f466385d95760088f9792770706b6cff96d1e3884b73a6bf18179

See more details on using hashes here.

File details

Details for the file shellingham-1.0.0.dev0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for shellingham-1.0.0.dev0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1cfd6172254bd2923cbdcc3a159cb59d0c1a774d11df6bf7f7eaa98647e8a680
MD5 7182c75eec7d72a4f81a0185f9269bc3
BLAKE2b-256 ba0e325fb7f306232706e9142151f9b041b5b8e26b1694573efd71ccdac05d8b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page