Skip to main content

A unified Python interface for managing AWS resource tags

Project description

better-aws-tags

A unified Python interface for managing AWS resource tags.

AWS provides multiple tagging APIs across services, including the Resource Groups Tagging API and service-specific implementations such as EC2, S3, and IAM. This library abstracts these differences behind a single API that accepts any valid ARN and handles service routing automatically.

Getting Started

import better_aws_tags as bats

# Get tags for resources
tags = bats.get_tags(["arn:aws:s3:::my-bucket", "arn:aws:iam::123456789012:role/my-role"])

# Set tags on resources
bats.set_tags(["arn:aws:s3:::my-bucket"], {"Environment": "prod", "Team": "platform"})

How It Works

The library routes ARNs to the appropriate handler:

  1. Most resources use the Resource Groups Tagging API (1000+ supported resource types)
  2. Some IAM resources (roles, users, policies) require IAM-specific APIs

This routing is transparent - just pass ARNs and the library handles the rest.

Reference

AWS Resources and Resource Types:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

better_aws_tags-0.6.0.tar.gz (38.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

better_aws_tags-0.6.0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file better_aws_tags-0.6.0.tar.gz.

File metadata

  • Download URL: better_aws_tags-0.6.0.tar.gz
  • Upload date:
  • Size: 38.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for better_aws_tags-0.6.0.tar.gz
Algorithm Hash digest
SHA256 b776eddb283525959baee7b4e983c581eb913c2aca20513d4b755daa60a9f3b3
MD5 923b77a289ed326c567de8895c93c1d7
BLAKE2b-256 12240b9f363ee95346683ad5b126fb30717d7b3ba2628be805c9bafa0e0135af

See more details on using hashes here.

Provenance

The following attestation bundles were made for better_aws_tags-0.6.0.tar.gz:

Publisher: release.yml on adaptivegears/better-aws-tags

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file better_aws_tags-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for better_aws_tags-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b9b3467f1664395816c532c6a4f234de6609f4147008c281c46afdfbec81a26
MD5 03973ca76e9519ae63adad7db65c0566
BLAKE2b-256 75c49e31ee3bc369bcb5022172d785d216e5051a2fa333bd76da2168cced6941

See more details on using hashes here.

Provenance

The following attestation bundles were made for better_aws_tags-0.6.0-py3-none-any.whl:

Publisher: release.yml on adaptivegears/better-aws-tags

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page