Fetch configuration values for IDA Pro plugins
Project description
ida-settings
ida-settings is a Python library used by IDA Pro plugins to fetch configuration values from the shared settings infrastructure.
During plugin installation, hcli prompts users for the configuration values and stores them in ida-config.json.
Subsequently, users can invoke hcli (or later, the IDA Pro GUI) to update their configuration.
This is the library that plugins use to fetch the configuration values.
For example, within an IDA Pro plugin:
import ida_settings
api_key = ida_settings.get_current_plugin_setting("openai_key")
API reference
def get_current_plugin_setting(key: str) -> str | bool
Fetch the setting value identified by key, raising KeyError if its not found.
This setting should be declared in the current plugin's ida-plugin.json file.
Changing of configuration values should be done via hcli (or later, the IDA Pro GUI). Plugins shouldn't have to do this themselves - but open an issue for discussion if you think otherwise.
Notes
- this library relies on the IDA Pro's specific plugin environment to identify the current plugin; therefore, this library doesn't work outside of IDA Pro.
- plugins shouldn't try to reach into
ida-config.jsonthemselves, because in the future, we may introduce cascading settings, a la VS Code.
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 Distributions
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 ida_settings-3.0.0-py3-none-any.whl.
File metadata
- Download URL: ida_settings-3.0.0-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ee93de35fbf82662739eafd58ba868efec0e5a17030dcc9f8697ad5837c6efb
|
|
| MD5 |
ed2d29a4e4765d5d62a907ee4c152fba
|
|
| BLAKE2b-256 |
afbbbb30f12b35da88a94aa292c5932214fbce396db003fc511836ab70115575
|
Provenance
The following attestation bundles were made for ida_settings-3.0.0-py3-none-any.whl:
Publisher:
python-publish.yml on williballenthin/ida-settings
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ida_settings-3.0.0-py3-none-any.whl -
Subject digest:
5ee93de35fbf82662739eafd58ba868efec0e5a17030dcc9f8697ad5837c6efb - Sigstore transparency entry: 575537680
- Sigstore integration time:
-
Permalink:
williballenthin/ida-settings@c8220f8d7e4f4b8aab2ac061c704d1eb5b25f6f5 -
Branch / Tag:
refs/tags/v3.0.0 - Owner: https://github.com/williballenthin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c8220f8d7e4f4b8aab2ac061c704d1eb5b25f6f5 -
Trigger Event:
release
-
Statement type: