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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shellingham-1.0.0.dev1.tar.gz.
File metadata
- Download URL: shellingham-1.0.0.dev1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82aca7d3cd0547c388aee84a7c041411f56057e4e2bc0d3488f35d0487a39e4e
|
|
| MD5 |
0128eceeaf13b31643515fccd9166aed
|
|
| BLAKE2b-256 |
c950a0431be543250275fecee63453efce6c572aeafb63d28c47680a3b208b23
|
File details
Details for the file shellingham-1.0.0.dev1-py2.py3-none-any.whl.
File metadata
- Download URL: shellingham-1.0.0.dev1-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8faddab41e80d6ce88c0cf3022923390acf6dfa845c3aae4cedf2674a2adcbb7
|
|
| MD5 |
735beac1d5561f8edcd9760b0f788fb8
|
|
| BLAKE2b-256 |
b64254a8ce23299fc6775249ed1d73159359eef931c3d256d5ca2674ba09c7a4
|