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.1.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.1-py2.py3-none-any.whl (8.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for shellingham-1.2.1.tar.gz
Algorithm Hash digest
SHA256 cc2510296608d2619cccb542f68dad71dcbfb3f57d9077edc42aa82a0ef9dbaf
MD5 7bb6a3d58a0d253656cbaa23c1c7e86c
BLAKE2b-256 df8a8a5ee13df37b8078430b4f72474c09fa73c01babcb898d993c3becf35652

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for shellingham-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 16414b19e2b393ca9ab89ed0561ff8b83ff89f1e7bd74b4c0dddbe7b1841fcf0
MD5 d9fd810c3e740a9aee1d7d3747bd7d1d
BLAKE2b-256 63159a5dc79aff711e07a4c22f9e021fbb4a6b5cd50528d7a993cff03ed256dd

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