Skip to main content

types-boto3-glue

PyPI - types-boto3-glue PyPI - Python Version Docs PyPI - Downloads

boto3.typed

Type annotations for boto3 Glue 1.43.59 compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.

Generated with mypy-boto3-builder 8.12.0.

More information can be found on types-boto3 page and in types-boto3-glue docs.

See how it helps you find and fix potential bugs:

types-boto3 demo

How to install

Generate locally (recommended)

You can generate type annotations for boto3 package locally with mypy-boto3-builder. Use uv for build isolation.

  1. Run mypy-boto3-builder in your package root directory: uvx --with 'boto3==1.43.59' mypy-boto3-builder
  2. Select boto3 AWS SDK.
  3. Add Glue service.
  4. Use provided commands to install generated packages.

VSCode extension

Add AWS Boto3 extension to your VSCode and run AWS boto3: Quick Start command.

Click Modify and select boto3 common and Glue.

From PyPI with pip

Install types-boto3 for Glue service.

# install with boto3 type annotations
python -m pip install 'types-boto3[glue]'

# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-boto3-lite[glue]'

# standalone installation
python -m pip install types-boto3-glue

How to uninstall

python -m pip uninstall -y types-boto3-glue

Usage

VSCode

python -m pip install 'types-boto3[glue]'

Both type checking and code completion should now work. No explicit type annotations required, write your boto3 code as usual.

PyCharm

⚠️ Due to slow PyCharm performance on Literal overloads (issue PY-40997), it is recommended to use types-boto3-lite until the issue is resolved.

⚠️ If you experience slow performance and high CPU usage, try to disable PyCharm type checker and use mypy or pyright instead.

⚠️ To continue using PyCharm type checker, you can try to replace types-boto3 with types-boto3-lite:

pip uninstall types-boto3
pip install types-boto3-lite

Install types-boto3[glue] in your environment:

python -m pip install 'types-boto3[glue]'

Both type checking and code completion should now work.

Emacs

  • Install types-boto3 with services you use in your environment:
