Get os status from the OSStatus website
Project description
OSStatus
Query os status codes directly from your shell, based on the amazing https://www.osstatus.com/.
Installation
python3 -m pip install osstatus
Usage
Use from your shell:
Usage: python -m osstatus [OPTIONS] COMMAND [ARGS]...
query error codes
Options:
--help Show this message and exit.
Commands:
all get all possible errors codes
code get all possible errors codes by error code
symbol get all possible errors codes by symbol name
Or from python:
from osstatus.cache import get_possible_error_codes
# get all possible errors codes for status 50
possible_error_codes = get_possible_error_codes(50)
# [ErrorCode(platforms=[<Platform.macOS: 'macOS'>, <Platform.iOS: 'iOS'>],
# framework='Foundation',
# header_file='NSXMLParser.h',
# name='NSXMLParserAttributeListNotStartedError',
# value=50,
# description=''),
# ErrorCode(platforms=[<Platform.iOS: 'iOS'>],
# framework='HomeKit',
# header_file='HMError.h',
# name='HMErrorCodeAccessorySentInvalidResponse',
# value=50,
# description=''),
# ErrorCode(platforms=[<Platform.macOS: 'macOS'>, <Platform.iOS: 'iOS'>],
# framework='Kernel',
# header_file='errno.h',
# name='ENETDOWN',
# value=50,
# description='Network is down'),
# ErrorCode(platforms=[<Platform.macOS: 'macOS'>, <Platform.iOS: 'iOS'>],
# framework='Kernel',
# header_file='kern_return.h',
# name='KERN_CODESIGN_ERROR',
# value=50,
# description='During a page fault, indicates that the page was '
# 'rejected as a result of a signature check.'),
# ErrorCode(platforms=[<Platform.iOS: 'iOS'>],
# framework='Matter',
# header_file='MTRClusterConstants.h',
# name='MTRClusterTestClusterAttributeClusterErrorBooleanID',
# value=50,
# description='')]
print(possible_error_codes)
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
osstatus-1.0.5.tar.gz
(151.6 kB
view details)
Built Distribution
osstatus-1.0.5-py3-none-any.whl
(139.4 kB
view details)
File details
Details for the file osstatus-1.0.5.tar.gz
.
File metadata
- Download URL: osstatus-1.0.5.tar.gz
- Upload date:
- Size: 151.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3acf21c4501c3967f213056613abc3f287774b987761ed09d73bef8873aaa670 |
|
MD5 | 7dd973b506f6ebf78a084ef1424d016b |
|
BLAKE2b-256 | 13d2188b52fcfd22f48a83741da8fedd262448d92bcfc1a8b1c026eedc11edab |
File details
Details for the file osstatus-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: osstatus-1.0.5-py3-none-any.whl
- Upload date:
- Size: 139.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 225ca8b6f8ee38cca0e3b7b662ecd7f23d8d566157e6aa6cb7e76b9d6844460a |
|
MD5 | 61dd68bf649c95d95fd84ba46db91235 |
|
BLAKE2b-256 | f1951744b9247b450a24900b7d9eaae14d3e702bdac0d5bdab6767a6a77c35e1 |