Skip to main content

Python .luku archive support for the LukuID SDK

Project description

LukuID SDK for Python

lukuid-sdk provides Python support for opening, parsing, exporting, and verifying .luku forensic evidence archives.

The Python package is for offline evidence workflows. It does not currently ship live reader transport support.

Install

python -m pip install lukuid-sdk

Requires Python 3.11 or newer.

Quick start

from lukuid_sdk import LukuFile

result = LukuFile.parse("identity.luku")

print(result.verified)
print(len(result.items))
print(result.issues)

Parse bytes directly:

from pathlib import Path
from lukuid_sdk import LukuFile

data = Path("identity.luku").read_bytes()
result = LukuFile.parse_bytes(data)

Inspect verification issues:

from lukuid_sdk import LukuArchive

archive = LukuArchive.open("identity.luku")
issues = archive.verify()

for issue in issues:
    print(issue.criticality.value, issue.code, issue.message)

Parse envelope

Verify a single envelope loaded from JSON:

import json
from lukuid_sdk import LukuFile

with open("envelope.json", "r", encoding="utf-8") as handle:
    envelope = json.load(handle)

issues = LukuFile.verify_envelope(envelope)
print(issues)

Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lukuid_sdk-1.0.13.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lukuid_sdk-1.0.13-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

Details for the file lukuid_sdk-1.0.13.tar.gz.

File metadata

  • Download URL: lukuid_sdk-1.0.13.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lukuid_sdk-1.0.13.tar.gz
Algorithm Hash digest
SHA256 476d6b7c6f229872d5145bec26be6007852149b75a71be255df7ff99c65a6f5e
MD5 2fc86150c5bb7fc43874d75ef65cecc6
BLAKE2b-256 27e774aeef1a70cda62428241865999e1d7f2fa5618b122ee9d0cf6e623662df

See more details on using hashes here.

Provenance

The following attestation bundles were made for lukuid_sdk-1.0.13.tar.gz:

Publisher: python.yml on lukuid/sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lukuid_sdk-1.0.13-py3-none-any.whl.

File metadata

  • Download URL: lukuid_sdk-1.0.13-py3-none-any.whl
  • Upload date:
  • Size: 33.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lukuid_sdk-1.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 ba278a50ff7f9d3184427a6ea7e39c066e3e6d4d2c140c556004b2015bf0efd0
MD5 1056a6f9a66cfa68d83128fd5fadc93a
BLAKE2b-256 9e00df97674c7142f6144c0a85638ad929bcfa5ac73db7214992c57cd0d0163f

See more details on using hashes here.

Provenance

The following attestation bundles were made for lukuid_sdk-1.0.13-py3-none-any.whl:

Publisher: python.yml on lukuid/sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page