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

Uploaded Python 3

File details

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

File metadata

  • Download URL: david_aws_util-1.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 f133ca1283c39a155c6b4db83d0cfa06714bc737ea25098f2940b8908d4ab3fd
MD5 401318a735b62ce415ad2fdaccf423a5
BLAKE2b-256 ae7d083de495e06a7ef0be9c915731235b9a33e96e618398a95589b894e1e42d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: david_aws_util-1.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 68bfeac56f05c57b4499b80b3c4808fc8e60afcf51692f9da1d5e46fd0c2970b
MD5 e79456d1b89ea89265bf29e082dae18d
BLAKE2b-256 898b786dfc58add2e08daa72362a609e5c30bc875648a90ff1e252faad217c21

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