skillfed

tflite

Parsing TensorFlow Lite Models (*.tflite) Easily

tflite v2.18.0 123.3K downloads/30d#11,912 on PyPI102
Permissive license Apache License 2.0 Abandoned released

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 tflite

uv

uv add tflite

poetry

poetry add tflite

Installing 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

Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Topic :: Scientific/Engineering :: Artificial Intelligence

Tags

tflite model parsertensorflow lite inspectionparse tflite filestflite model analysistensorflow lite introspectiontflite schema reader
model-inspectiontensorflow-lite

More Artificial Intelligence packages