210 likes | 265 Views
( Python Training : https://www.edureka.co/python-scripting ) <br>This "Python Scripting Tutorial" will introduce you to python which is a scripting language and using python you can build powerful applications easily. This video helps you to learn the below topics: <br><br>1. Scripting language Vs Programming language <br>2. Introduction to Python <br>3. Modules in Python <br>4. AWS scripting Using Boto Module <br>5. GUI Programming <br><br>Subscribe to our channel to get video updates. Hit the subscribe button and click on the bell icon.
E N D
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Agenda 1 Scripting vs Programming Language 2 Introduction To Python 3 Modules In Python Scripting 4 AWS Scripting Using Boto 5 GUI Programming Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Scripting vs Programming Language ➢ Automate certain tasks in a program ➢ Less code intensive ➢ They are interpreted rather than being compiled Java Hello Hello Python Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Introduction To Python Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Introduction To Python High-level High-level ❖ Python is easy, free & open source ❖ Python was created by Guido Van Rossum in 1989 Portable Portable ❖ Python supports procedure-oriented programming & object-oriented programming Extensible Extensible ❖ Python is an interpreted language with dynamic semantics Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Modules In Python Scripting MODULES JSON Sys module Os module Data Time Subprocess Random Math Copyright © 2018, edureka and/or its affiliates. All rights reserved.
AWS Scripting Using Boto Module Copyright © 2018, edureka and/or its affiliates. All rights reserved.
AWS Scripting Using Boto Boto EC2 Module ➢ This module provides an interface for the Elastic Compute Cloud (EC2) service from AWS ➢ It reduces the time required to obtain and boot new server instances Users of EC2 Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Configure Boto Module COMMANDS: pip install boto3 CODE: import boto3 ec2 = boto3.resource('ec2') for instance in ec2.instances.all(): print (instance.id, instance.state) pip install awscli aws configure Copyright © 2018, edureka and/or its affiliates. All rights reserved.
DEMO: Launch an EC2 Instance Copyright © 2018, edureka and/or its affiliates. All rights reserved.
AWS S3 Scripting ➢ S3 has a simple web services interface that you can use to store and retrieve data ➢ S3 provides object storage similar to a file system ➢ Folders are represented as buckets and the contents of the buckets are known as keys. Copyright © 2018, edureka and/or its affiliates. All rights reserved.
DEMO: Launch a s3 Bucket Copyright © 2018, edureka and/or its affiliates. All rights reserved.
GUI Programming Copyright © 2018, edureka and/or its affiliates. All rights reserved.
GUI Programming Python provides various options for developing Graphical User Interfaces (GUIs). Most commonly used libraries are listed below: Libraries Tkinter Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Example import Tkinter top = Tkinter.Tk() # Code to add widgets will go here... top.mainloop() This would create the window Copyright © 2018, edureka and/or its affiliates. All rights reserved.
GUI Frame Radio Buttons Labels Check Buttons Grid Buttons Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Session In A Minute Scripting vs Prog. Introduction to Python Modules In Scripting igh-level Portable Extensibl e High-level Hello Portable Extensible Python Hello GUI Programming AWS Scripting AWS EC2 Module S3 Scripting Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Don’t just learn it, MASTER it with Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.