{"id":4883,"library":"arnparse","title":"arnparse","description":"arnparse is a Python library designed to parse Amazon Resource Names (ARNs) into their constituent components like partition, service, region, account ID, and resource. As of version 0.0.2, it provides a straightforward API for extracting information from common ARN formats. The project is in an early stage with a relatively slow release cadence.","status":"active","version":"0.0.2","language":"en","source_language":"en","source_url":"https://github.com/PokaInc/arnparse","tags":["aws","arn","parsing","amazon-resource-name"],"install":[{"cmd":"pip install arnparse","lang":"bash","label":"Install latest version"}],"dependencies":[],"imports":[{"symbol":"arnparse","correct":"from arnparse import arnparse"}],"quickstart":{"code":"from arnparse import arnparse\n\n# Example: Parsing an SNS Topic ARN\narn_string = 'arn:aws:sns:us-east-1:123456789012:my_corporate_topic'\narn = arnparse(arn_string)\n\nprint(f\"Original ARN: {arn_string}\")\nprint(f\"Partition: {arn.partition}\")\nprint(f\"Service: {arn.service}\")\nprint(f\"Region: {arn.region}\")\nprint(f\"Account ID: {arn.account_id}\")\nprint(f\"Resource: {arn.resource}\")\n\n# Accessing components directly\nassert arn.partition == 'aws'\nassert arn.service == 'sns'\nassert arn.region == 'us-east-1'\nassert arn.account_id == '123456789012'\nassert arn.resource == 'my_corporate_topic'","lang":"python","description":"This example demonstrates how to parse an AWS SNS Topic ARN string and access its individual components using the `arnparse` function."},"warnings":[{"fix":"Stay updated with releases and carefully review release notes for any API changes.","message":"The library is currently at version 0.0.2, indicating an early stage of development. While functional, future major versions may introduce breaking API changes or new behaviors without extensive backward compatibility considerations.","severity":"gotcha","affected_versions":"0.0.1, 0.0.2"},{"fix":"Thoroughly test with the specific ARN formats your application uses. Consider contributing to the project for unsupported ARN types.","message":"While it handles common ARN patterns (e.g., S3, SNS, EC2 VPC), `arnparse` may not comprehensively support all existing and future AWS ARN formats, especially complex or service-specific variations, potentially leading to incomplete or incorrect parsing for certain ARNs.","severity":"gotcha","affected_versions":"0.0.1, 0.0.2"},{"fix":"Assess the project's activity and be prepared to fork or contribute if specific needs arise that aren't addressed by the maintainers.","message":"The project's low version number and infrequent updates (last release 0.0.2 in 2019, though GitHub files show a more recent update date of May 2023 for the same version) suggest limited active development and maintenance. This might impact bug fixes, feature requests, or compatibility with newer Python versions or AWS ARN specifications.","severity":"gotcha","affected_versions":"0.0.1, 0.0.2"}],"env_vars":null,"last_verified":"2026-04-12T00:00:00.000Z","next_check":"2026-07-11T00:00:00.000Z"}