Skip to main content

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.1.0.tar.gz (5.1 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.1.0-py2.py3-none-any.whl (6.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file shellingham-1.1.0.tar.gz.

File metadata

  • Download URL: shellingham-1.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for shellingham-1.1.0.tar.gz
Algorithm Hash digest
SHA256 aac73de40225e3d63b4e8f7dc33adae2cae4d10ff0b09a32a0dc45151e34daa2
MD5 346897f4503d61989d8b22ea46692643
BLAKE2b-256 28442da09f0d1f93b69d64183029fb64ee882d29eb430364e189562e0a69e3fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for shellingham-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fed26c643942b686bf378b95457bc06310e8dfb08dfca8806e80fc93f403bd71
MD5 b25e119a50e3081156fabb96afd18a15
BLAKE2b-256 21a55b13e906824294d1a5f3cc91ed5789f7871f8e277f24830c2dd0c54a150e

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 Pingdom Monitoring Sentry Error logging StatusPage Status page