Skip to main content

Type annotations for boto3.CodeArtifact 1.14.59 service, generated by mypy-boto3-buider 3.0.4

Project description

mypy-boto3-codeartifact

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

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

Generated by mypy-boto3-buider 3.0.4.

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.59.0.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.59.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mypy-boto3-codeartifact-1.14.59.0.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.59.0.tar.gz
Algorithm Hash digest
SHA256 93b2e8a318d538454d916ae8d0a66588142eec62bfe80b84de962bbdcaa3fe6b
MD5 ba1508f07ad44033175c335f8fd2a825
BLAKE2b-256 5d6455ad58debb2105a6b2bb1803beec988bc56867ad8c5a251941dacd3a7549

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mypy_boto3_codeartifact-1.14.59.0-py3-none-any.whl
  • Upload date:
  • Size: 17.1 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.59.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b61c793f65c6c804d5be920fd492d0005c6bc0a1afd5d2ec2f31375061dccf57
MD5 f3afe38f9f75dcf5f692af4595fd22da
BLAKE2b-256 80e556386317f7bbd6a1873e17d86d4b5fd8e70ce984482af771c7ce9f727487

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