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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
500346dc15de59b92b0989d0dbc92dfde0854647c71d22aeb1be5b4d0e5c6c58
|
|
| MD5 |
b0fa6b9903612d258f26523c6d6a4f40
|
|
| BLAKE2b-256 |
7d6af1e4f3c52ab211a7087a477e2b2e04258f92aa60f19fbd91b05eeb4d7fe3
|
Provenance
The following attestation bundles were made for esp_idf_defs-0.1.2.tar.gz:
Publisher:
build.yml on nebkat/py-esp-idf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
esp_idf_defs-0.1.2.tar.gz -
Subject digest:
500346dc15de59b92b0989d0dbc92dfde0854647c71d22aeb1be5b4d0e5c6c58 - Sigstore transparency entry: 1770954196
- Sigstore integration time:
-
Permalink:
nebkat/py-esp-idf@9007e6b38c435ecfe217b1869d76172c7f346912 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/nebkat
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@9007e6b38c435ecfe217b1869d76172c7f346912 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a7674a56df6ca9e52bed0c4b3b422c0dbd8850d7aadcc2057bb5b5ca4c1c633
|
|
| MD5 |
cbc02547bf4225e295cc8131470d963f
|
|
| BLAKE2b-256 |
41e9217e70a45d72a2dea75c72cc35ef41848c633e46836dd9320c52d7004a97
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
esp_idf_defs-0.1.2-py3-none-any.whl -
Subject digest:
9a7674a56df6ca9e52bed0c4b3b422c0dbd8850d7aadcc2057bb5b5ca4c1c633 - Sigstore transparency entry: 1770954328
- Sigstore integration time:
-
Permalink:
nebkat/py-esp-idf@9007e6b38c435ecfe217b1869d76172c7f346912 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/nebkat
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@9007e6b38c435ecfe217b1869d76172c7f346912 -
Trigger Event:
push
-
Statement type: