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.18.tar.gz (36.2 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.18-py3-none-any.whl (41.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lukuid_sdk-1.0.18.tar.gz
  • Upload date:
  • Size: 36.2 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.18.tar.gz
Algorithm Hash digest
SHA256 4da8445b082ebf69638279621f32b33416dfdb4761e9550b3764333744c4af9b
MD5 3c8256dbbe844ad77443bad7ecd54d13
BLAKE2b-256 b8b5d023165307883b5ca1bbfaba1befac9da026e23ae7ff60d5ffcd0f75f1c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for lukuid_sdk-1.0.18.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.18-py3-none-any.whl.

File metadata

  • Download URL: lukuid_sdk-1.0.18-py3-none-any.whl
  • Upload date:
  • Size: 41.8 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.18-py3-none-any.whl
Algorithm Hash digest
SHA256 31cb8c3a5d743cda4280b73845a6c2188a6ce39ab23be7d99fc980dde178fb5c
MD5 d7a565443120554d141c394c811d4515
BLAKE2b-256 3abb2ede8498506613e9e5d4baed2d9369d996b432da610ff9ec0f8f4c4a9273

See more details on using hashes here.

Provenance

The following attestation bundles were made for lukuid_sdk-1.0.18-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