Skip to main content

Type annotations for aiobotocore.CodeStar 2.1.0 service generated by mypy-boto3-builder 6.4.2

Project description

mypy-boto3-codestar

PyPI - types-aiobotocore-codestar PyPI - Python Version Docs PyPI - Downloads

boto3.typed

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

Generated by mypy-boto3-builder 6.4.2.

More information can be found on boto3-stubs page and in types-aiobotocore-codestar docs

See how it helps to find and fix potential bugs:

boto3-stubs demo

How to install

VSCode extension

Add AWS Boto3 extension to your VSCode and run AWS boto3: Quick Start command.

Click Modify and select boto3 common and CodeStar.

From PyPI with pip

Install types-aiobotocore for CodeStar service.

# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[codestar]'

# Lite version does not provide session.create_client overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aiobotocore-lite[codestar]'

# standalone installation
python -m pip install types-aiobotocore-codestar

Usage

VSCode

  • Install Python extension
  • Install Pylance extension
  • Set Pylance as your Python Language Server
  • Install types-aiobotocore[codestar] in your environment: python -m pip install 'types-aiobotocore[codestar]'

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

PyCharm

  • Install types-aiobotocore[codestar] in your environment: python -m pip install 'types-aiobotocore[codestar]'

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

Other IDEs

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

mypy

  • Install mypy: python -m pip install mypy
  • Install types-aiobotocore[codestar] in your environment: python -m pip install 'types-aiobotocore[codestar]'
  • Run mypy as usual

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

pyright

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

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

Explicit type annotations

Client annotations

CodeStarClient provides annotations for session.create_client("codestar").

from aiobotocore.session import get_session

from types_aiobotocore_codestar import CodeStarClient

session = get_session()
async with session.create_client("codestar") as client:
    client: CodeStarClient
    # now client usage is checked by mypy and IDE should provide code auto-complete

Paginators annotations

types_aiobotocore_codestar.paginator module contains type annotations for all paginators.

from aiobotocore.session import get_session

from types_aiobotocore_codestar import CodeStarClient
from types_aiobotocore_codestar.paginator import (
    ListProjectsPaginator,
    ListResourcesPaginator,
    ListTeamMembersPaginator,
    ListUserProfilesPaginator,
)

session = get_session()
async with session.create_client("codestar") as client:
    client: CodeStarClient

    # Explicit type annotations are optional here
    # Type should be correctly discovered by mypy and IDEs
    # VSCode requires explicit type annotations
        list_projects_paginator: ListProjectsPaginator = client.get_paginator("list_projects")
        list_resources_paginator: ListResourcesPaginator = client.get_paginator("list_resources")
        list_team_members_paginator: ListTeamMembersPaginator = client.get_paginator("list_team_members")
        list_user_profiles_paginator: ListUserProfilesPaginator = client.get_paginator("list_user_profiles")
    ```







### Literals

`types_aiobotocore_codestar.literals` module contains literals extracted from shapes
that can be used in user code for type checking.

```python
from types_aiobotocore_codestar.literals import (
    ListProjectsPaginatorName,
    ListResourcesPaginatorName,
    ListTeamMembersPaginatorName,
    ListUserProfilesPaginatorName,
    ServiceName,
    PaginatorName,
)

def check_value(value: ListProjectsPaginatorName) -> bool:
    ...

Typed dictionaries

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

from types_aiobotocore_codestar.type_defs import (
    AssociateTeamMemberRequestRequestTypeDef,
    AssociateTeamMemberResultTypeDef,
    CodeCommitCodeDestinationTypeDef,
    CodeDestinationTypeDef,
    CodeSourceTypeDef,
    CodeTypeDef,
    CreateProjectRequestRequestTypeDef,
    CreateProjectResultTypeDef,
    CreateUserProfileRequestRequestTypeDef,
    CreateUserProfileResultTypeDef,
    DeleteProjectRequestRequestTypeDef,
    DeleteProjectResultTypeDef,
    DeleteUserProfileRequestRequestTypeDef,
    DeleteUserProfileResultTypeDef,
    DescribeProjectRequestRequestTypeDef,
    DescribeProjectResultTypeDef,
    DescribeUserProfileRequestRequestTypeDef,
    DescribeUserProfileResultTypeDef,
    DisassociateTeamMemberRequestRequestTypeDef,
    GitHubCodeDestinationTypeDef,
    ListProjectsRequestRequestTypeDef,
    ListProjectsResultTypeDef,
    ListResourcesRequestRequestTypeDef,
    ListResourcesResultTypeDef,
    ListTagsForProjectRequestRequestTypeDef,
    ListTagsForProjectResultTypeDef,
    ListTeamMembersRequestRequestTypeDef,
    ListTeamMembersResultTypeDef,
    ListUserProfilesRequestRequestTypeDef,
    ListUserProfilesResultTypeDef,
    PaginatorConfigTypeDef,
    ProjectStatusTypeDef,
    ProjectSummaryTypeDef,
    ResourceTypeDef,
    ResponseMetadataTypeDef,
    S3LocationTypeDef,
    TagProjectRequestRequestTypeDef,
    TagProjectResultTypeDef,
    TeamMemberTypeDef,
    ToolchainSourceTypeDef,
    ToolchainTypeDef,
    UntagProjectRequestRequestTypeDef,
    UpdateProjectRequestRequestTypeDef,
    UpdateTeamMemberRequestRequestTypeDef,
    UpdateTeamMemberResultTypeDef,
    UpdateUserProfileRequestRequestTypeDef,
    UpdateUserProfileResultTypeDef,
    UserProfileSummaryTypeDef,
)

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

Versioning

types-aiobotocore-codestar version is the same as related boto3 version and follows PEP 440 format.

Documentation

All type annotations can be found in types-aiobotocore-codestar docs

Support and contributing

This package is auto-generated. Please reports any bugs or request new features in mypy-boto3-builder repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

types-aiobotocore-codestar-2.1.0.post1.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file types-aiobotocore-codestar-2.1.0.post1.tar.gz.

File metadata

  • Download URL: types-aiobotocore-codestar-2.1.0.post1.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for types-aiobotocore-codestar-2.1.0.post1.tar.gz
Algorithm Hash digest
SHA256 95ffef2ba789957fecbf21d62fb016d2468e9ce4e4a0de4a111fc0114fba492d
MD5 17dd3febc24bca714488740f81b69352
BLAKE2b-256 b267684d4c0fdf37d59673d329b7896a233aaecef25c48ac714b18c65c7194d1

See more details on using hashes here.

File details

Details for the file types_aiobotocore_codestar-2.1.0.post1-py3-none-any.whl.

File metadata

  • Download URL: types_aiobotocore_codestar-2.1.0.post1-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for types_aiobotocore_codestar-2.1.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 4c86b9a0fe9cb878e7d02baaf26273b9689ddd8286fa3f96790603457df64b47
MD5 7ea6306e7d1c421f2b5fd7d4e30b038f
BLAKE2b-256 05401e6ce7faa931b88abc66a920da5147b6955f41ad1532b7c71c7a64a89e47

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