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.6.tar.gz (6.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.2.6-py2.py3-none-any.whl (9.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: shellingham-1.2.6.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for shellingham-1.2.6.tar.gz
Algorithm Hash digest
SHA256 58e4a0f5fecd7b73e097f2ac5d924e81cc1161e2ce760d5aed07ee2f87923074
MD5 064e0293e2155ed5fbb2609cfbd5c171
BLAKE2b-256 df26e9f82bc4d1e9be35e6bdfcaf76c40be138e9a62997c73cedd0ab7a4e2a5c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for shellingham-1.2.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 52e8047d76abf52edbdf1ffed8cd46cab4dbef4f71a1baa1085afdaa272cef83
MD5 302d88e09b3e6ee158b9fbd190a655c7
BLAKE2b-256 8055b0e4db95e62cc1fbe00b0ed87507ebfdc559fac6a0dbb36408223df6dc07

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