SlideShare a Scribd company logo
1 of 25
Sebastián Serrano [email_address] twitter: sserrano44 http://www.lp-gtug.org Google App Engine + Python en 5 minutos
Cloud Computing??
0% Administracion = 100% Desarrollo
Google App Engine ,[object Object],[object Object],[object Object]
Servicios del App Engine
Lenguajes
Empezar es GRATIS! ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
App Engine Dashboard
SDK Console
[object Object],[object Object],[object Object],[object Object],[object Object],Primeros pasos App Engine
Arrancar un proyecto $ dev_appserver.py helloworld # run dev svr $ appcfg.py update helloworld # deploy live Linux, MacOS, etc. command-line: Windows GUI (y Mac):
Contenido basico app.yaml  – archivo configuración main principal index.yaml  – generado automáticamente para indexar nuestros datos main.py  – el código de la aplicación
main.py
Local development server $  dev_appserver.py helloworld INFO 2009-03-04 17:51:22,354 __init__.py]
Deploying the application ,[object Object],[object Object],[object Object]
Modifying app.yaml application:  helloworld version: 1 runtime: python api_version: 1 handlers: - url: .* script: main.py
Running the deploy script $  appcfg.py update helloworld Scanning files on local disk. Initiating update. Email: ...
You're live!
Demo time??
main.py: Skeleton application from google.appengine.ext import webapp from google.appengine.ext.webapp import util class MainHandler(webapp.RequestHandler):    def get(self):      self.response.out.write('Hello world!') def main():    application = webapp.WSGIApplication([('/', MainHandler)],                                         debug=True)    util.run_wsgi_app(application) if __name__ == '__main__':    main()
main.py: Adding a handler from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app class MainHandler(webapp.RequestHandler):      def get(self):          self.response.out.write('<h1>Hello world!</h1>')          self.response.out.write('''              <form action=&quot;/sign&quot; method=post>              <input type=text name=content>              <br><input type=submit value=&quot;Sign Guestbook&quot;>              </form>          ''') class GuestBook(webapp.RequestHandler):      def post(self):          self.response.out.write(              '<h2>You wrote:</h2> %s' % self.request.get('content')          ) application = webapp.WSGIApplication([      ('/', MainHandler),      ('/sign', GuestBook), ], debug=True) # start_wsgi_app etc ... 
main.py: Persisting to the datastore class GuestBook(webapp.RequestHandler):      def post(self):          greeting = Greeting()          greeting.content = self.request.get('content')          greeting.put()          self.redirect('/')
main.py: Collecting values from the datastore class MainHandler(webapp.RequestHandler):      def get(self):          self.response.out.write('Hello world!')          self.response.out.write('<h1>My GuestBook</h1><ol>')          greetings = Greeting.all()          for greeting in greetings:              self.response.out.write('<li> %s' % greeting.content)          self.response.out.write('''              </ol><hr>              <form action=&quot;/sign&quot; method=post>              <textarea name=content rows=3 cols=60></textarea>              <br><input type=submit value=&quot;Sign Guestbook&quot;>              </form>          ''')
Live demo??
Gracias! ,[object Object],[object Object]

More Related Content

What's hot

App engine beats pony.key
App engine beats pony.keyApp engine beats pony.key
App engine beats pony.key
Alper Çugun
 

What's hot (20)

It's all about the google spider
It's all about the google spiderIt's all about the google spider
It's all about the google spider
 
Writing Software not Code with Cucumber
Writing Software not Code with CucumberWriting Software not Code with Cucumber
Writing Software not Code with Cucumber
 
Mobile web-debug
Mobile web-debugMobile web-debug
Mobile web-debug
 
App engine beats pony.key
App engine beats pony.keyApp engine beats pony.key
App engine beats pony.key
 
Rapid Application Development with CakePHP 1.3
Rapid Application Development with CakePHP 1.3Rapid Application Development with CakePHP 1.3
Rapid Application Development with CakePHP 1.3
 
Techical Workflow for a Startup
Techical Workflow for a StartupTechical Workflow for a Startup
Techical Workflow for a Startup
 
Angular is on Fire(base) - Shmuela Jacobs - Codemotion Amsterdam 2017
Angular is on Fire(base) - Shmuela Jacobs - Codemotion Amsterdam 2017Angular is on Fire(base) - Shmuela Jacobs - Codemotion Amsterdam 2017
Angular is on Fire(base) - Shmuela Jacobs - Codemotion Amsterdam 2017
 
Well
WellWell
Well
 
Web Application Introduction
Web Application  IntroductionWeb Application  Introduction
Web Application Introduction
 
Build a bot workshop async primer - php[tek]
Build a bot workshop  async primer - php[tek]Build a bot workshop  async primer - php[tek]
Build a bot workshop async primer - php[tek]
 
Gigigo Rails Workshop
Gigigo Rails WorkshopGigigo Rails Workshop
Gigigo Rails Workshop
 
