Type annotations for boto3.Glue 1.13.26 service, generated by mypy-boto3-buider 2.0.3
Project description
mypy-boto3-glue
Type annotations for boto3.Glue 1.13.26 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.3.
More information can be found on boto3-stubs page.
How to use
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for Glue
service.
python -m pip install boto3-stubs[glue]
# update installed packages index for automated type discovery
python -m mypy_boto3
Use boto3
with mypy_boto3_glue
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_glue import GlueClient
# Now mypy can check if your code is valid.
client: GlueClient = boto3.client("glue")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: GlueClient = session.client("glue")
# Annotated paginators are included as well
import mypy_boto3_glue.paginator as glue_paginators
get_classifiers_paginator: glue_paginators.GetClassifiersPaginator = client.get_paginator("get_classifiers")
get_connections_paginator: glue_paginators.GetConnectionsPaginator = client.get_paginator("get_connections")
get_crawler_metrics_paginator: glue_paginators.GetCrawlerMetricsPaginator = client.get_paginator("get_crawler_metrics")
get_crawlers_paginator: glue_paginators.GetCrawlersPaginator = client.get_paginator("get_crawlers")
get_databases_paginator: glue_paginators.GetDatabasesPaginator = client.get_paginator("get_databases")
get_dev_endpoints_paginator: glue_paginators.GetDevEndpointsPaginator = client.get_paginator("get_dev_endpoints")
get_job_runs_paginator: glue_paginators.GetJobRunsPaginator = client.get_paginator("get_job_runs")
get_jobs_paginator: glue_paginators.GetJobsPaginator = client.get_paginator("get_jobs")
get_partitions_paginator: glue_paginators.GetPartitionsPaginator = client.get_paginator("get_partitions")
get_security_configurations_paginator: glue_paginators.GetSecurityConfigurationsPaginator = client.get_paginator("get_security_configurations")
get_table_versions_paginator: glue_paginators.GetTableVersionsPaginator = client.get_paginator("get_table_versions")
get_tables_paginator: glue_paginators.GetTablesPaginator = client.get_paginator("get_tables")
get_triggers_paginator: glue_paginators.GetTriggersPaginator = client.get_paginator("get_triggers")
get_user_defined_functions_paginator: glue_paginators.GetUserDefinedFunctionsPaginator = client.get_paginator("get_user_defined_functions")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_glue
and other installed services.
# Run this command when you add or remove service packages
python -m mypy_boto3
Generated index provides overloads for boto3.client
and boto3.service
,
boto3.Session.client
and boto3.Session.resource
functions,
so explicit type annotations are not needed.
mypy
supports function overloads as expectedPyCharm
also supports function overloads, but consumes a lot of RAM, use carefullyVSCode
does not currently support function overloads
Also, generated index allows you to import types from mypy_boto3
:
# you can replace imports
import mypy_boto3_glue as glue
from mypy_boto3_glue import GlueClient
# with these
from mypy_boto3 import glue
from mypy_boto3.glue import GlueClient
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mypy-boto3-glue-1.13.26.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bc066341594f42af9352637930997f470cc03d6ad9cf6aecd610b3e9a472f63 |
|
MD5 | 92cf09c782afc3c496d8f96c9815f2e2 |
|
BLAKE2b-256 | f11e36c41cce760215e64fc9eecd7b0494ff10847ca8dab445cb0887cce2c54c |
Hashes for mypy_boto3_glue-1.13.26.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4868f38f1c4e8252255327e8070d28ff525ea4ba6f80d3f5f53bc300bd450764 |
|
MD5 | 7311fd5facaf3f838031854a2985397e |
|
BLAKE2b-256 | 69dbd060470d849adf1339778a69df6ea45be848b1567cdaf7a2c0730f83a96e |