Skip to main content
# IAMPoliciesGoneWild

This is a python implementation of the IAM Policy Expander Minimizer.

# Install:

`pip install iampoliciesgonewild`

# Usage:

```python
from iampoliciesgonewild import expand_policy
from iampoliciesgonewild import minimize_policy

policy = {
"Statement": [{
"Action": ["swf:res*"],
"Resource": "*",
"Effect": "Allow"
}]
}

expanded_policy = expand_policy(policy=policy)
>>> Start size: 131. End size: 286
print(expanded_policy == {
"Statement": [{
"Action": [
"swf:respondactivitytaskcanceled",
"swf:respondactivitytaskcompleted",
"swf:respondactivitytaskfailed",
"swf:responddecisiontaskcompleted"
],
"Resource": "*",
"Effect": "Allow"
}]
})
>>> True

minimized_policy = minimize_policy(policy=expanded_policy, minchars=3)
>>> Skipping prefix r because length of 1
>>> Skipping prefix re because length of 2
>>> Skipping prefix r because length of 1
>>> Skipping prefix re because length of 2
>>> Skipping prefix r because length of 1
>>> Skipping prefix re because length of 2
>>> Skipping prefix r because length of 1
>>> Skipping prefix re because length of 2
>>> Start size: 286. End size: 131

print(minimized_policy == policy)
>>> True
```

Metadata

Release files for iampoliciesgonewild 1.0.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iampoliciesgonewild 1.0.6.2
File Size Uploaded Provenance Actions
iampoliciesgonewild-1.0.6.2.tar.gz 23.4 kB Without provenance Details for iampoliciesgonewild-1.0.6.2.tar.gz

Release files / iampoliciesgonewild-1.0.6.2.tar.gz

Download URL iampoliciesgonewild-1.0.6.2.tar.gz
Size 23.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2ccddb4cf78491b81bc9db2f92d2c88b1a22be5bd206355d95329e7f65e7ef4d
BLAKE2b-256 checksum
How to use checksums
2e894e0865e94fcf80ec7d2dd5ff8283f4921d0915cd3e0a4a1b20eac542eb97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for iampoliciesgonewild 1.0.6.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page