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

Uploaded Python 3

File details

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

File metadata

  • Download URL: david_aws_util-1.1.1.tar.gz
  • Upload date:
  • Size: 5.3 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.1.tar.gz
Algorithm Hash digest
SHA256 f8a3c8e536a29ac455952ed774693d153cb30b559e2d5162d1209264114f351d
MD5 ed8ddd569c3f819fd2b6c2c15136f739
BLAKE2b-256 09fe46b9c2f5bb4768479c87fc2b9922ecd5e6fac4143d901ff7aa009f6fe9a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: david_aws_util-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4330dfd39abce9bcff0774d57c30609d48d7935ea770106b1e6cd25b3ae36994
MD5 c97a637ed5720b1c2455aade12459180
BLAKE2b-256 6de48023c6159dc455ef40d17c95a8cb417af17c3826b57e360430299b54ffe3

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