Ну вот и дошли руки до Google Application Engine. Здесь мы выполняем инструкции по установке SDK Python и начинаем знакомится с содержимым папки google_appengine и кликаем по ярлыкам ...Launcher, и запускаем первое приложение.
In this tutorial, you will learn how to:¶
In []:
build an App Engine application using Python
use the webapp2 web application framework
use the App Engine datastore with the Python modeling API
integrate an App Engine application with Google Accounts for user authentication
use Jinja2 templates with your app
upload your app to App Engine
build an App Engine application using Python
console.developers.google
Mirrors of the open source App Engine SDK are available via the Google App Engine project page hosted on Google Code.
Run/Modify
jinja
videoresources
Cloud Playground
helloworld
Welcome to webapp2
How to Setup a Proxy Server with Google App Engine
How To Make Your Own Proxy Using Google App Engine
Web proxy for App Engine
yaml.org
the app.yaml reference
see the Dev Web Server reference
[WSGI - Web Server Gateway Interface]http://ru.wikipedia.org/wiki/WSGI)
console.developers.google
Mirrors of the open source App Engine SDK are available via the Google App Engine project page hosted on Google Code.
Run/Modify
jinja
videoresources
Cloud Playground
helloworld
Welcome to webapp2
How to Setup a Proxy Server with Google App Engine
How To Make Your Own Proxy Using Google App Engine
Web proxy for App Engine
yaml.org
the app.yaml reference
see the Dev Web Server reference
[WSGI - Web Server Gateway Interface]http://ru.wikipedia.org/wiki/WSGI)
Устанавливаем App Engine и получаем паку
In [3]:
!chcp 65001
!dir "C:\Program Files (x86)\Google\google_appengine"
Разберем первый пример helloworld¶
In []:
#Модуль пришлось устанваливать
#pip install webapp2
#pip install webob
C:\Users\kiss\Anaconda>pip install webob
Downloading/unpacking webob
Running setup.py (path:c:\users\kiss\appdata\local\temp\pip_build_kiss\webob\setup.py) egg_info for package webob
no previously-included directories found matching '*.pyc'
no previously-included directories found matching '*.pyo'
Installing collected packages: webob
Running setup.py install for webob
no previously-included directories found matching '*.pyc'
no previously-included directories found matching '*.pyo'
Successfully installed webob
Cleaning up...
Вот справка по библиотеке webapp2, а вот код первого примера:
In [6]:
import webapp2
In []:
class MainPage(webapp2.RequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/plain'
self.response.write('Hello, World!')
application = webapp2.WSGIApplication([
('/', MainPage),
], debug=True)
Посты чуть ниже также могут вас заинтересовать
Комментариев нет:
Отправить комментарий