{"id":24295,"library":"pyaskalono","title":"Pyaskalono","description":"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.","status":"active","version":"0.2.0","language":"python","source_language":"en","source_url":"https://github.com/amzn/pyaskalono","tags":["license-detection","askalono","bindings"],"install":[{"cmd":"pip install pyaskalono","lang":"bash","label":"pip"}],"dependencies":[],"imports":[{"wrong":"from pyaskalono import detect_license","symbol":"License","correct":"from askalono import License"},{"wrong":"from pyaskalono import detect_license","symbol":"identify","correct":"from askalono import identify"},{"wrong":"from pyaskalono import detect_license","symbol":"askalono","correct":"import askalono"}],"quickstart":{"code":"from pyaskalono import detect_license\n\nlicense_text = \"\"\"MIT License\nCopyright (c) 2021\nPermission is hereby granted...\n\"\"\"\nresult = detect_license(license_text)\nprint(result.spdx_id)  # e.g., 'MIT'","lang":"python","description":"Detect license from a text string."},"warnings":[{"fix":"Read the file contents before calling detect_license: `with open('LICENSE') as f: text = f.read()`","message":"The `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.","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure input is a non-empty string of significant length. Check result is not None.","message":"The function may raise a `ValueError` if the input text is empty or too short (< 50 characters).","severity":"gotcha","affected_versions":"all"},{"fix":"Install Rust via rustup, then retry. Alternatively, use a platform with pre-built wheel.","message":"Pre-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.","severity":"gotcha","affected_versions":"0.1.0 - 0.2.0"}],"env_vars":null,"search_vec":"'0.2.0':20 '3.11':23 'askalono':5,35 'avail':28 'bind':3,36 'built':26 'current':18 'detect':10,34 'file':17 'librari':8 'licens':14,33 'license-detect':32 'major':30 'open':12 'open-sourc':11 'platform':31 'pre':25 'pre-built':24 'pyaskalono':1 'python':2,22 'requir':21 'rust':7 'sourc':13 'text':15 'version':19 'wheel':27","created_at":"2026-05-01T08:12:19.150586+00:00","updated_at":"2026-05-01T08:12:19.150586+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.2.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/kumekay/pyaskalono","docs":null,"changelog":null,"pypi":"https://pypi.org/project/pyaskalono/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["data","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}