esp-bool-parser
esp-bool-parser is a package that provides a way to process boolean statements based on soc_caps files in the ESP-IDF.
It helps you locate soc_headers files in the ESP-IDF, parse them, and store the parsed values as constants, which are then used in ChipAttr.
When you import esp_bool_parser, you will gain access to the following functions:
Key Functions
parse_bool_expr(stmt: str)
Parses a boolean expression.
-
Parameters:
stmt(str): A string containing the boolean expression.
-
Returns:
- A parsed representation of the boolean expression.
-
Usage Example:
stmt_string = 'IDF_TARGET == "esp32"' stmt = parse_bool_expr(stmt_string) result = stmt.get_value("esp32", "config_name")
register_addition_attribute(attr: str, action: t.Callable[..., t.Any]) -> None
Registers an additional attribute for ChipAttr.
You can extend the functionality of ChipAttr by adding custom handlers for new attributes.
Use the register_addition_attribute function to register additional attributes.
When these attributes are encountered, the associated handler function will be called.
Additionally, you can override existing attributes, as the newly registered handler will take priority over the original ones.
-
Parameters:
attr(str): The name of the additional attribute.action(Callable): A callable that processes**kwargs. Thetargetandconfig_nameparameters will be passed askwargswhen the attribute is detected.
-
Usage Example:
def my_action(target, config_name, **kwargs): # Custom logic to handle the attribute print(f"Processing {target} with {config_name}") return target register_addition_attribute("CUSTOM_ATTR", my_action)
Metadata
Release files for esp-bool-parser 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| esp_bool_parser-0.2.3.tar.gz | 25.4 kB | With provenance | Details for esp_bool_parser-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| esp_bool_parser-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for esp_bool_parser-0.2.3-py3-none-any.whl |
Total release size: 38.9 kB
Release files / esp_bool_parser-0.2.3.tar.gz
| Download URL | esp_bool_parser-0.2.3.tar.gz |
|---|---|
| Size | 25.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8f9e64083b79e1be21940434b4517567e0e0666b91d6866ccb5bcdf21e2a753
|
|
BLAKE2b-256 checksum How to use checksums |
29c101a3df134709bf9a15076720be3e56680f6cd4e82372267e2fb13ced0ec3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 18, 2026.
Transparency logRelease files / esp_bool_parser-0.2.3-py3-none-any.whl
| Download URL | esp_bool_parser-0.2.3-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26ec6aec5e0400fc8b5361c0c2803dffe16843ed4dcb45abae1d07efaf51f973
|
|
BLAKE2b-256 checksum How to use checksums |
255870fcde817b2c5e967501fbc28677d5192cef15447df7e700ed3587760c31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 18, 2026.
Transparency logSecurity for esp-bool-parser 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for esp_bool_parser-0.2.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.