python-llm-structured-confidence
LOW
maintainer medaminezghal
1 votes
scanned 2026-10-22 13:35:05.775257
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Mohamed Amine Zghal (medaminezghal) <medaminezghal at outlook dot com>
2
3
_name=llm-structured-confidence
4
pkgname=python-$_name
5
pkgver=0.4.5
6
pkgrel=1
7
pkgdesc='Extract per-field confidence scores from LLM structured JSON outputs using token-level log-probabilities.'
8
arch=('any')
9
url='https://github.com/rodolfonobrega/llm-structured-confidence'
10
license=('MIT')
11
depends=('python'
12
'python-lark')
13
makedepends=('python-hatchling'
14
'python-build'
15
'python-installer')
16
checkdepends=('python-pandas'
17
'python-pydantic'
18
'python-pytest'
19
'python-litellm')
20
optdepends=('python-litellm: litellm'
21
22
'python-google-genai: genai'
23
24
'python-pandas: pandas')
25
source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
26
sha256sums=('51be458f2cfc53b15b0b9ae6806c9d7bdba87a8930faa2a0f41ef799dfe1e91f')
27
28
build() {
29
cd "$_name-$pkgver"
30
python -m build --wheel --no-isolation
31
}
32
33
check() {
34
local pytest_options=(
35
-vv
36
--disable-warnings
37
--deselect ${_name//-/_}/tests/test_e2e.py
38
)
39
cd "$_name-$pkgver"
40
PYTHONPATH=$PWD pytest "${pytest_options[@]}" ${_name//-/_}/tests
41
}
42
43
package() {
44
cd "$_name-$pkgver"
45
python -m installer --destdir="$pkgdir" dist/*.whl
46
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
47
}
48
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-22 13:35:05 | Low | 1 |