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.3.tar.gz (5.7 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.3-py2.py3-none-any.whl (10.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for shellingham-1.2.3.tar.gz
Algorithm Hash digest
SHA256 016d290f346b104ac0249c339be2ade588dc98d10da865f56befd92781a8b362
MD5 a57bd8bc23d62444c7b6e433017f6407
BLAKE2b-256 488bb0a232833e6f4a1292c782aac900f28e7075183b989e345bed0078238e2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for shellingham-1.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9732a7a6f31a1e89501e8b44ce45fc745708b4c63fabbeb95d599c96c33790c9
MD5 f29bad5a5e0317333393f4d23df52cd0
BLAKE2b-256 163d7afff3b5629e58f19c00988e616c2e3697219456e106d3cb827129e528c0

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