--- id: tflite version: "2.18.0" license: Apache License 2.0 license_treatment: permissive maintenance: abandoned --- # tflite — Parsing TensorFlow Lite Models (*.tflite) Easily License: permissive · Maintenance: abandoned · Downloads: 123.3K/mo ## 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 above — 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 pip install tflite uv add tflite 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_current - Install friction: low - Maintenance: abandoned - Downloads: 123.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags tflite model parser, tensorflow lite inspection, parse tflite files, tflite model analysis, tensorflow lite introspection, tflite schema reader, model-inspection, tensorflow-lite [View on SkillFed](https://skillfed.io/packages/tflite) · [View on PyPI](https://pypi.org/project/tflite/)