tflite
Parsing TensorFlow Lite Models (*.tflite) Easily
What it is and what it does
The tflite package provides a Python interface to read and inspect TensorFlow Lite model files. It wraps the FlatBuffers schema definitions that TFLite uses internally, allowing you to programmatically examine model structure, operators, tensors, and other metadata. The package includes convenience helpers like opcode-to-name mapping and compatibility fixes for API changes across versions.
You install it alongside a matching TensorFlow version, then import tflite and use its classes to load and traverse a .tflite model file. It depends on flatbuffers and numpy for deserialization and numerical operations. The package is intended for developers who need to analyze or validate TFLite models programmatically rather than run inference on them.
Use it for:
- Inspect the operator graph and layer structure of a compiled TFLite model for debugging.
- Validate that a TFLite model contains expected operators before deployment.
- Extract metadata and tensor information from .tflite files for analysis pipelines.
- Programmatically check operator compatibility when managing model versioning.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses TensorFlow Lite (*.tflite) model files and provides a Python API to inspect their structure, operators, and metadata.
No. The repository is archived and abandoned with no active maintenance. While install friction is low and licensing is permissive, relying on it carries risk: schema definitions may become out of sync with current TFLite versions, and no one will fix compatibility issues. Use only if locked to an older TensorFlow version and need to inspect legacy models.
Install
tflite on PyPI
pip
pip install tfliteuv
uv add tflitepoetry
poetry add tfliteInstalling tflite
Before you install
Low install friction with only two runtime dependencies (flatbuffers and numpy). However, the repository is archived and marked abandoned, with no active maintenance since the latest release.
License in practice
Licensed under Apache License 2.0 (permissive). No licensing restrictions on use or redistribution.
Quickstart
pip install tflite==2.18.0
import tflite
model = tflite.Model.GetRootAsModel(buffer, 0)
opcode_name = tflite.opcode2name(opcode_value)
Requires a matching TensorFlow version to be installed separately; schema definitions may not align with newer TFLite converter versions.
Verify before relying
- Whether the package remains compatible with current TensorFlow versions despite abandonment.
- Whether the schema definitions in version 2.18.0 cover all operators in recent TFLite models.
- Security implications of using an abandoned package in production environments.
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | supports the current Python release (!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<4,>=2.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — flatbuffers, numpy |
| Maintenance | abandoned — 563 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 123,332/month — #11,912 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tflite-2.18.0-py2.py3-none-any.whl
Keywords: tflite, tensorflow
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
tflite-runtimeTensorFlow Lite runtime enables on-device…
permissive · top 15,000 on PyPI
litert-converterConverts machine learning models to LiteRT…
permissive · top 15,000 on PyPI
onnx2tfConverts ONNX model files to LiteRT,…
permissive · top 5,000 on PyPI
tf2onnxConverts TensorFlow, Keras, TensorFlow.js, and…
permissive · top 15,000 on PyPI
litert-torchConverts PyTorch models to .tflite format for…
permissive · top 15,000 on PyPI
tensorflow-datasetsProvides access to many public datasets as…
permissive · top 5,000 on PyPI
tfds-nightlyProvides a library of ready-to-use public…
permissive · top 15,000 on PyPI
ai-edge-model-explorerVisualizes and debugs machine learning model…
permissive · top 15,000 on PyPI
tensorflow-estimatorTensorFlow Estimator provides a high-level API…
permissive · top 5,000 on PyPI