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.4.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.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: david_aws_util-1.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 09bf4aadc5a063045dec96d40f16582bdaeb402823834eecaf38225ead41b3dc
MD5 f18e18b73203895e9fb95aa9655b1a85
BLAKE2b-256 5e4c822d755a27fdbdbc5a328490f6d73ad2671375ef02d19c60be0aabd70007

See more details on using hashes here.

File details

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

File metadata

  • Download URL: david_aws_util-1.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2cb2c8c497f54d35ab968e88f8f3ca4b24efd17bf35eca5cb2e59aafb5b169f5
MD5 c34ce3ca256a25dcc8a879168dbcc0a6
BLAKE2b-256 49e6c752f55221c76bfd7a75222586f7752957f2bde1a494e9ee9108ee80b895

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