
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
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:
parse_bool_expr(stmt: str)
Parses a boolean expression.
Parameters:
stmt
(str): A string containing the boolean expression.Returns:
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
. The target
and config_name
parameters will be passed as kwargs
when 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)
FAQs
Tools for building ESP-IDF related apps.
We found that esp-bool-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.