python -m pip install 'types-boto3[glue]'
(use-package lsp-pyright
  :ensure t
  :hook (python-mode . (lambda ()
                          (require 'lsp-pyright)
                          (lsp)))  ; or lsp-deferred
  :init (when (executable-find "python3")
          (setq lsp-pyright-python-executable-cmd "python3"))
  )
  • Make sure emacs uses the environment where you have installed types-boto3

Type checking should now work. No explicit type annotations required, write your boto3 code as usual.

Sublime Text

  • Install types-boto3[glue] with services you use in your environment:
python -m pip install 'types-boto3[glue]'

Type checking should now work. No explicit type annotations required, write your boto3 code as usual.

Other IDEs

Not tested, but as long as your IDE supports mypy or pyright, everything should work.

mypy

  • Install mypy: python -m pip install mypy
  • Install types-boto3[glue] in your environment:
python -m pip install 'types-boto3[glue]'

Type checking should now work. No explicit type annotations required, write your boto3 code as usual.

pyright

  • Install pyright: npm i -g pyright
  • Install types-boto3[glue] in your environment:
python -m pip install 'types-boto3[glue]'

Optionally, you can install types-boto3 to typings directory.

Type checking should now work. No explicit type annotations required, write your boto3 code as usual.

Pylint compatibility

It is totally safe to use TYPE_CHECKING flag in order to avoid types-boto3-glue dependency in production. However, there is an issue in pylint that it complains about undefined variables. To fix it, set all types to object in non-TYPE_CHECKING mode.

from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from types_boto3_ec2 import EC2Client, EC2ServiceResource
    from types_boto3_ec2.waiters import BundleTaskCompleteWaiter
    from types_boto3_ec2.paginators import DescribeVolumesPaginator
else:
    EC2Client = object
    EC2ServiceResource = object
    BundleTaskCompleteWaiter = object
    DescribeVolumesPaginator = object

...

Explicit type annotations

Client annotations

GlueClient provides annotations for boto3.client("glue").

from boto3.session import Session

from types_boto3_glue import GlueClient

client: GlueClient = Session().client("glue")

# now client usage is checked by mypy and IDE should provide code completion

Paginators annotations

types_boto3_glue.paginator module contains type annotations for all paginators.

from boto3.session import Session

from types_boto3_glue import GlueClient
from types_boto3_glue.paginator import (
    DescribeEntityPaginator,
    GetClassifiersPaginator,
    GetConnectionsPaginator,
    GetCrawlerMetricsPaginator,
    GetCrawlersPaginator,
    GetDatabasesPaginator,
    GetDevEndpointsPaginator,
    GetJobRunsPaginator,
    GetJobsPaginator,
    GetPartitionIndexesPaginator,
    GetPartitionsPaginator,
    GetResourcePoliciesPaginator,
    GetSecurityConfigurationsPaginator,
    GetTableVersionsPaginator,
    GetTablesPaginator,
    GetTriggersPaginator,
    GetUserDefinedFunctionsPaginator,
    GetWorkflowRunsPaginator,
    ListAssetTypesPaginator,
    ListBlueprintsPaginator,
    ListConnectionTypesPaginator,
    ListEntitiesPaginator,
    ListFormTypesPaginator,
    ListGlossariesPaginator,
    ListGlossaryTermsPaginator,
    ListIterableFormsPaginator,
    ListJobsPaginator,
    ListMaterializedViewRefreshTaskRunsPaginator,
    ListRegistriesPaginator,
    ListSchemaVersionsPaginator,
    ListSchemasPaginator,
    ListTableOptimizerRunsPaginator,
    ListTriggersPaginator,
    ListUsageProfilesPaginator,
    ListWorkflowsPaginator,
    SearchAssetsPaginator,
)

client: GlueClient = Session().client("glue")

# Explicit type annotations are optional here
# Types should be correctly discovered by mypy and IDEs
describe_entity_paginator: DescribeEntityPaginator = client.get_paginator("describe_entity")
get_classifiers_paginator: GetClassifiersPaginator = client.get_paginator("get_classifiers")
get_connections_paginator: GetConnectionsPaginator = client.get_paginator("get_connections")
get_crawler_metrics_paginator: GetCrawlerMetricsPaginator = client.get_paginator(
    "get_crawler_metrics"
)
get_crawlers_paginator: GetCrawlersPaginator = client.get_paginator("get_crawlers")
get_databases_paginator: GetDatabasesPaginator = client.get_paginator("get_databases")
get_dev_endpoints_paginator: GetDevEndpointsPaginator = client.get_paginator("get_dev_endpoints")
get_job_runs_paginator: GetJobRunsPaginator = client.get_paginator("get_job_runs")
get_jobs_paginator: GetJobsPaginator = client.get_paginator("get_jobs")
get_partition_indexes_paginator: GetPartitionIndexesPaginator = client.get_paginator(
    "get_partition_indexes"
)
get_partitions_paginator: GetPartitionsPaginator = client.get_paginator("get_partitions")
get_resource_policies_paginator: GetResourcePoliciesPaginator = client.get_paginator(
    "get_resource_policies"
)
get_security_configurations_paginator: GetSecurityConfigurationsPaginator = client.get_paginator(
    "get_security_configurations"
)
get_table_versions_paginator: GetTableVersionsPaginator = client.get_paginator("get_table_versions")
get_tables_paginator: GetTablesPaginator = client.get_paginator("get_tables")
get_triggers_paginator: GetTriggersPaginator = client.get_paginator("get_triggers")
get_user_defined_functions_paginator: GetUserDefinedFunctionsPaginator = client.get_paginator(
    "get_user_defined_functions"
)
get_workflow_runs_paginator: GetWorkflowRunsPaginator = client.get_paginator("get_workflow_runs")
list_asset_types_paginator: ListAssetTypesPaginator = client.get_paginator("list_asset_types")
list_blueprints_paginator: ListBlueprintsPaginator = client.get_paginator("list_blueprints")
list_connection_types_paginator: ListConnectionTypesPaginator = client.get_paginator(
    "list_connection_types"
)
list_entities_paginator: ListEntitiesPaginator = client.get_paginator("list_entities")
list_form_types_paginator: ListFormTypesPaginator = client.get_paginator("list_form_types")
list_glossaries_paginator: ListGlossariesPaginator = client.get_paginator("list_glossaries")
list_glossary_terms_paginator: ListGlossaryTermsPaginator = client.get_paginator(
    "list_glossary_terms"
)
list_iterable_forms_paginator: ListIterableFormsPaginator = client.get_paginator(
    "list_iterable_forms"
)
list_jobs_paginator: ListJobsPaginator = client.get_paginator("list_jobs")
list_materialized_view_refresh_task_runs_paginator: ListMaterializedViewRefreshTaskRunsPaginator = (
    client.get_paginator("list_materialized_view_refresh_task_runs")
)
list_registries_paginator: ListRegistriesPaginator = client.get_paginator("list_registries")
list_schema_versions_paginator: ListSchemaVersionsPaginator = client.get_paginator(
    "list_schema_versions"
)
list_schemas_paginator: ListSchemasPaginator = client.get_paginator("list_schemas")
list_table_optimizer_runs_paginator: ListTableOptimizerRunsPaginator = client.get_paginator(
    "list_table_optimizer_runs"
)
list_triggers_paginator: ListTriggersPaginator = client.get_paginator("list_triggers")
list_usage_profiles_paginator: ListUsageProfilesPaginator = client.get_paginator(
    "list_usage_profiles"
)
list_workflows_paginator: ListWorkflowsPaginator = client.get_paginator("list_workflows")
search_assets_paginator: SearchAssetsPaginator = client.get_paginator("search_assets")

Literals

types_boto3_glue.literals module contains literals extracted from shapes that can be used in user code for type checking.

Full list of Glue Literals can be found in docs.

from types_boto3_glue.literals import AdditionalOptionKeysType


def check_value(value: AdditionalOptionKeysType) -> bool: ...

Type definitions

types_boto3_glue.type_defs module contains structures and shapes assembled to typed dictionaries and unions for additional type checking.

Full list of Glue TypeDefs can be found in docs.

# TypedDict usage example
from types_boto3_glue.type_defs import NotificationPropertyTypeDef


def get_value() -> NotificationPropertyTypeDef:
    return {
        "NotifyDelayAfter": ...,
    }

How it works

Fully automated mypy-boto3-builder carefully generates type annotations for each service, patiently waiting for boto3 updates. It delivers drop-in type annotations for you and makes sure that:

  • All available boto3 services are covered.
  • Each public class and method of every boto3 service gets valid type annotations extracted from botocore schemas.
  • Type annotations include up-to-date documentation.
  • Link to documentation is provided for every method.
  • Code is processed by ruff for readability.

What's new

Implemented features

  • Fully type annotated boto3, botocore, aiobotocore and aioboto3 libraries
  • mypy, pyright, VSCode, PyCharm, Sublime Text and Emacs compatibility
  • Client, ServiceResource, Resource, Waiter Paginator type annotations for each service
  • Generated TypeDefs for each service
  • Generated Literals for each service
  • Auto discovery of types for boto3.client and boto3.resource calls
  • Auto discovery of types for session.client and session.resource calls
  • Auto discovery of types for client.get_waiter and client.get_paginator calls
  • Auto discovery of types for ServiceResource and Resource collections
  • Auto discovery of types for aiobotocore.Session.create_client calls

Latest changes

Builder changelog can be found in Releases.

Versioning

types-boto3-glue version is the same as related boto3 version and follows Python Packaging version specifiers.

Thank you

Documentation

All services type annotations can be found in boto3 docs

Support and contributing

This package is auto-generated. Please reports any bugs or request new features in mypy-boto3-builder repository.

Download files

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

Source Distribution

types_boto3_glue-1.43.59.tar.gz (151.8 kB view details)

Uploaded Source

Built Distribution

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

types_boto3_glue-1.43.59-py3-none-any.whl (153.3 kB view details)

Uploaded Python 3

File details

Details for the file types_boto3_glue-1.43.59.tar.gz.

File metadata

  • Download URL: types_boto3_glue-1.43.59.tar.gz
  • Upload date:
  • Size: 151.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for types_boto3_glue-1.43.59.tar.gz
Algorithm Hash digest
SHA256 450be50c06ce4cc80167c611a95d60045990f9e468c03a03116a74990ebb65b4
MD5 8b496f8195aecdc0dc31b8b7729649aa
BLAKE2b-256 02240bdfbfe2299d5fae10fb662bb0b245b02241d77d5d2d529b6bafe32e2fbd

See more details on using hashes here.

File details

Details for the file types_boto3_glue-1.43.59-py3-none-any.whl.

File metadata

File hashes

Hashes for types_boto3_glue-1.43.59-py3-none-any.whl
Algorithm Hash digest
SHA256 0d4d0a4a7d5534da77f8e97ec3de745dff672f1ec9f6f8b77f285219f8efe5a8
MD5 f9c7fa1db34837c4045528ef1303286e
BLAKE2b-256 5577e25d34128d59a83cabe78e33d4fdff2b6d6800b89327b35a860e77b8d20c

See more details on using hashes here.

Release history Release notifications | RSS feed

1.43.72

2 files

1.43.70

2 files

1.43.65

2 files

This release

1.43.59 This release

2 files

1.43.57

2 files

1.43.37

2 files

1.43.34

2 files

1.43.32

2 files

1.43.29

2 files

1.43.23

2 files

1.43.8

2 files

1.43.7

2 files

1.43.5

2 files

1.43.0

2 files

1.42.97

2 files

1.42.89

2 files

1.42.70

2 files

1.42.68

2 files

1.42.43

2 files

1.42.25

2 files

1.42.3

2 files

1.41.1

2 files

1.41.0

2 files

1.40.75

2 files

1.40.63

2 files

1.40.50

2 files

1.40.46

2 files

1.40.39

2 files

1.40.20

2 files

1.40.15

2 files

1.40.11

2 files

1.40.10

2 files

1.40.5

2 files

1.40.0

2 files

1.39.12

2 files

1.39.7

2 files

1.39.0

2 files

1.38.46

2 files

1.38.42

2 files

1.38.41

2 files

1.38.22

2 files

1.38.20

2 files

1.38.18

2 files

1.38.12

2 files

1.38.0

2 files

1.37.31

2 files

1.37.29

2 files

1.37.13

2 files

1.37.0

2 files

1.36.4

2 files

1.36.0

2 files

1.35.93

2 files

1.35.87

2 files

1.35.80

2 files

1.35.74

2 files

1.35.71

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page