Skip to main content

py-aws-client is a Python package that simplifies the process of creating and interacting with various AWS API service clients by providing a high-level wrapper for the Boto3 AWS SDK. It includes pre-configured clients for commonly used AWS services and handles common AWS authentication mechanisms. Suitable for both novice and experienced developers looking to integrate AWS services into their Python applications.

Project description

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!

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

py-aws-client-0.0.1.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

py_aws_client-0.0.1-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file py-aws-client-0.0.1.tar.gz.

File metadata

  • Download URL: py-aws-client-0.0.1.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for py-aws-client-0.0.1.tar.gz
Algorithm Hash digest
SHA256 95f32826784275d4204cd42178577da0e82c699388e0a6cf9c91c8c1a32a7b6c
MD5 de6a5c4b09c7911dde700c12d8d0dac0
BLAKE2b-256 1a9a09cbfbcc5e6a572c5c1542d920eedb68f23b5dd5dedeb532c146a99268c1

See more details on using hashes here.

File details

Details for the file py_aws_client-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for py_aws_client-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8bc098efc468d6996d836e306560263e553609ab7a54d4b12e775d175ce0aed0
MD5 835746cc3051057290b48c12fcf0b106
BLAKE2b-256 0c17dbb1de11ffab64675414ea68831f1eabd16a95b95569c23c9defff65989d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page