Registry / data / pyaskalono

pyaskalono

JSON →
library0.2.0pypypi✓ verified 82d ago

Python bindings for askalono, a Rust library for detecting open-source license texts in files. Current version 0.2.0, requires Python >=3.11. Pre-built wheels available for major platforms.

pip install pyaskalono
INSTALL
IMPORT
SIG · PYASKALONO
P
pyaskalono
datapythonv0.2.0
Install
1.9s avg
Import
Disk
21MB
Pass rate
6/ 10
Env Coverage6 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 2.2s
py 3.11
✕ build_error
✓ 1.6s
py 3.12
✕ build_error
✓ 1.6s
py 3.13
✕ build_error
✓ 1.6s
py 3.9
✕ build_error
✓ 2.3s
21MB installed
● package 21MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

License
from askalono import License
from pyaskalono import detect_license
identify
from askalono import identify
from pyaskalono import detect_license
askalono
import askalono
from pyaskalono import detect_license

Detect license from a text string.

from pyaskalono import detect_license license_text = """MIT License Copyright (c) 2021 Permission is hereby granted... """ result = detect_license(license_text) print(result.spdx_id) # e.g., 'MIT'
Debug
Known issues
gotchaThe `detect_license` function expects the full license text as a single string, not file paths. If you pass a file path, it will be treated as license content and likely fail or return garbage.
fix
Read the file contents before calling detect_license: `with open('LICENSE') as f: text = f.read()`
affects: all
gotchaThe function may raise a `ValueError` if the input text is empty or too short (< 50 characters).
fix
Ensure input is a non-empty string of significant length. Check result is not None.
affects: all
gotchaPre-built wheels are only available for x86_64 Linux, Windows, and macOS. On other platforms (e.g., ARM Linux), pip will try to build from source, requiring Rust toolchain.
fix
Install Rust via rustup, then retry. Alternatively, use a platform with pre-built wheel.
affects: 0.1.0 - 0.2.0
Upgrade
Version history
0.2.0latest on PyPI · released Nov 21, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
pyaskalono — pip install pyaskalono · libregistry