semvec/pypi-packages huggingface dataset:
ec2-task 0.9
A python module to manage AWS EC2 instances.
License: MIT License

Copyright (c) 2018 Dr. Shubham Dipt

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Description: ec2_task
        =================
        
        Enabling easy start, running of tasks and stopping of EC2 instances in AWS.
        
        Requirements
        ------------
        
        * Python3 (>=3.4)
        
        
        ### Usage
        
            $ pip install ec2-task
        
        Add your AWS credentials and details of your EC2 instance in config file e.g. aws_config.ini.
        The aws_config file should have the following:
        
            [aws]
            AWS_ACCESS_KEY_ID=
            AWS_SECRET_ACCESS_KEY
            INSTANCE_ID=
            REGION=
            KEY_PATH=<path to aws key file for ssh>
            USER=<user e.g. ubuntu>
        
        List of tasks should be added as a separate file (containing mainly shell commands) e.g. task.sh.
        
            >>> from ec2_task import connect_ec2
            >>> ec2_instance = connect_ec2.Ec2Instance(config_file="aws_config.ini") # include the path of your aws config file
            >>> ec2_instance.start_instance()
            >>> ec2_instance.run_task(task_file="task.sh") # include the path of your task file
            >>> ec2_instance.stop_instance()
            
        Check example in the Github repository.
        
Platform: any
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent