Pre-release
This release is a pre-release and may not be stable for production use.
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.
Release files for posix-or-nt 0.1.0a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| posix_or_nt-0.1.0a0.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| posix_or_nt-0.1.0a0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 5.6 kB
Release files / posix_or_nt-0.1.0a0.tar.gz
| Download URL | posix_or_nt-0.1.0a0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
284e594e8d85961d3f5dee23efa6c5fb5ebefd2629d4e82d9d344a530245cf47
|
|
BLAKE2b-256 checksum How to use checksums |
1af15b9f3ad8ab82c7792176ce8d979175325e21644b4d40717d1225c4b44068
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|
Release files / posix_or_nt-0.1.0a0-py2.py3-none-any.whl
| Download URL | posix_or_nt-0.1.0a0-py2.py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
792b14e7ce741554328c50a1768363a323f24ab925c944f64c52e1c92e965912
|
|
BLAKE2b-256 checksum How to use checksums |
3229a9c39c8e20826e21d41b98588340ac453d8edd7e625951aed1ed7c62bbde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|