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 fichierHrxParseError: JSON invalideHrxValidationError: payload non conforme aux modeles PydanticHrxSchemaError: payload non conforme au schema JSONHrxVersionError: version HRX non supportee
Licence: MIT
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e48f56d2a1f78f7a25476789c5bd26bcdd419304e3214abcae61c4151e311a61
|
|
| MD5 |
f427465d732f630ef52e2041e1a8e0e5
|
|
| BLAKE2b-256 |
0ae0cb3b5ae2b5c5c8e40acdcde196e5fe1bf5785b349944c99680ce43b2bfc5
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea29aeb22d9302e46d518ce36e27a840f9ff8add31b100b3dde76ef9b1034e32
|
|
| MD5 |
e25f112c33b6e116f9055e7ec21b9514
|
|
| BLAKE2b-256 |
9048efbfdac55d246db68d9cd0ee5e17105635e3f7cba69e21f25fea5f92a170
|