Skip to main content

david's aws util

Project description

DAVID L. Python Package

Workflow : Publish to PyPI

Usage

Get AWS Session Credentials by sts:assume_role

from aws_util.aws import get_sts_assume_role

sts_credentials = get_sts_assume_role(aws_access_key, aws_secret_key, role_arn, role_session_name='aws_session'):

It return above dict.

type: dict
result = 
  {'AccessKeyId': 'ASI...', 
   'SecretAccessKey': 'o8Y...', 
   'SessionToken': 'Fwo...', 
   'Expiration': datetime.datetime(2099, 12, 31, 00, 00, 00, tzinfo=tzutc())}

Installation

$ pip install david_aws_util --upgrade

or

$ !pip install --upgrade --no-cache-dir --no-warn-script-location david_aws_util > /dev/null 2>&1

If you would like to install submodules for Individual.

$ pip install david_aws_util[extra] --upgrade

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

david_aws_util-1.1.3.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

david_aws_util-1.1.3-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file david_aws_util-1.1.3.tar.gz.

File metadata

  • Download URL: david_aws_util-1.1.3.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for david_aws_util-1.1.3.tar.gz
Algorithm Hash digest
SHA256 1bc5117ce3e3e420df921dfda04ab07e9658a5f80d0e6fe8a926a9f761c6772b
MD5 0abe7304dc00c6432b1ff7a321b12d40
BLAKE2b-256 8985f47147788a1e3dcb09077c4b52c489f36d0e39fa0e979071dafb3a89ea5f

See more details on using hashes here.

File details

Details for the file david_aws_util-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: david_aws_util-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for david_aws_util-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 eac89e45b82cffa341355c46f3c5cf97d37f9490d6cdc69bb33ef7df181ac7db
MD5 3b84ced1faf939bde373cc340ec97005
BLAKE2b-256 39cec57923d770ba60e9fcf8f4746d31516cfe2a28a39b6cb852d23f65b09a89

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