Skip to main content

UFEDLib_py

UFEDLib_py library parses Cellebrite UFED/UFDR output files into Python dataclasses and provides a high-level ReportData object for easier access and processing of forensic report data.

inspired by or complementary to the C# UFEDLib project originally created by Sönke Eilers [(https://github.com/SEilers/UFEDLib)]. Thanks to the author for the outstanding C# foundation!

Features

  • Reads Cellebrite UFED outputs:
    • .ufdr files (zip containing report.xml)
    • raw report.xml
  • Scans available model types
  • Parses a single model type or all models + metadata (ReportData)
  • Single-pass parse_all for large UFDR files
  • CLI + Python API

Install

Editable install (for development):

python -m pip install -e .

Install from a built wheel:

python -m pip install dist\ufedlib_py-1.0.0-py3-none-any.whl

CLI

Scan model types:

ufedlib_py scan --input "C:\path\to\case.ufdr"

Parse a model type:

ufedlib_py parse --input "C:\path\to\case.ufdr" --model "Contact"

Parse all supported models + metadata:

ufedlib_py parse-all --input "C:\path\to\case.ufdr" --json

Limit parse-all to specific models and log progress:

ufedlib_py parse-all --input "C:\path\to\case.ufdr" --model "Call" --model "Contact" --progress-every 1000

Include unknown model types detected in the file:

ufedlib_py parse-all --input "C:\path\to\case.ufdr" --include-unknown-models

Python API

Parse all models + metadata:

from ufedlib_py import parse_all

def on_progress(model_type: str, count: int) -> None:
    print(f"{model_type}: {count}")

report = parse_all(
    r"C:\path\to\case.ufdr",
    model_types=["Call", "Contact"],
    progress_callback=on_progress,
    progress_every=1000,
)

print(report.DeviceInfo)
print(len(report.Models.get("Call", [])))

Parse a single model:

from ufedlib_py import parse_data

calls = parse_data(r"C:\path\to\case.ufdr", "Call")

Discover models:

from ufedlib_py import scan_models, get_supported_models

all_in_file = scan_models(r"C:\path\to\case.ufdr")
supported = get_supported_models()

Performance tips

  • Use model_types in parse_all to limit work.
  • parse_all uses a single-pass XML stream for large files.
  • Use progress_every for visibility on long-running parses.

Model coverage

List models detected in a report:

ufedlib_py scan --input "C:\path\to\case.ufdr"

Check which models are supported by this library:

from ufedlib_py import get_supported_models, get_unsupported_models

supported = get_supported_models()
unsupported = get_unsupported_models(r"C:\path\to\case.ufdr")

Schema notes

  • UFED XML often stores scalar values inside <field><value>...</value></field>.
  • Nested <model> blocks are parsed into typed dataclasses when a type attribute is present.
  • Some nested fields are post-processed into dictionaries and lists for easier consumption.

Troubleshooting

  • Progress errors or missing callbacks: reinstall the package in the active venv using python -m pip install -e . to ensure you are running the latest code.
  • Model not registered: confirm the model appears in scan output and is included in get_supported_models().
  • Large file performance: use parse_all(..., model_types=[...]) to limit work.

Build a wheel

python -m pip install build
python -m build

Metadata

Release files for ufedlib-py 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ufedlib-py 1.0.0
File Size Uploaded Provenance Actions
ufedlib_py-1.0.0.tar.gz 30.7 kB With provenance Details for ufedlib_py-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ufedlib-py 1.0.0
File Interpreter ABI Platform Actions
ufedlib_py-1.0.0-py3-none-any.whl Python 3 none any Details for ufedlib_py-1.0.0-py3-none-any.whl

Total release size: 72.1 kB

Release files / ufedlib_py-1.0.0.tar.gz

Download URL ufedlib_py-1.0.0.tar.gz
Size 30.7 kB
Tags Source
SHA-256 checksum
How to use checksums
45df2356d02dc13bec1b6c9e56b7a3ed4360847862d5270b9325170f912b8b1f
BLAKE2b-256 checksum
How to use checksums
eabe6c97735ae53d645f7534b5a6325d7f1c07c4f02793845bef55cbcb736967
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 22, 2026.

Transparency log

Release files / ufedlib_py-1.0.0-py3-none-any.whl

Download URL ufedlib_py-1.0.0-py3-none-any.whl
Size 41.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eae2860790a5654c0199ed45fd3487edf76474698bd62700b99897839e4a62b7
BLAKE2b-256 checksum
How to use checksums
a26493243e326079603ef40dec94c3ed1172b3d550751f024e0445868a8dc75c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 22, 2026.

Transparency log

Security for ufedlib-py 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ufedlib_py-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page