Skip to main content

Python data structures for ESP-IDF internals — partition tables, firmware images, OTA data, and app descriptors

Project description

esp-idf-defs

Python data structures for ESP-IDF internals — partition tables, firmware image headers, OTA data, and application descriptors.

Used by idftool.

Installation

pip install esp-idf-defs

Classes

Partition table

from esp_idf_defs import PartitionTable, PartitionDefinition

table = PartitionTable.from_binary(data)   # parse binary partition table
table = PartitionTable.from_csv(text)      # parse CSV partition table

partition = table["ota_0"]                 # look up by name
print(partition.offset, partition.size)

Firmware images

from esp_idf_defs import ImageMetadata

image = ImageMetadata.from_binary(data)
print(image.header.chip_id, image.app_description.version)

OTA data

from esp_idf_defs import OtaDataSelectEntry
from esp_idf_defs.otadata import OtaDataParameters

entry = OtaDataSelectEntry.from_binary(data)
print(entry.ota_seq, entry.state)

Application descriptor

from esp_idf_defs import AppDescription

desc = AppDescription.from_binary(data)
print(desc.project_name, desc.version)

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

esp_idf_defs-0.1.1.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

esp_idf_defs-0.1.1-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file esp_idf_defs-0.1.1.tar.gz.

File metadata

  • Download URL: esp_idf_defs-0.1.1.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for esp_idf_defs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e89e48105aa13e93fdd0bea00d4df9d4acd3030fe63c1ada3743341446898000
MD5 d3112a60f78f72ace8ba71ce66b67185
BLAKE2b-256 1aa6b6ccb39bf3ab4f4bd258cb1a14039914ff2f7352819beba5124b5cd932a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for esp_idf_defs-0.1.1.tar.gz:

Publisher: build.yml on nebkat/py-esp-idf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file esp_idf_defs-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: esp_idf_defs-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for esp_idf_defs-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e910f616dd2af21dee024aba83f47005fea097196fc390dae7b4d52b1680692
MD5 d70ad635f228668ffe39ba8d9d79d8da
BLAKE2b-256 0df1d84af81918f1ffc34d94c7894e64e53e1a2e8e46320306ef215673fe9d74

See more details on using hashes here.

Provenance

The following attestation bundles were made for esp_idf_defs-0.1.1-py3-none-any.whl:

Publisher: build.yml on nebkat/py-esp-idf

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