arnparse
Parse ARNs using Python
What it is and what it does
arnparse is a lightweight Python library that takes an Amazon Resource Name (ARN) string and breaks it into its structural components: partition, service, region, account ID, resource type, and resource identifier. It handles the variation in ARN formats across different AWS services—some ARNs omit region or account ID, others use colons or slashes to delimit resource types—and exposes each component as an attribute on the parsed object.
The package has no runtime dependencies and installs with minimal friction. However, it has been abandoned since October 2019 with no updates to handle new AWS services or ARN format changes. The license treatment is unclear, which may pose a compliance risk depending on your use case.
Use it for:
- Extract the AWS account ID and region from an ARN in an IAM policy or resource tag for audit or routing logic
- Parse S3 ARNs to identify bucket names and object paths in access control or logging workflows
- Decompose EC2, VPC, or CloudWatch ARNs to validate resource ownership or build resource-aware monitoring dashboards
- Validate and normalize ARN strings in configuration files or API responses before passing them to AWS SDK calls
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses Amazon Resource Names (ARNs) into their component parts—partition, service, region, account ID, resource type, and resource—to extract structured information from ARN strings.
No. The package is abandoned (last update March 2019, repository archived) with an unclear license and no maintenance signal. While it has low install friction and no known vulnerabilities, the lack of updates means it will not handle new AWS services or ARN formats introduced since 2019. For active projects, consider using the ARN parsing built into boto3 or a maintained alternative.
Install
arnparse on PyPI
pip
pip install arnparseuv
uv add arnparsepoetry
poetry add arnparseInstalling arnparse
Before you install
Installation is frictionless with no runtime dependencies, but the package is abandoned—last commit was 2019-10-22 and the repository is archived. No maintenance or updates are expected.
License in practice
License status is unclear; no SPDX identifier or raw license text is recorded. Verify the actual license terms in the repository before using in proprietary or copyleft-sensitive contexts.
Quickstart
pip install arnparse
from arnparse import arnparse
arn = arnparse('arn:aws:s3:::my_bucket/object.png')
print(arn.service, arn.resource)
Verify before relying
- Whether the unclear license status has been resolved or documented elsewhere in the repository
- Whether the package correctly handles all current AWS ARN formats, given no updates since 2019
Package facts
| License | not declared (unclear) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,712 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 688,223/month — #5,342 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: arnparse-0.0.2-py2.py3-none-any.whl
Keywords: aws, arn, parse
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
arnParses AWS ARN strings into typed objects with…
unclear · top 15,000 on PyPI
policyuniverseParses and analyzes AWS IAM and Resource…
permissive · top 15,000 on PyPI
pulumi-awsxProvides high-level component wrappers around…
permissive · top 15,000 on PyPI
s3urlsParse and build Amazon S3 URLs in multiple…
permissive · top 15,000 on PyPI
policy-sentryPolicy Sentry generates least-privilege AWS IAM…
permissive · top 5,000 on PyPI
awacsawacs generates AWS IAM policy JSON from Python…
permissive · top 15,000 on PyPI
sagemaker-studioA Python SDK for accessing Amazon SageMaker…
permissive · top 5,000 on PyPI
aws-cdk.aws-ec2Provides AWS CDK constructs for defining EC2…
permissive · top 15,000 on PyPI
aws-cdk.aws-fsxProvides AWS CDK constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-s3Defines AWS S3 buckets and related resources as…
permissive · top 15,000 on PyPI