arn
A Python library for parsing AWS ARNs
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 arnuv
uv add arnpoetry
poetry add arnInstalling 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
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
arnparseParses Amazon Resource Names (ARNs) into their…
unclear · top 15,000 on PyPI
policyuniverseParses and analyzes AWS IAM and Resource…
permissive · top 15,000 on PyPI
awacsawacs generates AWS IAM policy JSON from Python…
permissive · top 15,000 on PyPI
policy-sentryPolicy Sentry generates least-privilege AWS IAM…
permissive · top 5,000 on PyPI
aws-cdk.aws-s3Defines AWS S3 buckets and related resources as…
permissive · top 15,000 on PyPI
aws-assume-role-libSimplifies AWS role assumption in boto3 by…
permissive · top 15,000 on PyPI
s3pathlibs3pathlib provides a pathlib-like…
permissive · top 5,000 on PyPI
aws-cdk.aws-dynamodbProvides AWS CDK constructs for defining,…
permissive · top 15,000 on PyPI
pulumi-awsPulumi AWS provider for Python that lets you…
permissive · top 5,000 on PyPI
aws-cdk.aws-elasticloadbalancingv2Provides AWS CDK constructs for defining and…
permissive · top 15,000 on PyPI