py-aws-client
py-aws-client is a Python package that provides a high-level wrapper for the Boto3 AWS SDK, allowing for extended customization and ease of use. It simplifies the process of creating and interacting with various AWS API service clients by providing a simple and consistent interface. The package includes pre-configured clients for commonly used AWS services such as Auto Scaling, CloudWatch, DynamoDB, EC2, S3, and more. It also handles common AWS authentication mechanisms and can be used with either a default profile or a specified profile.
Installation
You can install py-aws-client using pip:
pip install py-aws-client
Usage
Here's an example of how to use py-aws-client to interact with AWS services:
from py_aws_client import PyAwsClient
# Create a new client with the default profile
client = PyAwsClient(region='us-east-1')
# Create a new EC2 client
ec2 = client.ec2()
# List all instances
instances = ec2.describe_instances()
for reservation in instances['Reservations']:
for instance in reservation['Instances']:
print(f"Instance ID: {instance['InstanceId']}, State: {instance['State']['Name']}")
In this example, we create a new PyAwsClient instance with the default profile and use it to create a new EC2 client.
We then use the describe_instances method to retrieve information about all EC2 instances in the region and print out their instance IDs and states.
You can also use a named profile by passing the profile_name parameter to the PyAwsClient constructor:
# Create a new client with a named profile
client = PyAwsClient(region='us-east-1', profile_name='my-profile')
License
This package is licensed under the MIT License. See the LICENSE file for details.
Contributing
If you have suggestions for new features, bug fixes, or other improvements, please open an issue or pull request on GitHub.
Acknowledgements
py-aws-client is built using the Boto3 AWS SDK and would not be possible without the hard work of the Boto3 team and the AWS community. Thank you for your contributions!
Metadata
Release files for py-aws-client 0.0.1
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 | |
|---|---|---|---|---|
| py-aws-client-0.0.1.tar.gz | 18.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_aws_client-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 43.1 kB
Release files / py-aws-client-0.0.1.tar.gz
| Download URL | py-aws-client-0.0.1.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95f32826784275d4204cd42178577da0e82c699388e0a6cf9c91c8c1a32a7b6c
|
|
BLAKE2b-256 checksum How to use checksums |
1a9a09cbfbcc5e6a572c5c1542d920eedb68f23b5dd5dedeb532c146a99268c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / py_aws_client-0.0.1-py3-none-any.whl
| Download URL | py_aws_client-0.0.1-py3-none-any.whl |
|---|---|
| Size | 24.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8bc098efc468d6996d836e306560263e553609ab7a54d4b12e775d175ce0aed0
|
|
BLAKE2b-256 checksum How to use checksums |
0c17dbb1de11ffab64675414ea68831f1eabd16a95b95569c23c9defff65989d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for py-aws-client 0.0.1
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.