awswrapper-0.3.0
توضیحات
Wrapper of AWS API to use with Lambda
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | awswrapper-0.3.0 |
| نام | awswrapper |
| نسخه کتابخانه | 0.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Hector Reyes Aleman |
| ایمیل نویسنده | hector@eclecticiq.com |
| آدرس صفحه اصلی | https://github.com/EclecticIQ/python-aws-wrapper |
| آدرس اینترنتی | https://pypi.org/project/awswrapper/ |
| مجوز | BSD |
awswrapper - AWS API Wrapper
========================
AWS API Wrapper for Lambda
Usage
-----
It will look into your aws credentials file
Import the ec2wrapper
>>> from awswrapper import ec2wrapper
Use describe functions for talk to aws
>>> ec2wrapper.describe_instances(state=None)
>>> ec2wrapper.describe_instances_by_tag(tag, value=None, state=None)
Execute actions on those Instances
>>> ec2wrapper.terminate_instances(instance_ids, dry_run)
>>> ec2wrapper.stop_instances(instance_ids, dry_run)
>>> ec2wrapper.start_instances(instance_ids, dry_run)
Get data from the EC2 Response
>>> ec2wrapper.get_instances_data(ec2_instances)
>>> ec2wrapper.get_instances_ids(ec2_instances)
Get data from Instance
>>> ec2wrapper.get_tags_from_instance(instance)
Get the EC2 Connection
>>> ec2wrapper.get_ec2_connection(instance)
نیازمندی
| مقدار | نام |
|---|---|
| - | boto3 |
نحوه نصب
نصب پکیج whl awswrapper-0.3.0:
pip install awswrapper-0.3.0.whl
نصب پکیج tar.gz awswrapper-0.3.0:
pip install awswrapper-0.3.0.tar.gz