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.0.dev1.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.0.dev1-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file shellingham-1.0.0.dev1.tar.gz.

File metadata

File hashes

Hashes for shellingham-1.0.0.dev1.tar.gz
Algorithm Hash digest
SHA256 82aca7d3cd0547c388aee84a7c041411f56057e4e2bc0d3488f35d0487a39e4e
MD5 0128eceeaf13b31643515fccd9166aed
BLAKE2b-256 c950a0431be543250275fecee63453efce6c572aeafb63d28c47680a3b208b23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for shellingham-1.0.0.dev1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8faddab41e80d6ce88c0cf3022923390acf6dfa845c3aae4cedf2674a2adcbb7
MD5 735beac1d5561f8edcd9760b0f788fb8
BLAKE2b-256 b64254a8ce23299fc6775249ed1d73159359eef931c3d256d5ca2674ba09c7a4

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