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.
Release files for cognito-client 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cognito_client-0.0.1.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cognito_client-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / cognito_client-0.0.1.tar.gz
| Download URL | cognito_client-0.0.1.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56782db55daf53baf7bcf20b8409e9b0a11e00f820748423d957d9481aad42f8
|
|
BLAKE2b-256 checksum How to use checksums |
99645652efcb3735936e3e6a85c582d00cc17f765fbb8ced89558d32a76a2640
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.7
|
Release files / cognito_client-0.0.1-py3-none-any.whl
| Download URL | cognito_client-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8da1e850478de08509931bfa1cc9edc6d68f254218238fe7b1fbe8e6fb1ac6c6
|
|
BLAKE2b-256 checksum How to use checksums |
902f220ffe168305cb8a7ec9645f1f9b8faa32169ce506c9390df1274de7d9f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.7
|