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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

osstatus-1.0.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: osstatus-1.0.1.tar.gz
  • Upload date:
  • Size: 16.0 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.1.tar.gz
Algorithm Hash digest
SHA256 21b5e4071a55ac37ef51a49cf8c9524c248960806e256190f2fa7617a9089ab9
MD5 1b0321eeea83c6a26597ad0cfa0c19bc
BLAKE2b-256 9a8106bcc9051244469b66a863aae218a91620e1eaa4d43c10ee03e62773e547

See more details on using hashes here.

File details

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

File metadata

  • Download URL: osstatus-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9dd587b86b2cb5c570da1f918fb718b74d7581596a84337c43f2f21ec6fdc0c
MD5 a092ec5533fa7b9802cad61a92dd83ea
BLAKE2b-256 4b9338567256c1647d820cc60ab97a90fc488b5e42e2c4e61b1c1fb16321d2bf

See more details on using hashes here.

Supported by

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