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_shell 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_shell 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.4.tar.gz (6.0 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.4-py2.py3-none-any.whl (10.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: shellingham-1.2.4.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4

File hashes

Hashes for shellingham-1.2.4.tar.gz
Algorithm Hash digest
SHA256 c09c563a2e185ec3d64e43c286dbba3150fc182d96cd29ff5b002f3d3c3f5076
MD5 f8cb01d749c688c83bf3d8d2af6c9584
BLAKE2b-256 8def6785382dc08c3758971bb9dd00b938f2177e3c21d28cbbfd328a2f277db2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shellingham-1.2.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4

File hashes

Hashes for shellingham-1.2.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 869c760320b6d4cd88ac5bdc2a6a40c042fb388c5fcd056f8a07a82d9859cc40
MD5 73f36f3b0f36cd4de200098834d9df9d
BLAKE2b-256 1b24676849786c22fcc2cdf96dd8f7f3b52d5de47a5a1bc261605b5ce1763c72

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