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.7.tar.gz (5.5 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.7-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for david_aws_util-1.1.7.tar.gz
Algorithm Hash digest
SHA256 163685e540f26a4be45795943d03bdba2f5991f3481fbfad5b00e9c9188ff2fc
MD5 09bea94bbc9f24f23214761561361da0
BLAKE2b-256 f4097766342e52755dc6a87b21e36d9f5590d8fed18309603d1d72b341f26752

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for david_aws_util-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b4cb20b885e478d840309d01d6d0dca4c2c96eb30baed374ab1d70544d977066
MD5 18aa30019b4d5d8e96e41c0625bd5329
BLAKE2b-256 40489aa37b391498edd4db503f7a0b34fd7d56f676660a44b97f08172cc135b8

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