Skip to main content

Tool to Detect Surrounding Shell

Project description

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.

Project details


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

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for shellingham-1.0.1.tar.gz
Algorithm Hash digest
SHA256 430f92176a4045a89a8c6438c8be1154887cf594275ae7f63dab618f43acf747
MD5 25f2921b121e3f5279ca3eb996382660
BLAKE2b-256 f15a8233bc3792330f0af3a3c63dc55feba0588559d34924d99dafae9a8c4983

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for shellingham-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fefee67ccd57e43bcb1488b9d79e544d9b8c8f1687bba183a698b87fe9447d10
MD5 1ee9493404486625f39a24a425a79396
BLAKE2b-256 9ed1cf4819b651f4466a21fb3b52bc4c33174352c934aef3043f66d2150bb5a4

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