Determine whether the current Python interpreter is running on a POSIX-like or Windows NT platform---even when `os.name` is `java` (Jython).
Project description
posix-or-nt
Determine whether the current Python interpreter is running on a POSIX-like or Windows NT platform---even when os.name is java (Jython).
Features
- Single import:
from posix_or_nt import posix_or_nt - Returns
'posix'or'nt'across CPython, PyPy, and Jython. - Supports Python 2+
- Zero dependencies
Installation
pip install posix-or-nt
Quickstart
>>> from posix_or_nt import posix_or_nt
>>> posix_or_nt()
'posix' # or 'nt'
Contributing
Contributions are welcome! Please open an issue or submit a pull request for any improvements.
License
MIT License. See LICENSE for more information.
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 posix_or_nt-0.1.0a0.tar.gz.
File metadata
- Download URL: posix_or_nt-0.1.0a0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
284e594e8d85961d3f5dee23efa6c5fb5ebefd2629d4e82d9d344a530245cf47
|
|
| MD5 |
badae6219c3990852b78f78ab8a359bb
|
|
| BLAKE2b-256 |
1af15b9f3ad8ab82c7792176ce8d979175325e21644b4d40717d1225c4b44068
|
File details
Details for the file posix_or_nt-0.1.0a0-py2.py3-none-any.whl.
File metadata
- Download URL: posix_or_nt-0.1.0a0-py2.py3-none-any.whl
- Upload date:
- Size: 3.0 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 |
792b14e7ce741554328c50a1768363a323f24ab925c944f64c52e1c92e965912
|
|
| MD5 |
500825397432c63c94b693668f3c289f
|
|
| BLAKE2b-256 |
3229a9c39c8e20826e21d41b98588340ac453d8edd7e625951aed1ed7c62bbde
|