A cross-platform utility to get the current SHELL as a Unicode string.
Project description
get-unicode-shell
A cross-platform utility to get the current SHELL as a Unicode string.
Features
- Gets the current SHELL based on the operating system and environment variables.
- Handles both NT (
COMSPEC) and POSIX (SHELL) conventions. - Provides reliable fallbacks (
cmd.exeon NT,/bin/shon POSIX). - Fully compatible with Python 2 and 3.
Usage
# coding=utf-8
from __future__ import print_function
from get_unicode_shell import get_unicode_shell
print(u'Detected shell:', get_unicode_shell())
Installation
pip install get-unicode-shell
Contributing
Contributions are welcome! Please submit pull requests or open issues on the GitHub repository.
License
This project is licensed under the MIT License.
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 get_unicode_shell-0.1.0a0.tar.gz.
File metadata
- Download URL: get_unicode_shell-0.1.0a0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26ff0bd469f0faf87a816e4df618a7f4b3c39ae08771f33684c157a7f85b8568
|
|
| MD5 |
5af92034dca1cc4be5ca5c8d46ec684e
|
|
| BLAKE2b-256 |
d3b7e39cb5b4aea75bac535012fb13fb2ddbfb6275243f991a59db8468b26d63
|
File details
Details for the file get_unicode_shell-0.1.0a0-py2.py3-none-any.whl.
File metadata
- Download URL: get_unicode_shell-0.1.0a0-py2.py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
597f6656dc42b2aca8a5c2c5badfddabff582ee51def92f7ce0fb1ab8994b392
|
|
| MD5 |
07817bd80e13842847cbfcceb66c51a0
|
|
| BLAKE2b-256 |
2f1120d5ce42e6cff43a8cf2dff6f7da3fe7ac8d90eef4ea354d8e8dbaa48de2
|