Skip to main content

jmespath custom functions for filtering AWS resources by tag

Project description

aws-jmespath-utils

Installation

pip3 install aws_jmespath_utils

Usage

import jmespath
from aws_jmespath_utils import jmespath_options

print(
    jmespath.search(
        'filter_tags(`["[!Na.]*="]`, @)',
        {
            "a":"b",
            "Tags": [
                {"Key": "Name", "Value": "jmespath-utils"},
                {"Key": "Nam", "Value": "jmespath-utils-nam"},
                {"Key": "Ebcd", "Value": "edfg"},
            ]    
        },
        options=jmespath_options
    )
)

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

aws_jmespath_utils-0.1.6.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

aws_jmespath_utils-0.1.6-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file aws_jmespath_utils-0.1.6.tar.gz.

File metadata

  • Download URL: aws_jmespath_utils-0.1.6.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.12 Darwin/23.5.0

File hashes

Hashes for aws_jmespath_utils-0.1.6.tar.gz
Algorithm Hash digest
SHA256 d190ccc5d5a0155d5afd3e0fe57c186f800135afa37aa7141e3b71e8d9660805
MD5 efe8326bc2a18d90160817f25f9b713d
BLAKE2b-256 ff16ae1948aa4ac162848eca44b25c3a3951bcf9a139f9e1a8266cfa78304beb

See more details on using hashes here.

File details

Details for the file aws_jmespath_utils-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_jmespath_utils-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8230b1c4f6b795cd7806c6336b1cf96b6225f2d2bb93876ebe062ada36afb5af
MD5 40abb87b311ea56bafc1ae2f30cb25a4
BLAKE2b-256 2f53a638c526660f63dd309c815b2d68324b7548e320a34051e344692f97ab62

See more details on using hashes here.

Supported by

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