Introduction to VueJS & The WordPress REST API
Introduction to VueJS & The WordPress REST APIIntroduction to VueJS & The WordPress REST API
Introduction to VueJS & The WordPress REST API
 
WordPress and Client Side Web Applications WCTO
WordPress and Client Side Web Applications WCTOWordPress and Client Side Web Applications WCTO
WordPress and Client Side Web Applications WCTO
 
August 10th, 2009 Dave Ross Word Press
August 10th, 2009 Dave Ross Word PressAugust 10th, 2009 Dave Ross Word Press
August 10th, 2009 Dave Ross Word Press
 
Automated Testing With Watir
Automated Testing With WatirAutomated Testing With Watir
Automated Testing With Watir
 
Webinar: AngularJS and the WordPress REST API
Webinar: AngularJS and the WordPress REST APIWebinar: AngularJS and the WordPress REST API
Webinar: AngularJS and the WordPress REST API
 
Desktop Summit 2011 Talk
Desktop Summit 2011 TalkDesktop Summit 2011 Talk
Desktop Summit 2011 Talk
 
Angular data binding by Soft Solutions4U
Angular data binding by Soft Solutions4UAngular data binding by Soft Solutions4U
Angular data binding by Soft Solutions4U
 
Scout web
Scout webScout web
Scout web
 
Heroku addons development - Nov 2011
Heroku addons development - Nov 2011Heroku addons development - Nov 2011
Heroku addons development - Nov 2011
 

Viewers also liked

Gae icc fall2011
Gae icc fall2011Gae icc fall2011
Gae icc fall2011
Juan Gomez
 

Viewers also liked (13)

App Engine for Python Developers
App Engine for Python DevelopersApp Engine for Python Developers
App Engine for Python Developers
 
Gae icc fall2011
Gae icc fall2011Gae icc fall2011
Gae icc fall2011
 
Google app engine python
Google app engine   pythonGoogle app engine   python
Google app engine python
 
App Engine
App EngineApp Engine
App Engine
 
App Engine On Air: Munich
App Engine On Air: MunichApp Engine On Air: Munich
App Engine On Air: Munich
 
Google app-engine-with-python
Google app-engine-with-pythonGoogle app-engine-with-python
Google app-engine-with-python
 
Using Google App Engine Python
Using Google App Engine PythonUsing Google App Engine Python
Using Google App Engine Python
 
Introduction to Google App Engine with Python
Introduction to Google App Engine with PythonIntroduction to Google App Engine with Python
Introduction to Google App Engine with Python
 
Google App Engine for Python - Unit01: Basic
Google App Engine for Python - Unit01: BasicGoogle App Engine for Python - Unit01: Basic
Google App Engine for Python - Unit01: Basic
 
Soft-Shake 2016 : Jigsaw est prêt à tuer le classpath
Soft-Shake 2016 : Jigsaw  est prêt à tuer le classpathSoft-Shake 2016 : Jigsaw  est prêt à tuer le classpath
Soft-Shake 2016 : Jigsaw est prêt à tuer le classpath
 
Google datastore & search api
Google datastore & search apiGoogle datastore & search api
Google datastore & search api
 
Google Cloud Platform. Google App Engine
Google Cloud Platform. Google App Engine Google Cloud Platform. Google App Engine
Google Cloud Platform. Google App Engine
 
Google App Engine
Google App EngineGoogle App Engine
Google App Engine
 

Similar to Introduccion app engine con python

OpenSocial Intro
OpenSocial IntroOpenSocial Intro
OpenSocial Intro
Pamela Fox
 
App engine devfest_mexico_10
App engine devfest_mexico_10App engine devfest_mexico_10
App engine devfest_mexico_10
Chris Schalk
 
Widget Summit 2008
Widget Summit 2008Widget Summit 2008
Widget Summit 2008
Volkan Unsal
 

Similar to Introduccion app engine con python (20)

OSCON Google App Engine Codelab - July 2010
OSCON Google App Engine Codelab - July 2010OSCON Google App Engine Codelab - July 2010
OSCON Google App Engine Codelab - July 2010
 
Gae
GaeGae
Gae
 
Gae
GaeGae
Gae
 
Get up and running with google app engine in 60 minutes or less
Get up and running with google app engine in 60 minutes or lessGet up and running with google app engine in 60 minutes or less
Get up and running with google app engine in 60 minutes or less
 
Even Faster Web Sites at jQuery Conference '09
Even Faster Web Sites at jQuery Conference '09Even Faster Web Sites at jQuery Conference '09
Even Faster Web Sites at jQuery Conference '09
 
JBUG 11 - Django-The Web Framework For Perfectionists With Deadlines
JBUG 11 - Django-The Web Framework For Perfectionists With DeadlinesJBUG 11 - Django-The Web Framework For Perfectionists With Deadlines
JBUG 11 - Django-The Web Framework For Perfectionists With Deadlines
 
OpenSocial Intro
OpenSocial IntroOpenSocial Intro
OpenSocial Intro
 
