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.5.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.5.0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: better_aws_tags-0.5.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.5.0.tar.gz
Algorithm Hash digest
SHA256 b309bc8dcca2a8f6ca081f1ce6466ff1219e13085c42cd03b1b82d22812ad725
MD5 6a6b3f9ef8f2a58589857cc68a532492
BLAKE2b-256 5de059b0e9634810d64330d68679a00583126f4906671dcb7ba83dbf2e7666c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for better_aws_tags-0.5.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.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for better_aws_tags-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2c1928eb01b61b5551941fb55387c3a4ffdea5512503185cfefac6dd6d4a545
MD5 481a23071375a28d889ef3e9875ccb20
BLAKE2b-256 32e4f5f722298ce033a858dc48ef761348e011201ceced3dcb6192832ef8d6b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for better_aws_tags-0.5.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