Skip to main content

Get os status from the OSStatus website

Project description

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)

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.2.tar.gz (127.1 kB view details)

Uploaded Source

Built Distribution

osstatus-1.0.2-py3-none-any.whl (126.7 kB view details)

Uploaded Python 3

File details

Details for the file osstatus-1.0.2.tar.gz.

File metadata

  • Download URL: osstatus-1.0.2.tar.gz
  • Upload date:
  • Size: 127.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for osstatus-1.0.2.tar.gz
Algorithm Hash digest
SHA256 4642ef57f1837ef5f5014f702fd7860e7a7024f1997e545dc84c2485c5b1caa7
MD5 6a963f757821354fdcfad0169b1e1614
BLAKE2b-256 21ef3d36fcb416de22befd1209eda7259523e107407a5467517a758559368f5e

See more details on using hashes here.

File details

Details for the file osstatus-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: osstatus-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 126.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for osstatus-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5bab82c7acb3ec902ad1e1fda407866b0afe8ab75a165657e92bdc889277aca5
MD5 84e5f514a0ed831e1d934506ca07ea23
BLAKE2b-256 a32fcd5489767b0374502c197cc8bb7d93142cef50fd9defa0ce9d28b676a8c8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page