A Python package to expand and deobfuscate AWS IAM policies. Resolves wildcards (*, ?) into the full set of matching IAM actions, can invert action sets, and handles obfuscated policies. Currently at v0.3.0, supporting Python 3.10 through 3.14. Release cadence is irregular.
pip install py-iam-expandVerified import paths — ran on the pinned version, not inferred.
Expand IAM policy JSON containing wildcards into the full set of actions.
Run your script with internet access or pre-populate botocore's action data.
Update imports to `from iam_expand import expand_policy`.
Use `expand_policy(policy_str, non_valid_action_behavior='keep')` or `'remove'` to avoid failures.
No dependency data recorded yet.