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.2.2.tar.gz (5.5 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.2.2-py2.py3-none-any.whl (9.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for shellingham-1.2.2.tar.gz
Algorithm Hash digest
SHA256 4d2a4fdfb47876a6c0ba75465312a27bb4f6c6a5e50f449933a69efa90b51ecb
MD5 90694dd823f404563a8f90edc3267b95
BLAKE2b-256 515951656272521858c74488dbf4e0b9190ee021a827263ec80d810592b13a74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for shellingham-1.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0f71e88622d1ff0260c674c779c7dedd9a2375f24285884541b80a4fbd8f7301
MD5 ae0afb2344b4c201c9ce20edd7d6fd7a
BLAKE2b-256 aae05a171a52000bcb73fca7ffc77e21d4b920e86059d057a648a0ea13eb2700

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