skillfed

arnparse

Parse ARNs using Python

arnparse v0.0.2 688.2K downloads/30d#5,342 on PyPI36
License unclear Abandoned released

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 arnparse

uv

uv add arnparse

poetry

poetry add arnparse

Installing 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

parse AWS ARNextract ARN componentsARN parserAWS resource name parsingARN to componentsAmazon resource name parser
awsarn-parsingabandoned

More Utilities packages