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.8.tar.gz (6.6 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.8-py2.py3-none-any.whl (11.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: shellingham-1.2.8.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for shellingham-1.2.8.tar.gz
Algorithm Hash digest
SHA256 56e6c7f043661a82b276c241c8e62da62cdf710437164cdef75b3f3ac50fb384
MD5 d4804312d3802bcc2cc5fb7c8dc27057
BLAKE2b-256 0447c3f0b5fce44827d011f7f4b8831dd20984a228d7a7f46d4d45f1aaa6fd90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shellingham-1.2.8-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for shellingham-1.2.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f24a5a01e6c81d04e252fa2ebaa37710af27e7ec9b54692bcddb9303f899101b
MD5 a6ece8f07a72dc5f30aecb8559ac1e33
BLAKE2b-256 74b736cdb13e9ecf1e9584cd78a47a1853831cf8817da3438aeec550cd83619c

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