Skip to main content

Type annotations for boto3.CodeArtifact 1.17.1 service, generated by mypy-boto3-buider 4.3.1

Project description

mypy-boto3-codeartifact

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

boto3.typed

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

Generated by mypy-boto3-buider 4.3.1.

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,
    ListPackagesPaginator,
    ListPackageVersionAssetsPaginator,
    ListPackageVersionsPaginator,
    ListRepositoriesInDomainPaginator,
    ListRepositoriesPaginator,
)

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,
    AssociateExternalConnectionResultTypeDef,
    CopyPackageVersionsResultTypeDef,
    CreateDomainResultTypeDef,
    CreateRepositoryResultTypeDef,
    DeleteDomainPermissionsPolicyResultTypeDef,
    DeleteDomainResultTypeDef,
    DeletePackageVersionsResultTypeDef,
    DeleteRepositoryPermissionsPolicyResultTypeDef,
    DeleteRepositoryResultTypeDef,
    DescribeDomainResultTypeDef,
    DescribePackageVersionResultTypeDef,
    DescribeRepositoryResultTypeDef,
    DisassociateExternalConnectionResultTypeDef,
    DisposePackageVersionsResultTypeDef,
    DomainDescriptionTypeDef,
    DomainSummaryTypeDef,
    GetAuthorizationTokenResultTypeDef,
    GetDomainPermissionsPolicyResultTypeDef,
    GetPackageVersionAssetResultTypeDef,
    GetPackageVersionReadmeResultTypeDef,
    GetRepositoryEndpointResultTypeDef,
    GetRepositoryPermissionsPolicyResultTypeDef,
    LicenseInfoTypeDef,
    ListDomainsResultTypeDef,
    ListPackagesResultTypeDef,
    ListPackageVersionAssetsResultTypeDef,
    ListPackageVersionDependenciesResultTypeDef,
    ListPackageVersionsResultTypeDef,
    ListRepositoriesInDomainResultTypeDef,
    ListRepositoriesResultTypeDef,
    ListTagsForResourceResultTypeDef,
    PackageDependencyTypeDef,
    PackageSummaryTypeDef,
    PackageVersionDescriptionTypeDef,
    PackageVersionErrorTypeDef,
    PackageVersionSummaryTypeDef,
    PaginatorConfigTypeDef,
    PutDomainPermissionsPolicyResultTypeDef,
    PutRepositoryPermissionsPolicyResultTypeDef,
    RepositoryDescriptionTypeDef,
    RepositoryExternalConnectionInfoTypeDef,
    RepositorySummaryTypeDef,
    ResourcePolicyTypeDef,
    SuccessfulPackageVersionInfoTypeDef,
    TagTypeDef,
    UpdatePackageVersionsStatusResultTypeDef,
    UpdateRepositoryResultTypeDef,
    UpstreamRepositoryInfoTypeDef,
    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.1.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.1.0-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mypy-boto3-codeartifact-1.17.1.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.56.0 CPython/3.8.7

File hashes

Hashes for mypy-boto3-codeartifact-1.17.1.0.tar.gz
Algorithm Hash digest
SHA256 5377c92c306d7a380969573e63e70728dbc5ef0a6bbb2126b5df41c38b08147c
MD5 79c74b38a46a9d903e6dd296754ebe8d
BLAKE2b-256 918a436db919407b7febdf0e9a77dc55e8f7ab61d4c4053bb5fbe90cea379eab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mypy_boto3_codeartifact-1.17.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.3 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.56.0 CPython/3.8.7

File hashes

Hashes for mypy_boto3_codeartifact-1.17.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7759b68b32e7daff89583f3eca6b030670985c950fc4cb61c504608e2d0d4f85
MD5 a21c8cb5093849e32a1b34e61f988c8e
BLAKE2b-256 26df4fed37a27d1a864bcd71fcf32c3250e073c1049d21f134ab5ae73b886d32

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