Skip to main content

Type annotations for boto3.CodeArtifact 1.17.17 service, generated by mypy-boto3-buider 4.4.0

Project description

mypy-boto3-codeartifact

PyPI - mypy-boto3-codeartifact PyPI - Python Version Docs

boto3.typed

Type annotations for boto3.CodeArtifact 1.17.17 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.

Generated by mypy-boto3-buider 4.4.0.

More information can be found on boto3-stubs page.

See how it helps to find and fix potential bugs:

boto3-stubs demo

How to install

Install boto3-stubs for CodeArtifact service.

python -m pip install boto3-stubs[codeartifact]

Usage

VSCode

  • Install Python extension
  • Install Pylance extension
  • Set Pylance as your Python Language Server
  • Install boto-stubs[codeartifact] in your environment: python -m pip install 'boto3-stubs[codeartifact]'

Both type checking and auto-complete should work for CodeArtifact service. No explicit type annotations required, write your boto3 code as usual.

PyCharm

  • Install boto-stubs[codeartifact] in your environment: python -m pip install 'boto3-stubs[codeartifact]'

Both type checking and auto-complete should work for CodeArtifact service. No explicit type annotations required, write your boto3 code as usual. Auto-complete can be slow on big projects or if you have a lot of installed boto3-stubs submodules.

Other IDEs

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

mypy

  • Install mypy: python -m pip install mypy
  • Install boto-stubs[codeartifact] in your environment: python -m pip install 'boto3-stubs[codeartifact]'
  • Run mypy as usual

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

pyright

  • Install pyright: yarn global add pyright
  • Install boto-stubs[codeartifact] in your environment: python -m pip install 'boto3-stubs[codeartifact]'
  • Optionally, you can install boto3-stubs to typings folder.

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

Explicit type annotations

Client annotations

CodeArtifactClient provides annotations for boto3.client("codeartifact").

import boto3

from mypy_boto3_codeartifact import CodeArtifactClient

client: CodeArtifactClient = boto3.client("codeartifact")

# now client usage is checked by mypy and IDE should provide code auto-complete

# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: CodeArtifactClient = session.client("codeartifact")

Paginators annotations

mypy_boto3_codeartifact.paginator module contains type annotations for all paginators.

from mypy_boto3_codeartifact import CodeArtifactClient
from mypy_boto3_codeartifact.paginator import (
    ListDomainsPaginator,
    ListPackageVersionAssetsPaginator,
    ListPackageVersionsPaginator,
    ListPackagesPaginator,
    ListRepositoriesPaginator,
    ListRepositoriesInDomainPaginator,
)

client: CodeArtifactClient = boto3.client("codeartifact")

# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
list_domains_paginator: ListDomainsPaginator = client.get_paginator("list_domains")
list_package_version_assets_paginator: ListPackageVersionAssetsPaginator = client.get_paginator("list_package_version_assets")
list_package_versions_paginator: ListPackageVersionsPaginator = client.get_paginator("list_package_versions")
list_packages_paginator: ListPackagesPaginator = client.get_paginator("list_packages")
list_repositories_paginator: ListRepositoriesPaginator = client.get_paginator("list_repositories")
list_repositories_in_domain_paginator: ListRepositoriesInDomainPaginator = client.get_paginator("list_repositories_in_domain")

Typed dictionations

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

from mypy_boto3_codeartifact.type_defs import (
    AssetSummaryTypeDef,
    DomainDescriptionTypeDef,
    DomainSummaryTypeDef,
    LicenseInfoTypeDef,
    PackageDependencyTypeDef,
    PackageSummaryTypeDef,
    PackageVersionDescriptionTypeDef,
    PackageVersionErrorTypeDef,
    PackageVersionSummaryTypeDef,
    RepositoryDescriptionTypeDef,
    RepositoryExternalConnectionInfoTypeDef,
    RepositorySummaryTypeDef,
    ResourcePolicyTypeDef,
    SuccessfulPackageVersionInfoTypeDef,
    TagTypeDef,
    UpstreamRepositoryInfoTypeDef,
    AssociateExternalConnectionResultTypeDef,
    CopyPackageVersionsResultTypeDef,
    CreateDomainResultTypeDef,
    CreateRepositoryResultTypeDef,
    DeleteDomainPermissionsPolicyResultTypeDef,
    DeleteDomainResultTypeDef,
    DeletePackageVersionsResultTypeDef,
    DeleteRepositoryPermissionsPolicyResultTypeDef,
    DeleteRepositoryResultTypeDef,
    DescribeDomainResultTypeDef,
    DescribePackageVersionResultTypeDef,
    DescribeRepositoryResultTypeDef,
    DisassociateExternalConnectionResultTypeDef,
    DisposePackageVersionsResultTypeDef,
    GetAuthorizationTokenResultTypeDef,
    GetDomainPermissionsPolicyResultTypeDef,
    GetPackageVersionAssetResultTypeDef,
    GetPackageVersionReadmeResultTypeDef,
    GetRepositoryEndpointResultTypeDef,
    GetRepositoryPermissionsPolicyResultTypeDef,
    ListDomainsResultTypeDef,
    ListPackageVersionAssetsResultTypeDef,
    ListPackageVersionDependenciesResultTypeDef,
    ListPackageVersionsResultTypeDef,
    ListPackagesResultTypeDef,
    ListRepositoriesInDomainResultTypeDef,
    ListRepositoriesResultTypeDef,
    ListTagsForResourceResultTypeDef,
    PaginatorConfigTypeDef,
    PutDomainPermissionsPolicyResultTypeDef,
    PutRepositoryPermissionsPolicyResultTypeDef,
    UpdatePackageVersionsStatusResultTypeDef,
    UpdateRepositoryResultTypeDef,
    UpstreamRepositoryTypeDef,
)

def get_structure() -> AssetSummaryTypeDef:
    return {
      ...
    }

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

mypy-boto3-codeartifact-1.17.17.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

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

mypy_boto3_codeartifact-1.17.17.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file mypy-boto3-codeartifact-1.17.17.0.tar.gz.

File metadata

  • Download URL: mypy-boto3-codeartifact-1.17.17.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.7

File hashes

Hashes for mypy-boto3-codeartifact-1.17.17.0.tar.gz
Algorithm Hash digest
SHA256 1a2978b32e0e01dd0134565840892cb2439e96b84fc5f07f5cd6ec403e39c78f
MD5 0d11a809a97047b2c28c91dc33419430
BLAKE2b-256 93c16b23c43c69e988400099fe1b36d953f0577c7a80a7484438e0f719aa5b2c

See more details on using hashes here.

File details

Details for the file mypy_boto3_codeartifact-1.17.17.0-py3-none-any.whl.

File metadata

  • Download URL: mypy_boto3_codeartifact-1.17.17.0-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.7

File hashes

Hashes for mypy_boto3_codeartifact-1.17.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8c8ddd60134bd15ee40bfdb09b3f57519a823d7d534a1f765e017f50fa24380
MD5 526d2db51fcf9789c5856a42762161b6
BLAKE2b-256 6369a12b6a0676bc0d8df9a81d4663a7aea99cc8939c73b43bdbbeb99b24fb63

See more details on using hashes here.

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