Top Banner
na Google App Engine
28

Python na Google App Engine (v3)

Nov 29, 2014

Download

Software

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Python na Google App Engine (v3)

naGoogle App Engine

Page 2: Python na Google App Engine (v3)

Luiz Cláudio Silva

[email protected]

@luizclaudios

luizclaudiosilva

Page 3: Python na Google App Engine (v3)

Computação na Nuvem?

Page 4: Python na Google App Engine (v3)

http://www.saasblogs.com/saas/demystifying-the-cloud-where-do-saas-paas-and-other-acronyms-fit-in/

Page 5: Python na Google App Engine (v3)

http://venturebeat.com/2011/11/14/cloud-iaas-paas-saas/

Page 6: Python na Google App Engine (v3)
Page 7: Python na Google App Engine (v3)

Plataforma para

desenvolvimento e hospedagem

de aplicações (PaaS)

Page 8: Python na Google App Engine (v3)

Distribuição automática das

aplicações por diversos

servidores virtuais

Page 9: Python na Google App Engine (v3)

Gratuita para baixa utilização

Custo proporcional aos recursos utilizados: amazenamento, rede e ciclos de máquina

Page 10: Python na Google App Engine (v3)
Page 11: Python na Google App Engine (v3)

Sim. Mas, quePython é esse?

Page 12: Python na Google App Engine (v3)

http://www.decodedscience.com/wild-animals-are-dangerous-should-we-keep-pythons-as-pets/35419/2

Page 13: Python na Google App Engine (v3)

http://www.fanpop.com/clubs/sketch-comedy/images/13822841/title/monty-pythons-flying-circus-photo

Page 14: Python na Google App Engine (v3)

Poderosa RápidaSe dá

bem com

outras

Roda

em todo

lugar

Aberta

Amigável

e fácil de

aprender

Page 15: Python na Google App Engine (v3)

(Marco André Lopes Mendes <[email protected]>, “Porque Python”, 2010)

Page 16: Python na Google App Engine (v3)

MultiparadigmaTipagem

dinâmica

e forte

Interpretada (bytecodes)

Ambiente interativo

Duas versões ativas: 2.x e 3.x

“Vem com baterias”

Page 17: Python na Google App Engine (v3)

Quem usa ?

Page 18: Python na Google App Engine (v3)

na

Suporte a Python 2.5 (até janeiro 2014) e 2.7

Python Runtime Environment(webapp2, CGI)

Datastore(ORM, GQL)

Google Cloud SQL Google Cloud Storage

Blobstore

Page 19: Python na Google App Engine (v3)

na

Services

(Memcache, URL Fetch, Mail,Logs, Images, Users, Multitenancy,

Tasks, OAuth, Search, XMPP, outros)

Tools

(development server, appcfg.py,data upload & mgmt, Local Unit Testing

Google Protocol RPC, outros)

Page 20: Python na Google App Engine (v3)
Page 21: Python na Google App Engine (v3)

app.yaml

helloworld.py

Page 22: Python na Google App Engine (v3)

helloworld.py

Page 23: Python na Google App Engine (v3)

Exemplo de classe de domínio

Exemplo de classe de controle (POST)

Page 24: Python na Google App Engine (v3)

Exemplo de classe de controle (GET)

Page 25: Python na Google App Engine (v3)

Exemplo de template

Page 26: Python na Google App Engine (v3)

Definindo local para arquivos estáticos

Page 27: Python na Google App Engine (v3)

Quem sabe, faz ao vivo!

Page 28: Python na Google App Engine (v3)

Luiz Cláudio Silva

[email protected]

@luizclaudios

luizclaudiosilva