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.3.tar.gz (18.0 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.3-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: esp_idf_defs-0.1.3.tar.gz
  • Upload date:
  • Size: 18.0 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.3.tar.gz
Algorithm Hash digest
SHA256 f7414507b0e0e8d38d0dec4e7d45f566a145e3d71d384a81bd01ba4a0a279564
MD5 a44aca788116429d9e0c18ab89c8e823
BLAKE2b-256 af4c40ef796ec0e2d852836cc0d15e91fbc0074be705d9ff5c44b5aac3112de7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: esp_idf_defs-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 18.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 582f5a0007d9568feafbab54908dad91bd11aed5b0249faa31f29717a436e1a8
MD5 e4731fcb0595d5a4e8d01637a6cb3477
BLAKE2b-256 3613dbf907d85905ccf1a764f3e5321029c9c5c9e862b64c7824dd1f0a67c81b

See more details on using hashes here.

Provenance

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