Skip to main content

A small example package

Project description

Cognito Client

A client to smooth over process of common authentication scenarios using AWS Cognito. Intended to be used within an interactive terminal environment (e.g. Python Notebook, CLI).

Usage

Install

pip install cognito_client

Use

Create an .env file in the format of examples/env.example and create a client in the same directory:

client = CognitoClient()

OR pass the Cognito identifiers as arguments to the function:

client = CognitoClient(
    client_id="XXX",
    user_pool_id="us-west-XXX",
    identity_pool_id="us-west-2:XXX",
)

See examples/temporary-credentials-example.ipynb.

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

cognito_client-0.0.1.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

cognito_client-0.0.1-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page