hllama
hllama == Harness LLaMA. hllama is a library which aims to provide a set of utility tools for large language models.
Install
$ pip install hllama
Usage
Test if JSON matches target structure
from hllama import json_utils
A = {"key1": str, "key2": {"key3": str, "key4": int, "key5": list}}
B = {"key1": "hello", "key2": {"key3": "world", "key4": 100, "key5": [1, 2, 3]}}
result = json_utils.match_structure(A, B)
assert result is True
Test if there is JSON part in a string
raw_string = "..."
result = json_utils.parse_json_snippet(raw_string)
assert isinstance(result, dict)
assert result is not None
Metadata
Release files for hllama 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hllama-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for hllama-0.0.7-py3-none-any.whl |
Release files / hllama-0.0.7-py3-none-any.whl
| Download URL | hllama-0.0.7-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
09445a67cbedab05629b0ff7d2258f44e71ad64bd42532471a3603215c069455
|
|
BLAKE2b-256 checksum How to use checksums |
d8360d7b7cc2c33f45e68fb9748f0694f0e0a7c36ab3b886f106a82c3e5d32b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Security for hllama 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.