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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for esp_idf_defs-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f96b63f633406ee2a878e4cafe3f6e176e409d067b2eff37e1267a57078060f2
MD5 17ea514a757d218f50a80cc27e8a2a08
BLAKE2b-256 9324d4ae08bca3f05bc249c6b163bdf859f191696a9b42c957964fb059377b07

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: esp_idf_defs-0.1.4-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.14

File hashes

Hashes for esp_idf_defs-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c0c3e0bedacced889c31c23263a77827df8265259fa4c78f1c6fc09d7601f4df
MD5 e50bddab4b3710f9341c40fa614eb067
BLAKE2b-256 fdca18fcf4b19db4b130580146a8e00b58dc80fe298ff607b1671dd14e0231ab

See more details on using hashes here.

Provenance

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