Google App Engine Overview - BarCamp Phnom Penh 2011
Google App Engine Overview - BarCamp Phnom Penh 2011Google App Engine Overview - BarCamp Phnom Penh 2011
Google App Engine Overview - BarCamp Phnom Penh 2011
 
Extend sdk
Extend sdkExtend sdk
Extend sdk
 
Gadgets Intro (Plus Mapplets)
Gadgets Intro (Plus Mapplets)Gadgets Intro (Plus Mapplets)
Gadgets Intro (Plus Mapplets)
 
Widgets: Making Your Site Great and Letting Others Help - WordCamp Victoria
Widgets: Making Your Site Great and Letting Others Help - WordCamp VictoriaWidgets: Making Your Site Great and Letting Others Help - WordCamp Victoria
Widgets: Making Your Site Great and Letting Others Help - WordCamp Victoria
 
Web Application Introduction
Web Application  IntroductionWeb Application  Introduction
Web Application Introduction
 
Web Application Introduction
Web Application  IntroductionWeb Application  Introduction
Web Application Introduction
 
App engine devfest_mexico_10
App engine devfest_mexico_10App engine devfest_mexico_10
App engine devfest_mexico_10
 
Enterprise Google Gadgets Integrated with Alfresco - Open Source ECM
Enterprise Google Gadgets Integrated with Alfresco - Open Source ECM Enterprise Google Gadgets Integrated with Alfresco - Open Source ECM
Enterprise Google Gadgets Integrated with Alfresco - Open Source ECM
 
Software Project Management
Software Project ManagementSoftware Project Management
Software Project Management
 
Widget Summit 2008
Widget Summit 2008Widget Summit 2008
Widget Summit 2008
 
The Web on OSGi: Here's How
The Web on OSGi: Here's HowThe Web on OSGi: Here's How
The Web on OSGi: Here's How
 
Writing Pluggable Software
Writing Pluggable SoftwareWriting Pluggable Software
Writing Pluggable Software
 
Gentle App Engine Intro
Gentle App Engine IntroGentle App Engine Intro
Gentle App Engine Intro
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Recently uploaded (20)

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

Introduccion app engine con python

  • 1. Sebastián Serrano [email_address] twitter: sserrano44 http://www.lp-gtug.org Google App Engine + Python en 5 minutos
  • 3. 0% Administracion = 100% Desarrollo
  • 4.
  • 7.
  • 10.
  • 11. Arrancar un proyecto $ dev_appserver.py helloworld # run dev svr $ appcfg.py update helloworld # deploy live Linux, MacOS, etc. command-line: Windows GUI (y Mac):
  • 12. Contenido basico app.yaml – archivo configuración main principal index.yaml – generado automáticamente para indexar nuestros datos main.py – el código de la aplicación
  • 14. Local development server $ dev_appserver.py helloworld INFO 2009-03-04 17:51:22,354 __init__.py]
  • 15.
  • 16. Modifying app.yaml application:  helloworld version: 1 runtime: python api_version: 1 handlers: - url: .* script: main.py
  • 17. Running the deploy script $ appcfg.py update helloworld Scanning files on local disk. Initiating update. Email: ...
  • 20. main.py: Skeleton application from google.appengine.ext import webapp from google.appengine.ext.webapp import util class MainHandler(webapp.RequestHandler):    def get(self):      self.response.out.write('Hello world!') def main():    application = webapp.WSGIApplication([('/', MainHandler)],                                        debug=True)    util.run_wsgi_app(application) if __name__ == '__main__':    main()
  • 21. main.py: Adding a handler from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app class MainHandler(webapp.RequestHandler):      def get(self):          self.response.out.write('<h1>Hello world!</h1>')          self.response.out.write('''              <form action=&quot;/sign&quot; method=post>              <input type=text name=content>              <br><input type=submit value=&quot;Sign Guestbook&quot;>              </form>          ''') class GuestBook(webapp.RequestHandler):      def post(self):          self.response.out.write(              '<h2>You wrote:</h2> %s' % self.request.get('content')          ) application = webapp.WSGIApplication([      ('/', MainHandler),      ('/sign', GuestBook), ], debug=True) # start_wsgi_app etc ... 
  • 22. main.py: Persisting to the datastore class GuestBook(webapp.RequestHandler):      def post(self):          greeting = Greeting()          greeting.content = self.request.get('content')          greeting.put()          self.redirect('/')
  • 23. main.py: Collecting values from the datastore class MainHandler(webapp.RequestHandler):      def get(self):          self.response.out.write('Hello world!')          self.response.out.write('<h1>My GuestBook</h1><ol>')          greetings = Greeting.all()          for greeting in greetings:              self.response.out.write('<li> %s' % greeting.content)          self.response.out.write('''              </ol><hr>              <form action=&quot;/sign&quot; method=post>              <textarea name=content rows=3 cols=60></textarea>              <br><input type=submit value=&quot;Sign Guestbook&quot;>              </form>          ''')
  • 25.