aws_org_client
Contents
Overview
This project is a python package, aimed at providing a simple interface with AWS organisation & identity services.
Using boto3 clients:
- identitystore
- organizations
- sso-admin
Example Usage
Setup boto session & initialise organisations client to list accounts.
import boto3
from aws_org_client.organizations import Organizations
session = boto3.Session(profile_name='my_profile', region_name='my_region')
client = Organizations()
client.list_accounts()
Example response:
[
{
"Id": "string",
"Arn": "string",
"Email": "string",
"Name": "string",
"Status": "ACTIVE",
"JoinedMethod": "CREATED",
"JoinedTimestamp": datetime.datetime(1970, 1, 1, 00, 00, 00, 000000, tzinfo=tzlocal())
}
]
Development
Requirements
- Install python poetry.
- You will need a working aws profile configured in your filesystem.
Setup
Initialise a poetry environment:
poetry shell
Install dependencies:
poetry install
Project processes
Coverage report
run coverage report:
poetry run coverage run -m --source=aws_org_client pytest tests
poetry run coverage report
Linting
run pylint with:
poetry run pylint aws_org_client
poetry run pylint tests
Formatting
run black formatter with:
poetry run black .
SAST
run bandit scanner:
poetry run bandit .
Documentation
this project uses sphinx to produce a static html site; published to github pages.
github actions takes care of building the site & publishing it.
to update the files used to build documentation use:
poetry run sphinx-apidoc --ext-autodoc -f -o docs .
include any changes to the docs directory
Build Documentation locally
you may wish to build documentation locally before publishing it.
form the project root run:
poetry run sphinx-build docs _build
this will create directory _build in the project root where you can load
html in your browser.
Metadata
Release files for aws-org-client 0.0.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aws_org_client-0.0.17.tar.gz | 8.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aws_org_client-0.0.17-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.6 kB
Release files / aws_org_client-0.0.17.tar.gz
| Download URL | aws_org_client-0.0.17.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e24cfdca0ba732564c77a3dfcc751adc2c12247042fe06a84a09bbc8e997d013
|
|
BLAKE2b-256 checksum How to use checksums |
8013ffe3d5577d4d3e06fb3f5871459471ee32064be82acdbb63e4868abf4ac1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.13.1 Darwin/23.6.0
|
Release files / aws_org_client-0.0.17-py3-none-any.whl
| Download URL | aws_org_client-0.0.17-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50f32884380dc1404c476d8419a92463bde9f331299907278fe8007c3ef54dc5
|
|
BLAKE2b-256 checksum How to use checksums |
b1d0e618b6dbe7e02b0be8c7ffe0f2d21b3f900c9471d81152e0135774e17dbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.13.1 Darwin/23.6.0
|
Security for aws-org-client 0.0.17
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.