Skip to main content

Pypi version

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)

Release files for osstatus 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for osstatus 1.0.5
File Size Uploaded
osstatus-1.0.5.tar.gz 151.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for osstatus 1.0.5
File Interpreter ABI Platform
osstatus-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 290.9 kB

Release files / osstatus-1.0.5.tar.gz

Download URL osstatus-1.0.5.tar.gz
Size 151.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3acf21c4501c3967f213056613abc3f287774b987761ed09d73bef8873aaa670
BLAKE2b-256 checksum
How to use checksums
13d2188b52fcfd22f48a83741da8fedd262448d92bcfc1a8b1c026eedc11edab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / osstatus-1.0.5-py3-none-any.whl

Download URL osstatus-1.0.5-py3-none-any.whl
Size 139.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
225ca8b6f8ee38cca0e3b7b662ecd7f23d8d566157e6aa6cb7e76b9d6844460a
BLAKE2b-256 checksum
How to use checksums
f1951744b9247b450a24900b7d9eaae14d3e702bdac0d5bdab6767a6a77c35e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page