Skip to main content

HRX SDK for Python — types and helpers for HRX models

Project description

HRX Python SDK (hrxlib)

Paquet Python fournissant les modeles Pydantic et helpers pour le format HRX.

Installation (locally):

pip install build
cd src/hrx/sdk/python
python -m build
pip install dist/hrxlib-0.1.0-py3-none-any.whl

Usage:

from pathlib import Path

from hrx import HRX

doc = HRX.from_path(Path("candidate.hrx"))
candidate = doc.candidate
payload_dict = doc.to_dict()
payload_json = doc.to_json(indent=2)

# Optional: strict JSON schema validation
doc.validate_against_schema(Path("../../models/hrx-schema-v1.json"))

Erreurs SDK:

  • HrxFileError: probleme de lecture/ecriture fichier
  • HrxParseError: JSON invalide
  • HrxValidationError: payload non conforme aux modeles Pydantic
  • HrxSchemaError: payload non conforme au schema JSON
  • HrxVersionError: version HRX non supportee

Licence: MIT

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

hrxlib-0.1.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

hrxlib-0.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file hrxlib-0.1.0.tar.gz.

File metadata

  • Download URL: hrxlib-0.1.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for hrxlib-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e48f56d2a1f78f7a25476789c5bd26bcdd419304e3214abcae61c4151e311a61
MD5 f427465d732f630ef52e2041e1a8e0e5
BLAKE2b-256 0ae0cb3b5ae2b5c5c8e40acdcde196e5fe1bf5785b349944c99680ce43b2bfc5

See more details on using hashes here.

File details

Details for the file hrxlib-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hrxlib-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for hrxlib-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea29aeb22d9302e46d518ce36e27a840f9ff8add31b100b3dde76ef9b1034e32
MD5 e25f112c33b6e116f9055e7ec21b9514
BLAKE2b-256 9048efbfdac55d246db68d9cd0ee5e17105635e3f7cba69e21f25fea5f92a170

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