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.2.0.tar.gz (5.2 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.0-py2.py3-none-any.whl (6.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for shellingham-1.2.0.tar.gz
Algorithm Hash digest
SHA256 31b921d636bdc474bacb216ef9921a5da81e28a98888f4ae369fab2164e9d405
MD5 3c198abd8ee40e1274d7a1c9683f5604
BLAKE2b-256 137222a1153ddac0fb5feba8c64b1dd471bfeeba01dcb257a72a94b7b64521f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for shellingham-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3c0e74e66542ad6a0848a79573d59dd4a21afb6fac7449b2cccf778068e1e5a1
MD5 ba15bd2dff56f7c95ce6bddb372e5eac
BLAKE2b-256 105c29b7ba39a86dfd2c7b4522ae21a6d43a939454fb110091ebff77fb123e63

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