• Save
Leverage the power of the Cloud using Python
Upcoming SlideShare
Loading in...5

Like this? Share it with your network


Leverage the power of the Cloud using Python

Uploaded on

Leverage the power of the cloud using Python which has a very low learning curve but extremely powerful and since its intuitive its very easy to use. ...

Leverage the power of the cloud using Python which has a very low learning curve but extremely powerful and since its intuitive its very easy to use.
There is also a tutorial in this presentation which will help you get started easily.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads


Total Views
On Slideshare
From Embeds
Number of Embeds



Embeds 620

http://in.pycon.org 554
http://www.venumurthy.com 32
http://blog-venumurthy.rhcloud.com 27
https://blog-venumurthy.rhcloud.com 5
http://plus.url.google.com 1
http://8398978573584064504_b0b325bf110120a35691a1948b98cd4e57ad69e2.blogspot.com 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

    No notes for slide
  • Producers of movies like Avatar, “The mummy returns”
  • Instances are what are nodes in Amazon EC2
  • Note down the Project ID:
  • Hope you’ve been able to install the gcutil tool using the prerequisites sheet that I had sent.In case not, this is how we can do itGo to http://goo.gl/sLi7Q for instructions on how to have this installed.
  • How many of you know Oauth?
  • Use below only if the apache doesn’t get installed at first go.sudo yum update echo '<!doctype html><html><body><h1>Hello Cloud, Thank you Python!</h1></body></html>' | sudo tee /var/www/index.html


  • 1. WhatisCloud?“Cloud computing is a model forenabling ubiquitous, convenient, on-demand network access to a sharedpool of configurable computingresources(e.g., networks, servers, storage,applications, and services)that can be rapidly provisionedand released with minimalmanagement effort or serviceprovider interaction.From: National Institute of Standards and Technology (NIST) developed this document in furtherance of itsstatutory responsibilities under the Federal Information Security Management Act (FISMA) of 2002, PublicLaw 107-347venumurthy.com
  • 2. Why PythonEasy to learnPortabilityAvailable for all major operating systems– Mac,Win, Linux (any flavor) and on cell phones too.Most of them have python by default.(Type “python” in shell to see if its installed”)venumurthy.com
  • 3. venumurthy.com10J = 1 PPythonHello World
  • 4. venumurthy.comGuido van Rossum… in December 1989, I was looking for a "hobby"programming project that would keep me occupiedduring the week around Christmas. My office ...would be closed, but I had a home computer, andnot much else on my hands. I decided to write aninterpreter for the new scripting language I hadbeen thinking about lately: a descendant of ABCthat would appeal to Unix/C hackers. I chosePython as a working title for the project, beingin a slightly irreverent mood (and a big fan ofMonty Pythons Flying Circus)…Goals were:-• easy and intuitive language just as powerful as major competitors• open source, so anyone can contribute to its development• code that is as understandable as plain English• suitability for everyday tasks
  • 5. Who’s using Python?GoogleYahooIndustrial Light & MagicWalt Disney Feature AnimationNASARedhatNokiaCIA - USA Central Intelligence AgencyDropboxvenumurthy.com
  • 6. Python APIs Client Libraries availablefrom all major Cloud service providersvenumurthy.com- Google python client libraries to mange the cloud, SaaS, PaaS, IaaS.- Amazon EC2 python client libraries called Boto.- Salesforce has salesforce-python-toolkit- Rackspace Cloud SDK for Python (pyrax)- OpenStack has python client library called Nova.- Windows Azure SDK for Python- Apache LibCloud – abstracts away differences among multiple cloudprovider APIs.
  • 7. ServiceModels… This cloud model is composed offive essential characteristics,three , andfour deployment models.IaaS – eg. Google compute, Amazon EC2,Rackspace.PaaS – eg. Google App engine, HerokuSaaS – eg. Google apps, MS 365,Salesforce.com, githubvenumurthy.com
  • 8. Google Compute EngineInstances (VMs) are the heart of GoogleCompute Engine.A Google Compute Engine is a virtual machinerunning on a Linux config.Lets Create an instance using the Google-python-client library.venumurthy.com
  • 9. venumurthy.comSign into Google after clicking on Try it now.go to cloud.google.com/console
  • 10. venumurthy.com
  • 11. venumurthy.comSelect Compute EngineAnd enter the billing information.
  • 12. gcutilvenumurthy.comIt’s a tool written in Python that allows you to interact withG-Compute Engine.
  • 13. venumurthy.com
  • 14. venumurthy.com
  • 15. Oauth user authorizationvenumurthy.com
  • 16. venumurthy.com
  • 17. venumurthy.com
  • 18. venumurthy.com
  • 19. venumurthy.comHurray we’ve created our first instance!!!
  • 20. Lets Connect to it and put it to work.venumurthy.com
  • 21. venumurthy.com
  • 22. sudo yum install apache2venumurthy.comecho <!doctype html><html><body><h1>Hello Cloud, Thank you Python!</h1></body></html>| sudo tee /var/www/index.htmlThe above command is in one line
  • 23. Very ImportantDelete the instancesDelete the instancegcutil deleteinstance my-first-instanceDelete the Persistent Diskgcutil deletedisk boot-my-first-instancevenumurthy.com
  • 24. Thank you !venumurthy.comvenu.murthy@gmail.comvenumurthy.com