Skip to main content

Type annotations for boto3.CodeArtifact 1.17.42 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.42 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.42.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.42.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mypy-boto3-codeartifact-1.17.42.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for mypy-boto3-codeartifact-1.17.42.0.tar.gz
Algorithm Hash digest
SHA256 1ba465be748d33d8ade251f03c8b7908eb6eed23594f8f5f831dbd671bb5b908
MD5 9b4ddcc45244569056b18318d3bb2c1a
BLAKE2b-256 f9f181d1a8b7e243e7dc276c3c7dbcbbb60f2483fb9e9f9a9fa50e5977712ce9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mypy_boto3_codeartifact-1.17.42.0-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for mypy_boto3_codeartifact-1.17.42.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9680f0b990cabe74a39f5d2a18920c76af8ce441468738142f24acc5535bda8a
MD5 e64184efa8f50b25a4e75d6054ddc6e7
BLAKE2b-256 6e9dddc8a2ac74aac712ccd4fb7e3828e88ad30345f4e8363236d712e2d6ef2c

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