Skip to main content

Type annotations for boto3.CodeArtifact 1.14.55 service, generated by mypy-boto3-buider 3.0.2

Project description

mypy-boto3-codeartifact

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

Type annotations for boto3.CodeArtifact 1.14.55 service compatible with VSCode, PyCharm, mypy, pyright and other tools.

Generated by mypy-boto3-buider 3.0.2.

More information can be found on boto3-stubs page.

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,
    PackageDependencyTypeDef,
    PackageSummaryTypeDef,
    PackageVersionDescriptionTypeDef,
    PackageVersionErrorTypeDef,
    PackageVersionSummaryTypeDef,
    PaginatorConfigTypeDef,
    PutDomainPermissionsPolicyResultTypeDef,
    PutRepositoryPermissionsPolicyResultTypeDef,
    RepositoryDescriptionTypeDef,
    RepositoryExternalConnectionInfoTypeDef,
    RepositorySummaryTypeDef,
    ResourcePolicyTypeDef,
    SuccessfulPackageVersionInfoTypeDef,
    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.14.55.1.tar.gz (11.4 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.14.55.1-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mypy-boto3-codeartifact-1.14.55.1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for mypy-boto3-codeartifact-1.14.55.1.tar.gz
Algorithm Hash digest
SHA256 0b1eae3fee0977e5851b88a5d382c5e550a50e9e7521d3f0813df473b95ee380
MD5 c55d72b8f6c5858d2e554b5af1c2f901
BLAKE2b-256 10a4ad27c669ef3f7f0c8d8e11e8c1bad1eaa7d2270eb5804dc6e2b9fd14a438

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mypy_boto3_codeartifact-1.14.55.1-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for mypy_boto3_codeartifact-1.14.55.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8755b4c8c700f0aa52b1efaacbc660210c94eda15143161a68e1500bd92bc3ea
MD5 48099ab2f69f899fe46e550018bd399f
BLAKE2b-256 515aebf8db8d88edf6024df95ad63ba6a06043b8b7e771fed622b1314d914ad9

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