$npx skillfedfor your agent

policyuniverse

Parse and Process AWS IAM Policies, Statements, ARNs, and wildcards.

With conditionsPyPI SecurityReleased Nov 2023519.9K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — policyuniverse-1.5.1.20231109-py2.py3-none-any.whl
v1.5.1.20231109 · released 2023-11-30 · Python >=3.7

Yes, if you need to parse and analyze AWS IAM policies programmatically. The package is lightweight, has no dependencies, and covers the core use cases of policy inspection and wildcard expansion well. However, note the dormant maintenance status—last release was 988 days ago—so verify compatibility with your AWS policy version and consider whether you need active support before adopting it for critical compliance workflows.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with no runtime dependencies.
  • Dormant maintenance status—last release was 988 days ago and last commit in June 2024—but the repository remains active with 448 stars and no known vulnerabilities.

License · maintenance · safety

permissive license (permissive) — Licensed under Apache License 2.0 (permissive), allowing commercial and private use with minimal restrictions.

last release 2023-11-30 (988 days) · last repo commit 2024-06-21 · 448 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 519,870 downloads/mo, #6,214 on PyPI

Verify before relying

from policyuniverse.arn import ARN
from policyuniverse.policy import Policy

arn = ARN('arn:aws:iam::012345678910:role/TestRole')
policy = Policy({'Version': '2012-10-08', 'Statement': [{'Effect': 'Allow', 'Principal': '*', 'Action': 's3:*', 'Resource': '*'}]})
print(policy.is_internet_accessible())
  • Whether the dormant status (988 days since last release) affects compatibility with recent AWS IAM policy changes or new permissions.
  • Performance characteristics when processing large or complex policies with many statements and conditions.
Same gist for agents: .md · .json

What it is and what it does

PolicyUniverse is a Python library for parsing, analyzing, and transforming AWS IAM and Resource Policies. It provides classes to extract and inspect policy components—principals, actions, resources, and conditions—and includes utilities to detect whether a policy is internet-accessible, expand wildcard actions to their full permission sets, and minify policies to reduce their size. The package ships with a built-in permissions dataset from the AWS Policy Generator.

It is primarily used by security teams and infrastructure auditors to understand and validate IAM policies programmatically. Common tasks include checking whether a policy grants unintended public access, categorizing actions by type (Read, Write, Permissions, etc.), and expanding wildcards like `s3:*` into their constituent permissions for detailed analysis. The library has no external runtime dependencies, making it lightweight to integrate into automation and compliance tools.

Use it for

  • Audit IAM policies for internet accessibility and overly permissive principal grants in automated security scanning.
  • Expand wildcard actions in policies to enumerate exactly which permissions are granted for compliance reporting.
  • Parse and categorize policy actions by type (Read, Write, Permissions, Tagging, List) to summarize policy impact.
  • Extract principals, accounts, VPCs, and IP ranges from policy conditions for access control analysis.
  • Minify large policies to stay within AWS policy size limits when consolidating multiple statements.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to parse and analyze AWS IAM policies programmatically.

The package is lightweight, has no dependencies, and covers the core use cases of policy inspection and wildcard expansion well. However, note the dormant maintenance status—last release was 988 days ago—so verify compatibility with your AWS policy version and consider whether you need active support before adopting it for critical compliance workflows.

Install

policyuniverse on PyPI

Before you install

Low install friction with no runtime dependencies. Dormant maintenance status—last release was 988 days ago and last commit in June 2024—but the repository remains active with 448 stars and no known vulnerabilities.

License in practice

Licensed under Apache License 2.0 (permissive), allowing commercial and private use with minimal restrictions.

Quickstart

from policyuniverse.arn import ARN
from policyuniverse.policy import Policy

arn = ARN('arn:aws:iam::012345678910:role/TestRole')
policy = Policy({'Version': '2012-10-08', 'Statement': [{'Effect': 'Allow', 'Principal': '*', 'Action': 's3:*', 'Resource': '*'}]})
print(policy.is_internet_accessible())

Verify before relying

  • Whether the dormant status (988 days since last release) affects compatibility with recent AWS IAM policy changes or new permissions.
  • Performance characteristics when processing large or complex policies with many statements and conditions.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceDormant 988 days since the last release
Last repo commit
First released
Downloads519,870 / month, #6,214 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: Apache Software License

Evidence: policyuniverse-1.5.1.20231109-py2.py3-none-any.whl

Tags

Capabilities
AWS IAM policy parserparse AWS policiesARN parsingpolicy wildcard expansionAWS policy analysisIAM security analysispolicy minification
Topics
aws-iampolicy-analysissecurity-audit
PyPI keywords
iamarnaction_groupsconditionpolicystatementwildcard

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “AWS IAM policy parser”

  • policyuniverseParses and analyzes AWS IAM and Resource Policies, extracts…
  • policy-sentryPolicy Sentry generates least-privilege AWS IAM policies from…
  • awacsawacs generates AWS IAM policy JSON from Python code, with built-in…

Give your agent the search over MCP, or paste the wish link into any chat.

More Security packages

SecretStorage With conditions
PyPI · Python Modules · released Nov 2025

Provides Python bindings to the FreeDesktop.org Secret Service API for securely storing and retrieving passwords and secrets through GNOME Keyring, KWallet, or KeePassXC.

BSD-3-Clausepure Python · 3.10+aging
226.9Mdownloads / mo
msal Worth it
PyPI · Security · released May 2026

MSAL for Python handles OAuth2 and OpenID Connect authentication with Microsoft identity services, managing token acquisition, caching, and refresh for applications integrating with Microsoft Entra ID, Microsoft Accounts, and Azure AD B2C.

MITpure Python · 3.9+
223.0Mdownloads / mo
joserfc Worth it
PyPI · Security · released Jul 2026

joserfc implements JOSE standards (JWS, JWE, JWK, JWT, and related RFCs) for signing, encrypting, and managing JSON-based cryptographic tokens in Python.

BSD-3-Clausepure Python · 3.10+
155.5Mdownloads / mo
Authlib Worth it
PyPI · Security · released May 2026

Authlib provides a complete implementation of OAuth 1.0, OAuth 2.0, and OpenID Connect 1.0 for building both authentication clients and servers, with built-in support for JWS, JWK, JWA, and JWT standards.

BSD-3-Clausepure Python · 3.10+
155.1Mdownloads / mo
argon2-cffi-bindings With conditions
PyPI · Python Modules · released Jul 2025

Provides low-level CFFI bindings to the official Argon2 password hashing algorithm for use by libraries and applications that need direct access to Argon2 without higher-level abstractions.

MITcompiled wheel · 3.9+
74.2Mdownloads / mo
adal Skip
PyPI · Security · released Apr 2021

ADAL for Python authenticates applications with Azure Active Directory to obtain tokens for accessing Azure AD-protected resources.

Install only if maintaining existing code that already depends on it, and plan a migration.

MITpure Pythonabandoned
44.5Mdownloads / mo

See also iamdata · policy-sentry · py-iam-expand · awacs · arn · aws-cdk.aws-iam · arnparse · cloudsplaining · drf-access-policy · cdk-iam-floyd