Skip to main content

Base library for enochecker libs

Project description

enochecker_core PyPI version Build Status Lines of code

This package provides dataclasses and enums adhering to the specification.

Since the specification defines keys in camel case, whereas this package follows python naming convention and has keys in snake case, the keys need to be transformed when sending/receiving them over the wire. The recommended way is to use the jsons (not json) package.

Example:

>>> from enochecker_core import CheckerTaskResult, CheckerResultMessage
>>> import jsons
>>> jsons.dumps(CheckerResultMessage(result=CheckerTaskResult.OK, message="some message"), use_enum_name=False, key_transformer=jsons.KEY_TRANSFORMER_CAMELCASE)
'{"message": "some message", "result": "OK"}'
>>> jsons.loads('{"message": "some message", "result": "OK"}', CheckerResultMessage, key_transformer=jsons.KEY_TRANSFORMER_SNAKECASE, strict=True)
CheckerResultMessage(result=<CheckerTaskResult.OK: 'OK'>, message='some message')

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

enochecker_core-0.10.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

enochecker_core-0.10.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file enochecker_core-0.10.0.tar.gz.

File metadata

  • Download URL: enochecker_core-0.10.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for enochecker_core-0.10.0.tar.gz
Algorithm Hash digest
SHA256 378d69d97442a79e6b70f5cba40e2b3c8011b2f6bf750ccaf2a69f8f35ed6af2
MD5 40efc8676fa237f84880bf45ad649bda
BLAKE2b-256 f42d737e5955c50ca73e7082141e4ac199a1fbb207ec0c6e138d5cb34b8f3263

See more details on using hashes here.

File details

Details for the file enochecker_core-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: enochecker_core-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for enochecker_core-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ad6eb7d0a964d0e3d679f7d699c594e8a7be03af552dcf62356de7d16aad2ed
MD5 d236695ab3908fae677286be924ee926
BLAKE2b-256 10d016dbf5b955b86279610673b0b10e3e24dda53b4df678fed291248219377c

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