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.2.tar.gz (17.7 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.2-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: esp_idf_defs-0.1.2.tar.gz
  • Upload date:
  • Size: 17.7 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.2.tar.gz
Algorithm Hash digest
SHA256 500346dc15de59b92b0989d0dbc92dfde0854647c71d22aeb1be5b4d0e5c6c58
MD5 b0fa6b9903612d258f26523c6d6a4f40
BLAKE2b-256 7d6af1e4f3c52ab211a7087a477e2b2e04258f92aa60f19fbd91b05eeb4d7fe3

See more details on using hashes here.

Provenance

The following attestation bundles were made for esp_idf_defs-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: esp_idf_defs-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9a7674a56df6ca9e52bed0c4b3b422c0dbd8850d7aadcc2057bb5b5ca4c1c633
MD5 cbc02547bf4225e295cc8131470d963f
BLAKE2b-256 41e9217e70a45d72a2dea75c72cc35ef41848c633e46836dd9320c52d7004a97

See more details on using hashes here.

Provenance

The following attestation bundles were made for esp_idf_defs-0.1.2-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