Registry / aws / aws2-wrap

aws2-wrap

JSON →
library1.4.0pypypi✓ verified 81d ago

A wrapper for executing a command with AWS CLI v2 and SSO. Current version 1.4.0, requires Python >=3.8. Released irregularly as needed.

pip install aws2-wrap
INSTALL
IMPORT
SIG · AWS2-WRAP
A
aws2-wrap
awspythonv1.4.0
Install
1.8s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.4.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.6MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.8s · import 0.000s · 19MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Aws2WrapError
from aws2wrap import Aws2WrapError
from aws2-wrap import Aws2Wrap
ProfileDef
from aws2wrap import ProfileDef
main
from aws2wrap import main

Basic usage: instantiate Aws2Wrap with an AWS SSO profile and run AWS CLI commands.

from aws2-wrap import Aws2Wrap # Use with AWS SSO profile aws = Aws2Wrap(profile='my-sso-profile') # Execute an AWS CLI command result = aws.run(['s3', 'ls']) print(result.stdout)
aws2-wrap --version
Debug
Known issues
gotchaThe AWS CLI v2 must be installed and in PATH. aws2-wrap does not bundle it.
fix
Install AWS CLI v2 separately via official instructions.
affects: all
gotchaThe profile must already have valid SSO credentials cached (e.g., from `aws sso login`).
fix
Run `aws sso login --profile <profile-name>` before using aws2-wrap.
affects: all
deprecatedThe previous CLI-style usage via `aws2-wrap` command may be removed or changed in future versions. Prefer the Python API.
fix
Use `from aws2-wrap import Aws2Wrap` instead of calling the command-line tool.
affects: <2.0.0
Upgrade
Version history
1.4.0latest on PyPI · released Dec 9, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
20
Resources
aws2-wrap — pip install aws2-wrap · libregistry