skillfed

arn

A Python library for parsing AWS ARNs

arn v0.1.5 162.4K downloads/30d#10,605 on PyPI
License unclear Abandoned released

What it is and what it does

arn is a lightweight Python library that converts AWS ARN strings into typed objects, letting you access the standard ARN components (partition, service, region, account) and resource-specific fields (like target group name and ID) as object attributes instead of parsing strings manually. It provides service-specific classes (e.g., TargetGroupArn for ELBv2 resources) that know how to extract and validate the resource-type-specific parts of an ARN.

The library depends only on dataclasses and installs as a pure Python wheel with no compiled dependencies. However, it has been abandoned since March 2021 with no commits or releases since then. If you need to parse ARNs for services added after that date or rely on ongoing maintenance, this package will not receive updates.

Use it for:

  • Extract and validate AWS resource identifiers from ARN strings in automation scripts or infrastructure-as-code tools.
  • Convert ARN strings into structured objects for logging, filtering, or policy generation in AWS tooling.
  • Parse target group, load balancer, or other ELBv2 resource ARNs to access their components programmatically.
  • Validate ARN format and extract account or region information for access control or resource tagging workflows.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Parses AWS ARN strings into typed objects with structured access to partition, service, region, account, and resource-specific attributes.

Yes, if you only need to parse ARNs for AWS services that existed before March 2021 and do not require ongoing maintenance. The package is simple, lightweight, and has no known vulnerabilities. No, if you need support for newer AWS services, expect active maintenance, or require a clear license statement—consider an alternative that is actively maintained.

Install

arn on PyPI

pip

pip install arn

uv

uv add arn

poetry

poetry add arn

Installing arn

Before you install

Installation is frictionless (pure Python wheel, single lightweight dependency on dataclasses). However, the package is abandoned—last release was 2021-03-05 and no commits since then—so expect no maintenance, bug fixes, or support for new AWS services.

License in practice

License status is unclear; no SPDX identifier or raw license text is available. Verify the actual license (check the repository or package source) before using in proprietary or copyleft-sensitive projects.

Quickstart

pip install arn

from arn.elbv2 import TargetGroupArn

arn_str = "arn:aws:elasticloadbalancing:us-east-1:123456789012:targetgroup/foo/abc"
arn_obj = TargetGroupArn(arn_str)
print(arn_obj.service, arn_obj.region, arn_obj.account)

Verify before relying

  • Whether the package supports all current AWS service ARN types or only a subset of those defined at release time.
  • Actual license terms (SPDX identifier and full text are missing from metadata).
  • Whether abandoned status means the package will break with future AWS service changes or Python versions.

Package facts

License not declared (unclear)
Python support supports the current Python release (>=3.6)
Install friction low — pure-Python wheel
Runtime dependencies 1 — dataclasses
Maintenance abandoned — 1,988 days since the last release
First released
Downloads 162,413/month — #10,605 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: arn-0.1.5-py3-none-any.whl

Tags

parse AWS ARNAWS ARN parserARN string parsingAWS resource identifierARN to objectAWS ARN library
awsparsing

More Software Development packages