Skip to main content

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.exe on NT, /bin/sh on 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

get_unicode_shell-0.1.0a0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

get_unicode_shell-0.1.0a0-py2.py3-none-any.whl (3.2 kB view details)

Uploaded Python 2Python 3

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

Hashes for get_unicode_shell-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 26ff0bd469f0faf87a816e4df618a7f4b3c39ae08771f33684c157a7f85b8568
MD5 5af92034dca1cc4be5ca5c8d46ec684e
BLAKE2b-256 d3b7e39cb5b4aea75bac535012fb13fb2ddbfb6275243f991a59db8468b26d63

See more details on using hashes here.

File details

Details for the file get_unicode_shell-0.1.0a0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for get_unicode_shell-0.1.0a0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 597f6656dc42b2aca8a5c2c5badfddabff582ee51def92f7ce0fb1ab8994b392
MD5 07817bd80e13842847cbfcceb66c51a0
BLAKE2b-256 2f1120d5ce42e6cff43a8cf2dff6f7da3fe7ac8d90eef4ea354d8e8dbaa48de2

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