code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
"""
This module defines functions to implement HTTP Digest Authentication (:rfc:`2617`).
This has full compliance with 'Digest' and 'Basic' authentication methods. In
'Digest' it supports both MD5 and MD5-sess algorithms.
Usage:
First use 'doAuth' to request the client authentication for a
certain resource. Yo... | [
[
8,
0,
0.0297,
0.0565,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0593,
0.0028,
0,
0.66,
0.0323,
162,
0,
0,
0,
0,
0,
8,
0
],
[
14,
0,
0.0621,
0.0028,
0,
0.66... | [
"\"\"\"\nThis module defines functions to implement HTTP Digest Authentication (:rfc:`2617`).\nThis has full compliance with 'Digest' and 'Basic' authentication methods. In\n'Digest' it supports both MD5 and MD5-sess algorithms.\n\nUsage:\n First use 'doAuth' to request the client authentication for a\n certa... |
# This file is part of CherryPy <http://www.cherrypy.org/>
# -*- coding: utf-8 -*-
# vim:ts=4:sw=4:expandtab:fileencoding=utf-8
__doc__ = """This module provides a CherryPy 3.x tool which implements
the server-side of HTTP Basic Access Authentication, as described in :rfc:`2617`.
Example usage, using the built-in che... | [
[
14,
0,
0.1379,
0.1724,
0,
0.66,
0,
155,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.2414,
0.0115,
0,
0.66,
0.1429,
777,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.2529,
0.0115,
0,
0... | [
"__doc__ = \"\"\"This module provides a CherryPy 3.x tool which implements\nthe server-side of HTTP Basic Access Authentication, as described in :rfc:`2617`.\n\nExample usage, using the built-in checkpassword_dict function which uses a dict\nas the credentials store::\n\n userpassdict = {'bird' : 'bebop', 'ornet... |
"""CherryPy Library"""
# Deprecated in CherryPy 3.2 -- remove in CherryPy 3.3
from cherrypy.lib.reprconf import unrepr, modules, attributes
class file_generator(object):
"""Yield the given input (a file object) in chunks (default 64k). (Core)"""
def __init__(self, input, chunkSize=65536):
self.in... | [
[
8,
0,
0.0222,
0.0222,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0889,
0.0222,
0,
0.66,
0.25,
548,
0,
3,
0,
0,
548,
0,
0
],
[
3,
0,
0.3333,
0.4222,
0,
0.66,
... | [
"\"\"\"CherryPy Library\"\"\"",
"from cherrypy.lib.reprconf import unrepr, modules, attributes",
"class file_generator(object):\n \"\"\"Yield the given input (a file object) in chunks (default 64k). (Core)\"\"\"\n \n def __init__(self, input, chunkSize=65536):\n self.input = input\n self.... |
"""CPStats, a package for collecting and reporting on program statistics.
Overview
========
Statistics about program operation are an invaluable monitoring and debugging
tool. Unfortunately, the gathering and reporting of these critical values is
usually ad-hoc. This package aims to add a centralized place for gather... | [
[
8,
0,
0.139,
0.2764,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2825,
0.0015,
0,
0.66,
0.0455,
715,
0,
1,
0,
0,
715,
0,
0
],
[
4,
0,
0.284,
0.0015,
0,
0.66,
... | [
"\"\"\"CPStats, a package for collecting and reporting on program statistics.\n\nOverview\n========\n\nStatistics about program operation are an invaluable monitoring and debugging\ntool. Unfortunately, the gathering and reporting of these critical values is\nusually ad-hoc. This package aims to add a centralized p... |
"""Code-coverage tools for CherryPy.
To use this module, or the coverage tools in the test suite,
you need to download 'coverage.py', either Gareth Rees' `original
implementation <http://www.garethrees.org/2001/12/04/python-coverage/>`_
or Ned Batchelder's `enhanced version:
<http://www.nedbatchelder.com/code/modules... | [
[
8,
0,
0.0301,
0.0575,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.063,
0.0027,
0,
0.66,
0.04,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0658,
0.0027,
0,
0.66,
... | [
"\"\"\"Code-coverage tools for CherryPy.\n\nTo use this module, or the coverage tools in the test suite,\nyou need to download 'coverage.py', either Gareth Rees' `original \nimplementation <http://www.garethrees.org/2001/12/04/python-coverage/>`_\nor Ned Batchelder's `enhanced version:\n<http://www.nedbatchelder.co... |
"""
CherryPy implements a simple caching system as a pluggable Tool. This tool tries
to be an (in-process) HTTP/1.1-compliant cache. It's not quite there yet, but
it's probably good enough for most sites.
In general, GET responses are cached (along with selecting headers) and, if
another request arrives for the same r... | [
[
8,
0,
0.0366,
0.071,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0753,
0.0022,
0,
0.66,
0.0769,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.0774,
0.0022,
0,
0.66,... | [
"\"\"\"\nCherryPy implements a simple caching system as a pluggable Tool. This tool tries\nto be an (in-process) HTTP/1.1-compliant cache. It's not quite there yet, but\nit's probably good enough for most sites.\n\nIn general, GET responses are cached (along with selecting headers) and, if\nanother request arrives ... |
import sys
import cherrypy
from cherrypy._cpcompat import ntob
def get_xmlrpclib():
try:
import xmlrpc.client as x
except ImportError:
import xmlrpclib as x
return x
def process_body():
"""Return (params, method) from request body."""
try:
return get_xmlrpclib().loads(cher... | [
[
1,
0,
0.0182,
0.0182,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0545,
0.0182,
0,
0.66,
0.125,
639,
0,
1,
0,
0,
639,
0,
0
],
[
1,
0,
0.0727,
0.0182,
0,
0... | [
"import sys",
"import cherrypy",
"from cherrypy._cpcompat import ntob",
"def get_xmlrpclib():\n try:\n import xmlrpc.client as x\n except ImportError:\n import xmlrpclib as x\n return x",
" try:\n import xmlrpc.client as x\n except ImportError:\n import xmlrpclib a... |
"""Wrapper for mod_wsgi, for use as a CherryPy HTTP server.
To autostart modwsgi, the "apache" executable or script must be
on your system path, or you must override the global APACHE_PATH.
On some platforms, "apache" may be called "apachectl" or "apache2ctl"--
create a symlink to them if needed.
KNOWN BUGS
========... | [
[
8,
0,
0.1149,
0.223,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2365,
0.0068,
0,
0.66,
0.0714,
688,
0,
1,
0,
0,
688,
0,
0
],
[
14,
0,
0.2432,
0.0068,
0,
0.66... | [
"\"\"\"Wrapper for mod_wsgi, for use as a CherryPy HTTP server.\n\nTo autostart modwsgi, the \"apache\" executable or script must be\non your system path, or you must override the global APACHE_PATH.\nOn some platforms, \"apache\" may be called \"apachectl\" or \"apache2ctl\"--\ncreate a symlink to them if needed."... |
"""CherryPy Benchmark Tool
Usage:
benchmark.py --null --notests --help --cpmodpy --modpython --ab=path --apache=path
--null: use a null Request object (to bench the HTTP server only)
--notests: start the server but do not run the tests; this allows
you to check th... | [
[
8,
0,
0.0281,
0.0538,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0587,
0.0024,
0,
0.66,
0.0312,
588,
0,
1,
0,
0,
588,
0,
0
],
[
1,
0,
0.0611,
0.0024,
0,
0.66... | [
"\"\"\"CherryPy Benchmark Tool\n\n Usage:\n benchmark.py --null --notests --help --cpmodpy --modpython --ab=path --apache=path\n \n --null: use a null Request object (to bench the HTTP server only)\n --notests: start the server but do not run the tests; this allows\n ... |
"""Demonstration app for cherrypy.checker.
This application is intentionally broken and badly designed.
To demonstrate the output of the CherryPy Checker, simply execute
this module.
"""
import os
import cherrypy
thisdir = os.path.dirname(os.path.abspath(__file__))
class Root:
pass
if __name__ == '__main__':
... | [
[
8,
0,
0.0745,
0.1277,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1702,
0.0213,
0,
0.66,
0.2,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1915,
0.0213,
0,
0.66,
... | [
"\"\"\"Demonstration app for cherrypy.checker.\n\nThis application is intentionally broken and badly designed.\nTo demonstrate the output of the CherryPy Checker, simply execute\nthis module.\n\"\"\"",
"import os",
"import cherrypy",
"thisdir = os.path.dirname(os.path.abspath(__file__))",
"class Root:\n ... |
"""Test module for the @-decorator syntax, which is version-specific"""
from cherrypy import expose, tools
from cherrypy._cpcompat import ntob
class ExposeExamples(object):
@expose
def no_call(self):
return "Mr E. R. Bradshaw"
@expose()
def call_empty(self):
return "Mrs. B.J... | [
[
8,
0,
0.0244,
0.0244,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0732,
0.0244,
0,
0.66,
0.25,
639,
0,
2,
0,
0,
639,
0,
0
],
[
1,
0,
0.0976,
0.0244,
0,
0.66,
... | [
"\"\"\"Test module for the @-decorator syntax, which is version-specific\"\"\"",
"from cherrypy import expose, tools",
"from cherrypy._cpcompat import ntob",
"class ExposeExamples(object):\n \n @expose\n def no_call(self):\n return \"Mr E. R. Bradshaw\"\n \n @expose()\n def call_empty... |
import os
import sys
import time
starttime = time.time()
import cherrypy
class Root:
def index(self):
return "Hello World"
index.exposed = True
def mtimes(self):
return repr(cherrypy.engine.publish("Autoreloader", "mtimes"))
mtimes.exposed = True
def pid(self):
... | [
[
1,
0,
0.0152,
0.0152,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0303,
0.0152,
0,
0.66,
0.0833,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0455,
0.0152,
0,
... | [
"import os",
"import sys",
"import time",
"starttime = time.time()",
"import cherrypy",
"class Root:\n \n def index(self):\n return \"Hello World\"\n index.exposed = True\n \n def mtimes(self):\n return repr(cherrypy.engine.publish(\"Autoreloader\", \"mtimes\"))",
" def i... |
"""logtest, a unittest.TestCase helper for testing log output."""
import sys
import time
import cherrypy
from cherrypy._cpcompat import basestring, ntob, unicodestr
try:
# On Windows, msvcrt.getch reads a single char without output.
import msvcrt
def getchar():
return msvcrt.getch()
except Impor... | [
[
8,
0,
0.0053,
0.0053,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.016,
0.0053,
0,
0.66,
0.1667,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0213,
0.0053,
0,
0.66,... | [
"\"\"\"logtest, a unittest.TestCase helper for testing log output.\"\"\"",
"import sys",
"import time",
"import cherrypy",
"from cherrypy._cpcompat import basestring, ntob, unicodestr",
"try:\n # On Windows, msvcrt.getch reads a single char without output.\n import msvcrt\n def getchar():\n ... |
"""Wrapper for mod_fastcgi, for use as a CherryPy HTTP server when testing.
To autostart fastcgi, the "apache" executable or script must be
on your system path, or you must override the global APACHE_PATH.
On some platforms, "apache" may be called "apachectl", "apache2ctl",
or "httpd"--create a symlink to them if need... | [
[
8,
0,
0.1296,
0.2519,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2667,
0.0074,
0,
0.66,
0.0714,
688,
0,
1,
0,
0,
688,
0,
0
],
[
14,
0,
0.2741,
0.0074,
0,
0.6... | [
"\"\"\"Wrapper for mod_fastcgi, for use as a CherryPy HTTP server when testing.\n\nTo autostart fastcgi, the \"apache\" executable or script must be\non your system path, or you must override the global APACHE_PATH.\nOn some platforms, \"apache\" may be called \"apachectl\", \"apache2ctl\",\nor \"httpd\"--create a ... |
"""A library of helper functions for the CherryPy test suite."""
import datetime
import logging
log = logging.getLogger(__name__)
import os
thisdir = os.path.abspath(os.path.dirname(__file__))
serverpem = os.path.join(os.getcwd(), thisdir, 'test.pem')
import re
import sys
import time
import warnings
import cherrypy
... | [
[
8,
0,
0.002,
0.002,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0061,
0.002,
0,
0.66,
0.0303,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.0081,
0.002,
0,
0.66,
... | [
"\"\"\"A library of helper functions for the CherryPy test suite.\"\"\"",
"import datetime",
"import logging",
"log = logging.getLogger(__name__)",
"import os",
"thisdir = os.path.abspath(os.path.dirname(__file__))",
"serverpem = os.path.join(os.getcwd(), thisdir, 'test.pem')",
"import re",
"import ... |
"""Regression test suite for CherryPy.
Run 'nosetests -s test/' to exercise all tests.
The '-s' flag instructs nose to output stdout messages, wihch is crucial to
the 'interactive' mode of webtest.py. If you run these tests without the '-s'
flag, don't be surprised if the test seems to hang: it's waiting for your
int... | [
[
8,
0,
0.1852,
0.3333,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.4074,
0.037,
0,
0.66,
0.2,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.4444,
0.037,
0,
0.66,
... | [
"\"\"\"Regression test suite for CherryPy.\n\nRun 'nosetests -s test/' to exercise all tests.\n\nThe '-s' flag instructs nose to output stdout messages, wihch is crucial to\nthe 'interactive' mode of webtest.py. If you run these tests without the '-s'\nflag, don't be surprised if the test seems to hang: it's waitin... |
"""Wrapper for mod_python, for use as a CherryPy HTTP server when testing.
To autostart modpython, the "apache" executable or script must be
on your system path, or you must override the global APACHE_PATH.
On some platforms, "apache" may be called "apachectl" or "apache2ctl"--
create a symlink to them if needed.
If ... | [
[
8,
0,
0.1104,
0.2147,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.227,
0.0061,
0,
0.66,
0.0714,
688,
0,
1,
0,
0,
688,
0,
0
],
[
14,
0,
0.2331,
0.0061,
0,
0.66... | [
"\"\"\"Wrapper for mod_python, for use as a CherryPy HTTP server when testing.\n\nTo autostart modpython, the \"apache\" executable or script must be\non your system path, or you must override the global APACHE_PATH.\nOn some platforms, \"apache\" may be called \"apachectl\" or \"apache2ctl\"--\ncreate a symlink to... |
#!/usr/bin/python
"""A session demonstration app."""
import calendar
from datetime import datetime
import sys
import cherrypy
from cherrypy.lib import sessions
from cherrypy._cpcompat import copyitems
page = """
<html>
<head>
<style type='text/css'>
table { border-collapse: collapse; border: 1px solid #663333; }
th ... | [
[
8,
0,
0.0131,
0.0065,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0261,
0.0065,
0,
0.66,
0.1111,
917,
0,
1,
0,
0,
917,
0,
0
],
[
1,
0,
0.0327,
0.0065,
0,
0.66... | [
"\"\"\"A session demonstration app.\"\"\"",
"import calendar",
"from datetime import datetime",
"import sys",
"import cherrypy",
"from cherrypy.lib import sessions",
"from cherrypy._cpcompat import copyitems",
"page = \"\"\"\n<html>\n<head>\n<style type='text/css'>\ntable { border-collapse: collapse; ... |
"""Extensions to unittest for web frameworks.
Use the WebCase.getPage method to request a page from your HTTP server.
Framework Integration
=====================
If you have control over your server process, you can handle errors
in the server-side of the HTTP conversation a bit better. You must run
both the client ... | [
[
8,
0,
0.0157,
0.0296,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.033,
0.0017,
0,
0.66,
0.04,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0348,
0.0017,
0,
0.66,
... | [
"\"\"\"Extensions to unittest for web frameworks.\n\nUse the WebCase.getPage method to request a page from your HTTP server.\n\nFramework Integration\n=====================\n\nIf you have control over your server process, you can handle errors",
"import os",
"import pprint",
"import re",
"import socket",
... |
"""Wrapper for mod_fcgid, for use as a CherryPy HTTP server when testing.
To autostart fcgid, the "apache" executable or script must be
on your system path, or you must override the global APACHE_PATH.
On some platforms, "apache" may be called "apachectl", "apache2ctl",
or "httpd"--create a symlink to them if needed.
... | [
[
8,
0,
0.14,
0.272,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.288,
0.008,
0,
0.66,
0.0714,
688,
0,
1,
0,
0,
688,
0,
0
],
[
14,
0,
0.296,
0.008,
0,
0.66,
... | [
"\"\"\"Wrapper for mod_fcgid, for use as a CherryPy HTTP server when testing.\n\nTo autostart fcgid, the \"apache\" executable or script must be\non your system path, or you must override the global APACHE_PATH.\nOn some platforms, \"apache\" may be called \"apachectl\", \"apache2ctl\",\nor \"httpd\"--create a syml... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.sessions_ndb
===========================
Extended sessions stored in datastore using the ndb library.
App Engine-specific modules were moved to webapp2_extras.appengine.
This module is here for compatibility purposes.
:copyright: 2011 by tipfy.org.
... | [
[
8,
0,
0.375,
0.6,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.7,
0.05,
0,
0.66,
0.3333,
358,
0,
1,
0,
0,
358,
0,
0
],
[
8,
0,
0.875,
0.2,
0,
0.66,
0.6667,... | [
"\"\"\"\n webapp2_extras.sessions_ndb\n ===========================\n\n Extended sessions stored in datastore using the ndb library.\n\n App Engine-specific modules were moved to webapp2_extras.appengine.\n This module is here for compatibility purposes.",
"import warnings",
"warnings.warn(Deprec... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.users
====================
Helpers for google.appengine.api.users.
App Engine-specific modules were moved to webapp2_extras.appengine.
This module is here for compatibility purposes.
:copyright: 2011 tipfy.org.
:license: Apache Sotware License, s... | [
[
8,
0,
0.375,
0.6,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.7,
0.05,
0,
0.66,
0.3333,
358,
0,
1,
0,
0,
358,
0,
0
],
[
8,
0,
0.875,
0.2,
0,
0.66,
0.6667,... | [
"\"\"\"\n webapp2_extras.users\n ====================\n\n Helpers for google.appengine.api.users.\n\n App Engine-specific modules were moved to webapp2_extras.appengine.\n This module is here for compatibility purposes.",
"import warnings",
"warnings.warn(DeprecationWarning(\n 'webapp2_extras.... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.auth
===================
Utilities for authentication and authorization.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
import logging
import time
import webapp2
from webapp2_extras import security
from web... | [
[
8,
0,
0.0093,
0.014,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0171,
0.0016,
0,
0.66,
0.0556,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.0186,
0.0016,
0,
0.66,... | [
"\"\"\"\n webapp2_extras.auth\n ===================\n\n Utilities for authentication and authorization.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details.",
"import logging",
"import time",
"import webapp2",
"from webapp2_extras import security",
... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.routes
=====================
Extra route classes for webapp2.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
import re
import urllib
from webob import exc
import webapp2
class MultiRoute(object):
"""B... | [
[
8,
0,
0.017,
0.0255,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0312,
0.0028,
0,
0.66,
0.0909,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.034,
0.0028,
0,
0.66,
... | [
"\"\"\"\n webapp2_extras.routes\n =====================\n\n Extra route classes for webapp2.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details.",
"import re",
"import urllib",
"from webob import exc",
"import webapp2",
"class MultiRoute(object):\... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.protorpc
=======================
Support for Google ProtoRPC library in webapp2.
Ported from protorpc.service_handlers.
See: http://code.google.com/p/google-protorpc/
.. warning::
This is an experimental package, as the ProtoRPC API is not st... | [
[
8,
0,
0.0465,
0.0791,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0884,
0.0047,
0,
0.66,
0.0833,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.0977,
0.0047,
0,
0.66... | [
"\"\"\"\n webapp2_extras.protorpc\n =======================\n\n Support for Google ProtoRPC library in webapp2.\n\n Ported from protorpc.service_handlers.",
"from __future__ import absolute_import",
"import logging",
"from protorpc import registry",
"from protorpc.webapp import service_handlers"... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.json
===================
JSON helpers for webapp2.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
from __future__ import absolute_import
import base64
import urllib
try:
# Preference for installed libra... | [
[
8,
0,
0.0556,
0.0833,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1019,
0.0093,
0,
0.66,
0.1,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.1204,
0.0093,
0,
0.66,
... | [
"\"\"\"\n webapp2_extras.json\n ===================\n\n JSON helpers for webapp2.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details.",
"from __future__ import absolute_import",
"import base64",
"import urllib",
"try:\n # Preference for installed... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.sessions
=======================
Lightweight but flexible session support for webapp2.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
import re
import webapp2
from webapp2_extras import securecookie
from we... | [
[
8,
0,
0.0126,
0.0189,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0231,
0.0021,
0,
0.66,
0.0625,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0273,
0.0021,
0,
0.66... | [
"\"\"\"\n webapp2_extras.sessions\n =======================\n\n Lightweight but flexible session support for webapp2.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details.",
"import re",
"import webapp2",
"from webapp2_extras import securecookie",
"fr... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.local_app
~~~~~~~~~~~~~~~~~~~~~~~~
This module is deprecated. The functionality is now available
directly in webapp2.
Previously it implemented a WSGIApplication adapted for threaded
environments.
:copyright: 2011 by tipfy.org.
:license: Apac... | [
[
8,
0,
0.3333,
0.5417,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.625,
0.0417,
0,
0.66,
0.25,
358,
0,
1,
0,
0,
358,
0,
0
],
[
1,
0,
0.7083,
0.0417,
0,
0.66,
... | [
"\"\"\"\n webapp2_extras.local_app\n ~~~~~~~~~~~~~~~~~~~~~~~~\n\n This module is deprecated. The functionality is now available\n directly in webapp2.\n\n Previously it implemented a WSGIApplication adapted for threaded",
"import warnings",
"import webapp2",
"warnings.warn(DeprecationWarning(\n... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.local
~~~~~~~~~~~~~~~~~~~~
This module implements thread-local utilities.
This implementation comes from werkzeug.local.
:copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
try:
... | [
[
8,
0,
0.0303,
0.0476,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
7,
0,
0.0758,
0.0433,
0,
0.66,
0.2,
0,
0,
1,
0,
0,
0,
0,
0
],
[
1,
1,
0.0606,
0.0043,
1,
0.21,
0... | [
"\"\"\"\n webapp2_extras.local\n ~~~~~~~~~~~~~~~~~~~~\n\n This module implements thread-local utilities.\n\n This implementation comes from werkzeug.local.",
"try:\n from greenlet import getcurrent as get_current_greenlet\nexcept ImportError: # pragma: no cover\n try:\n from py.magic imp... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.config
=====================
Configuration object for webapp2.
This module is deprecated. See :class:`webapp2.WSGIApplication.config`.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
from __future__ impor... | [
[
8,
0,
0.0307,
0.0482,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.057,
0.0044,
0,
0.66,
0.125,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.0658,
0.0044,
0,
0.66,
... | [
"\"\"\"\n webapp2_extras.config\n =====================\n\n Configuration object for webapp2.\n\n This module is deprecated. See :class:`webapp2.WSGIApplication.config`.",
"from __future__ import absolute_import",
"import warnings",
"import webapp2",
"warnings.warn(DeprecationWarning(\n 'weba... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.appengine.sessions_ndb
=====================================
Extended sessions stored in datastore using the ndb library.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
from __future__ import absolute_import
... | [
[
8,
0,
0.0462,
0.0692,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0846,
0.0077,
0,
0.66,
0.1111,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.1,
0.0077,
0,
0.66,
... | [
"\"\"\"\n webapp2_extras.appengine.sessions_ndb\n =====================================\n\n Extended sessions stored in datastore using the ndb library.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details.",
"from __future__ import absolute_import",
"imp... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.appengine.users
==============================
Helpers for google.appengine.api.users.
:copyright: 2011 tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
from google.appengine.api import users
def login_required(handler_method):
... | [
[
8,
0,
0.0857,
0.1286,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1571,
0.0143,
0,
0.66,
0.3333,
279,
0,
1,
0,
0,
279,
0,
0
],
[
2,
0,
0.3786,
0.3714,
0,
0.66... | [
"\"\"\"\n webapp2_extras.appengine.users\n ==============================\n\n Helpers for google.appengine.api.users.\n\n :copyright: 2011 tipfy.org.\n :license: Apache Sotware License, see LICENSE for details.",
"from google.appengine.api import users",
"def login_required(handler_method):\n ... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.appengine.auth.models
====================================
Auth related models.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
import time
from ndb import model
from webapp2_extras import auth
from webapp2_... | [
[
8,
0,
0.0154,
0.0231,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0282,
0.0026,
0,
0.66,
0.1429,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0333,
0.0026,
0,
0.66... | [
"\"\"\"\n webapp2_extras.appengine.auth.models\n ====================================\n\n Auth related models.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details.",
"import time",
"from ndb import model",
"from webapp2_extras import auth",
"from web... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.appengine.auth
=============================
Authentication and authorization utilities.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
| [
[
8,
0,
0.6,
0.9,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
]
] | [
"\"\"\"\n webapp2_extras.appengine.auth\n =============================\n\n Authentication and authorization utilities.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details."
] |
# -*- coding: utf-8 -*-
"""
webapp2_extras.appengine
========================
App Engine-specific modules.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
| [
[
8,
0,
0.6,
0.9,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
]
] | [
"\"\"\"\n webapp2_extras.appengine\n ========================\n\n App Engine-specific modules.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details."
] |
# -*- coding: utf-8 -*-
"""
webapp2_extras.appengine.sessions_memcache
==========================================
Extended sessions stored in memcache.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
from google.appengine.api import memcache
from weba... | [
[
8,
0,
0.1176,
0.1765,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2157,
0.0196,
0,
0.66,
0.3333,
279,
0,
1,
0,
0,
279,
0,
0
],
[
1,
0,
0.2549,
0.0196,
0,
0.66... | [
"\"\"\"\n webapp2_extras.appengine.sessions_memcache\n ==========================================\n\n Extended sessions stored in memcache.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details.",
"from google.appengine.api import memcache",
"from webapp2_... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.mako
===================
Mako template support for webapp2.
Learn more about Mako: http://www.makotemplates.org/
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
from __future__ import absolute_import
fro... | [
[
8,
0,
0.0515,
0.0809,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0956,
0.0074,
0,
0.66,
0.125,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.1103,
0.0074,
0,
0.66,... | [
"\"\"\"\n webapp2_extras.mako\n ===================\n\n Mako template support for webapp2.\n\n Learn more about Mako: http://www.makotemplates.org/",
"from __future__ import absolute_import",
"from mako import lookup",
"import webapp2",
"default_config = {\n 'template_path': 'templates',\n}",... |
# -*- coding: utf-8 -*-
"""
webapp2_extras
==============
Extra modules for webapp2.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
| [
[
8,
0,
0.6,
0.9,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
]
] | [
"\"\"\"\n webapp2_extras\n ==============\n\n Extra modules for webapp2.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details."
] |
# -*- coding: utf-8 -*-
"""
webapp2_extras.jinja2
=====================
Jinja2 template support for webapp2.
Learn more about Jinja2: http://jinja.pocoo.org/
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
from __future__ import absolute_import
i... | [
[
8,
0,
0.0304,
0.0478,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0565,
0.0043,
0,
0.66,
0.125,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.0652,
0.0043,
0,
0.66,... | [
"\"\"\"\n webapp2_extras.jinja2\n =====================\n\n Jinja2 template support for webapp2.\n\n Learn more about Jinja2: http://jinja.pocoo.org/",
"from __future__ import absolute_import",
"import jinja2",
"import webapp2",
"default_config = {\n 'template_path': 'templates',\n 'compil... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.i18n
===================
Internationalization support for webapp2.
Several ideas borrowed from tipfy.i18n and Flask-Babel.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
import datetime
import gettext as... | [
[
8,
0,
0.0077,
0.012,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0142,
0.0011,
0,
0.66,
0.0244,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.0153,
0.0011,
0,
0.66,... | [
"\"\"\"\n webapp2_extras.i18n\n ===================\n\n Internationalization support for webapp2.\n\n Several ideas borrowed from tipfy.i18n and Flask-Babel.",
"import datetime",
"import gettext as gettext_stdlib",
"import babel",
"from babel import dates",
"from babel import numbers",
"from... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.security
=======================
Security related helpers such as secure password hashing tools and a
random token generator.
:copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
:co... | [
[
8,
0,
0.0344,
0.055,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0642,
0.0046,
0,
0.66,
0.0385,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.0734,
0.0046,
0,
0.66,... | [
"\"\"\"\n webapp2_extras.security\n =======================\n\n Security related helpers such as secure password hashing tools and a\n random token generator.\n\n :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details.",
"from __future__ import division",
"import hashlib",
"imp... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.sessions_memcache
================================
Extended sessions stored in memcache.
App Engine-specific modules were moved to webapp2_extras.appengine.
This module is here for compatibility purposes.
:copyright: 2011 by tipfy.org.
:license: ... | [
[
8,
0,
0.375,
0.6,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.7,
0.05,
0,
0.66,
0.3333,
358,
0,
1,
0,
0,
358,
0,
0
],
[
8,
0,
0.875,
0.2,
0,
0.66,
0.6667,... | [
"\"\"\"\n webapp2_extras.sessions_memcache\n ================================\n\n Extended sessions stored in memcache.\n\n App Engine-specific modules were moved to webapp2_extras.appengine.\n This module is here for compatibility purposes.",
"import warnings",
"warnings.warn(DeprecationWarning(... |
#!/usr/bin/python
#
# Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
[
1,
0,
0.4722,
0.0278,
0,
0.66,
0,
152,
0,
1,
0,
0,
152,
0,
0
],
[
1,
0,
0.5278,
0.0278,
0,
0.66,
0.5,
522,
0,
1,
0,
0,
522,
0,
0
],
[
8,
0,
0.8056,
0.4167,
0,
0.6... | [
"from distutils.core import setup",
"import ipaddr",
"setup(name='ipaddr',\n maintainer='Google',\n maintainer_email='ipaddr-py-dev@googlegroups.com',\n version=ipaddr.__version__,\n url='http://code.google.com/p/ipaddr-py/',\n license='Apache License, Version 2.0',\n classifiers=[... |
#!/usr/bin/python
#
# Copyright 2007 Google Inc.
# Licensed to PSF under a Contributor Agreement.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICE... | [
[
8,
0,
0.0108,
0.0032,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0132,
0.0005,
0,
0.66,
0.0357,
162,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0142,
0.0005,
0,
0.66,... | [
"\"\"\"A fast, lightweight IPv4/IPv6 manipulation library in Python.\n\nThis library is used to create/poke/manipulate IPv4 and IPv6 addresses\nand networks.\n\n\"\"\"",
"__version__ = '2.1.10'",
"import struct",
"IPV4LENGTH = 32",
"IPV6LENGTH = 128",
"class AddressValueError(ValueError):\n \"\"\"A Val... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.sessions_ndb
===========================
Extended sessions stored in datastore using the ndb library.
App Engine-specific modules were moved to webapp2_extras.appengine.
This module is here for compatibility purposes.
:copyright: 2011 by tipfy.org.
... | [
[
8,
0,
0.375,
0.6,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.7,
0.05,
0,
0.66,
0.3333,
358,
0,
1,
0,
0,
358,
0,
0
],
[
8,
0,
0.875,
0.2,
0,
0.66,
0.6667,... | [
"\"\"\"\n webapp2_extras.sessions_ndb\n ===========================\n\n Extended sessions stored in datastore using the ndb library.\n\n App Engine-specific modules were moved to webapp2_extras.appengine.\n This module is here for compatibility purposes.",
"import warnings",
"warnings.warn(Deprec... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.users
====================
Helpers for google.appengine.api.users.
App Engine-specific modules were moved to webapp2_extras.appengine.
This module is here for compatibility purposes.
:copyright: 2011 tipfy.org.
:license: Apache Sotware License, s... | [
[
8,
0,
0.375,
0.6,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.7,
0.05,
0,
0.66,
0.3333,
358,
0,
1,
0,
0,
358,
0,
0
],
[
8,
0,
0.875,
0.2,
0,
0.66,
0.6667,... | [
"\"\"\"\n webapp2_extras.users\n ====================\n\n Helpers for google.appengine.api.users.\n\n App Engine-specific modules were moved to webapp2_extras.appengine.\n This module is here for compatibility purposes.",
"import warnings",
"warnings.warn(DeprecationWarning(\n 'webapp2_extras.... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.auth
===================
Utilities for authentication and authorization.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
import logging
import time
import webapp2
from webapp2_extras import security
from web... | [
[
8,
0,
0.0093,
0.014,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0171,
0.0016,
0,
0.66,
0.0556,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.0186,
0.0016,
0,
0.66,... | [
"\"\"\"\n webapp2_extras.auth\n ===================\n\n Utilities for authentication and authorization.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details.",
"import logging",
"import time",
"import webapp2",
"from webapp2_extras import security",
... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.routes
=====================
Extra route classes for webapp2.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
import re
import urllib
from webob import exc
import webapp2
class MultiRoute(object):
"""B... | [
[
8,
0,
0.017,
0.0255,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0312,
0.0028,
0,
0.66,
0.0909,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.034,
0.0028,
0,
0.66,
... | [
"\"\"\"\n webapp2_extras.routes\n =====================\n\n Extra route classes for webapp2.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details.",
"import re",
"import urllib",
"from webob import exc",
"import webapp2",
"class MultiRoute(object):\... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.json
===================
JSON helpers for webapp2.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
from __future__ import absolute_import
import base64
import urllib
try:
# Preference for installed libra... | [
[
8,
0,
0.0556,
0.0833,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1019,
0.0093,
0,
0.66,
0.1,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.1204,
0.0093,
0,
0.66,
... | [
"\"\"\"\n webapp2_extras.json\n ===================\n\n JSON helpers for webapp2.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details.",
"from __future__ import absolute_import",
"import base64",
"import urllib",
"try:\n # Preference for installed... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.sessions
=======================
Lightweight but flexible session support for webapp2.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
import re
import webapp2
from webapp2_extras import securecookie
from we... | [
[
8,
0,
0.0126,
0.0189,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0231,
0.0021,
0,
0.66,
0.0625,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0273,
0.0021,
0,
0.66... | [
"\"\"\"\n webapp2_extras.sessions\n =======================\n\n Lightweight but flexible session support for webapp2.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details.",
"import re",
"import webapp2",
"from webapp2_extras import securecookie",
"fr... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.local_app
~~~~~~~~~~~~~~~~~~~~~~~~
This module is deprecated. The functionality is now available
directly in webapp2.
Previously it implemented a WSGIApplication adapted for threaded
environments.
:copyright: 2011 by tipfy.org.
:license: Apac... | [
[
8,
0,
0.3333,
0.5417,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.625,
0.0417,
0,
0.66,
0.25,
358,
0,
1,
0,
0,
358,
0,
0
],
[
1,
0,
0.7083,
0.0417,
0,
0.66,
... | [
"\"\"\"\n webapp2_extras.local_app\n ~~~~~~~~~~~~~~~~~~~~~~~~\n\n This module is deprecated. The functionality is now available\n directly in webapp2.\n\n Previously it implemented a WSGIApplication adapted for threaded",
"import warnings",
"import webapp2",
"warnings.warn(DeprecationWarning(\n... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.local
~~~~~~~~~~~~~~~~~~~~
This module implements thread-local utilities.
This implementation comes from werkzeug.local.
:copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
try:
... | [
[
8,
0,
0.0303,
0.0476,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
7,
0,
0.0758,
0.0433,
0,
0.66,
0.2,
0,
0,
1,
0,
0,
0,
0,
0
],
[
1,
1,
0.0606,
0.0043,
1,
0.95,
0... | [
"\"\"\"\n webapp2_extras.local\n ~~~~~~~~~~~~~~~~~~~~\n\n This module implements thread-local utilities.\n\n This implementation comes from werkzeug.local.",
"try:\n from greenlet import getcurrent as get_current_greenlet\nexcept ImportError: # pragma: no cover\n try:\n from py.magic impo... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.config
=====================
Configuration object for webapp2.
This module is deprecated. See :class:`webapp2.WSGIApplication.config`.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
from __future__ impor... | [
[
8,
0,
0.0307,
0.0482,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.057,
0.0044,
0,
0.66,
0.125,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.0658,
0.0044,
0,
0.66,
... | [
"\"\"\"\n webapp2_extras.config\n =====================\n\n Configuration object for webapp2.\n\n This module is deprecated. See :class:`webapp2.WSGIApplication.config`.",
"from __future__ import absolute_import",
"import warnings",
"import webapp2",
"warnings.warn(DeprecationWarning(\n 'weba... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.appengine.sessions_ndb
=====================================
Extended sessions stored in datastore using the ndb library.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
from __future__ import absolute_import
... | [
[
8,
0,
0.0513,
0.0769,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.094,
0.0085,
0,
0.66,
0.1429,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.1111,
0.0085,
0,
0.66,... | [
"\"\"\"\n webapp2_extras.appengine.sessions_ndb\n =====================================\n\n Extended sessions stored in datastore using the ndb library.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details.",
"from __future__ import absolute_import",
"fro... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.appengine.users
==============================
Helpers for google.appengine.api.users.
:copyright: 2011 tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
from google.appengine.api import users
def login_required(handler_method):
... | [
[
8,
0,
0.0857,
0.1286,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1571,
0.0143,
0,
0.66,
0.3333,
279,
0,
1,
0,
0,
279,
0,
0
],
[
2,
0,
0.3786,
0.3714,
0,
0.66... | [
"\"\"\"\n webapp2_extras.appengine.users\n ==============================\n\n Helpers for google.appengine.api.users.\n\n :copyright: 2011 tipfy.org.\n :license: Apache Sotware License, see LICENSE for details.",
"from google.appengine.api import users",
"def login_required(handler_method):\n ... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.appengine.auth.models
====================================
Auth related models.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
import time
try:
from ndb import model
except ImportError: # pragma: no cove... | [
[
8,
0,
0.0144,
0.0216,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0264,
0.0024,
0,
0.66,
0.1429,
654,
0,
1,
0,
0,
654,
0,
0
],
[
7,
0,
0.0349,
0.0096,
0,
0.66... | [
"\"\"\"\n webapp2_extras.appengine.auth.models\n ====================================\n\n Auth related models.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details.",
"import time",
"try:\n from ndb import model\nexcept ImportError: # pragma: no cover\... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.appengine.auth
=============================
Authentication and authorization utilities.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
| [
[
8,
0,
0.6,
0.9,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
]
] | [
"\"\"\"\n webapp2_extras.appengine.auth\n =============================\n\n Authentication and authorization utilities.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details."
] |
# -*- coding: utf-8 -*-
"""
webapp2_extras.appengine
========================
App Engine-specific modules.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
| [
[
8,
0,
0.6,
0.9,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
]
] | [
"\"\"\"\n webapp2_extras.appengine\n ========================\n\n App Engine-specific modules.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details."
] |
# -*- coding: utf-8 -*-
"""
webapp2_extras.appengine.sessions_memcache
==========================================
Extended sessions stored in memcache.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
from google.appengine.api import memcache
from weba... | [
[
8,
0,
0.1176,
0.1765,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2157,
0.0196,
0,
0.66,
0.3333,
279,
0,
1,
0,
0,
279,
0,
0
],
[
1,
0,
0.2549,
0.0196,
0,
0.66... | [
"\"\"\"\n webapp2_extras.appengine.sessions_memcache\n ==========================================\n\n Extended sessions stored in memcache.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details.",
"from google.appengine.api import memcache",
"from webapp2_... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.mako
===================
Mako template support for webapp2.
Learn more about Mako: http://www.makotemplates.org/
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
from __future__ import absolute_import
fro... | [
[
8,
0,
0.0515,
0.0809,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0956,
0.0074,
0,
0.66,
0.125,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.1103,
0.0074,
0,
0.66,... | [
"\"\"\"\n webapp2_extras.mako\n ===================\n\n Mako template support for webapp2.\n\n Learn more about Mako: http://www.makotemplates.org/",
"from __future__ import absolute_import",
"from mako import lookup",
"import webapp2",
"default_config = {\n 'template_path': 'templates',\n}",... |
# -*- coding: utf-8 -*-
"""
webapp2_extras
==============
Extra modules for webapp2.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
| [
[
8,
0,
0.6,
0.9,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
]
] | [
"\"\"\"\n webapp2_extras\n ==============\n\n Extra modules for webapp2.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details."
] |
# -*- coding: utf-8 -*-
"""
webapp2_extras.jinja2
=====================
Jinja2 template support for webapp2.
Learn more about Jinja2: http://jinja.pocoo.org/
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
from __future__ import absolute_import
i... | [
[
8,
0,
0.0304,
0.0478,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0565,
0.0043,
0,
0.66,
0.125,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.0652,
0.0043,
0,
0.66,... | [
"\"\"\"\n webapp2_extras.jinja2\n =====================\n\n Jinja2 template support for webapp2.\n\n Learn more about Jinja2: http://jinja.pocoo.org/",
"from __future__ import absolute_import",
"import jinja2",
"import webapp2",
"default_config = {\n 'template_path': 'templates',\n 'compil... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.i18n
===================
Internationalization support for webapp2.
Several ideas borrowed from tipfy.i18n and Flask-Babel.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
import datetime
import gettext as... | [
[
8,
0,
0.0077,
0.012,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0142,
0.0011,
0,
0.66,
0.0244,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.0153,
0.0011,
0,
0.66,... | [
"\"\"\"\n webapp2_extras.i18n\n ===================\n\n Internationalization support for webapp2.\n\n Several ideas borrowed from tipfy.i18n and Flask-Babel.",
"import datetime",
"import gettext as gettext_stdlib",
"import babel",
"from babel import dates",
"from babel import numbers",
"from... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.security
=======================
Security related helpers such as secure password hashing tools and a
random token generator.
:copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
:co... | [
[
8,
0,
0.0344,
0.055,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0642,
0.0046,
0,
0.66,
0.0385,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.0734,
0.0046,
0,
0.66,... | [
"\"\"\"\n webapp2_extras.security\n =======================\n\n Security related helpers such as secure password hashing tools and a\n random token generator.\n\n :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details.",
"from __future__ import division",
"import hashlib",
"imp... |
# -*- coding: utf-8 -*-
"""
webapp2_extras.sessions_memcache
================================
Extended sessions stored in memcache.
App Engine-specific modules were moved to webapp2_extras.appengine.
This module is here for compatibility purposes.
:copyright: 2011 by tipfy.org.
:license: ... | [
[
8,
0,
0.375,
0.6,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.7,
0.05,
0,
0.66,
0.3333,
358,
0,
1,
0,
0,
358,
0,
0
],
[
8,
0,
0.875,
0.2,
0,
0.66,
0.6667,... | [
"\"\"\"\n webapp2_extras.sessions_memcache\n ================================\n\n Extended sessions stored in memcache.\n\n App Engine-specific modules were moved to webapp2_extras.appengine.\n This module is here for compatibility purposes.",
"import warnings",
"warnings.warn(DeprecationWarning(... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Local Shared Object implementation.
Local Shared Object (LSO), sometimes known as Adobe Flash cookies, is a
cookie-like data entity used by the Adobe Flash Player and Gnash. The players
allow web content to read and write LSO data to the computer's... | [
[
8,
0,
0.0473,
0.0597,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0846,
0.005,
0,
0.66,
0.0909,
642,
0,
1,
0,
0,
642,
0,
0
],
[
1,
0,
0.0896,
0.005,
0,
0.66,
... | [
"\"\"\"\nLocal Shared Object implementation.\n\nLocal Shared Object (LSO), sometimes known as Adobe Flash cookies, is a\ncookie-like data entity used by the Adobe Flash Player and Gnash. The players\nallow web content to read and write LSO data to the computer's local drive on\na per-domain basis.",
"import pyamf... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
AMF0 implementation.
C{AMF0} supports the basic data types used for the NetConnection, NetStream,
LocalConnection, SharedObjects and other classes in the Adobe Flash Player.
@since: 0.1
@see: U{Official AMF0 Specification in English (external)
... | [
[
8,
0,
0.014,
0.0187,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0254,
0.0013,
0,
0.66,
0.037,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.028,
0.0013,
0,
0.66,
... | [
"\"\"\"\nAMF0 implementation.\n\nC{AMF0} supports the basic data types used for the NetConnection, NetStream,\nLocalConnection, SharedObjects and other classes in the Adobe Flash Player.\n\n@since: 0.1\n@see: U{Official AMF0 Specification in English (external)",
"import datetime",
"import pyamf",
"from pyamf ... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
AMF0 Remoting support.
@since: 0.1.0
"""
import traceback
import sys
from pyamf import remoting
from pyamf.remoting import gateway
class RequestProcessor(object):
def __init__(self, gateway):
self.gateway = gateway
def authenti... | [
[
8,
0,
0.0444,
0.037,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0741,
0.0074,
0,
0.66,
0.1667,
423,
0,
1,
0,
0,
423,
0,
0
],
[
1,
0,
0.0815,
0.0074,
0,
0.66,... | [
"\"\"\"\nAMF0 Remoting support.\n\n@since: 0.1.0\n\"\"\"",
"import traceback",
"import sys",
"from pyamf import remoting",
"from pyamf.remoting import gateway",
"class RequestProcessor(object):\n def __init__(self, gateway):\n self.gateway = gateway\n\n def authenticateRequest(self, request, ... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
AMF3 RemoteObject support.
@see: U{RemoteObject on LiveDocs
<http://livedocs.adobe.com/flex/3/langref/mx/rpc/remoting/RemoteObject.html>}
@since: 0.1.0
"""
import calendar
import time
import uuid
import sys
import pyamf.python
from pyamf import ... | [
[
8,
0,
0.0393,
0.0419,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0681,
0.0052,
0,
0.66,
0.0769,
917,
0,
1,
0,
0,
917,
0,
0
],
[
1,
0,
0.0733,
0.0052,
0,
0.66... | [
"\"\"\"\nAMF3 RemoteObject support.\n\n@see: U{RemoteObject on LiveDocs\n<http://livedocs.adobe.com/flex/3/langref/mx/rpc/remoting/RemoteObject.html>}\n\n@since: 0.1.0\n\"\"\"",
"import calendar",
"import time",
"import uuid",
"import sys",
"import pyamf.python",
"from pyamf import remoting",
"from py... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
AMF Remoting support.
A Remoting request from the client consists of a short preamble, headers, and
bodies. The preamble contains basic information about the nature of the
request. Headers can be used to request debugging information, send
authenti... | [
[
8,
0,
0.0225,
0.0349,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0422,
0.0015,
0,
0.66,
0.0294,
642,
0,
1,
0,
0,
642,
0,
0
],
[
1,
0,
0.0436,
0.0015,
0,
0.66... | [
"\"\"\"\nAMF Remoting support.\n\nA Remoting request from the client consists of a short preamble, headers, and\nbodies. The preamble contains basic information about the nature of the\nrequest. Headers can be used to request debugging information, send\nauthentication info, tag transactions, etc. Bodies contain ac... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Gateway for Google App Engine.
This gateway allows you to expose functions in Google App Engine web
applications to AMF clients and servers.
@see: U{Google App Engine homepage
<http://code.google.com/appengine/docs/python/overview.html>}
@sinc... | [
[
8,
0,
0.0497,
0.0585,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0877,
0.0058,
0,
0.66,
0.1111,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0936,
0.0058,
0,
0.66... | [
"\"\"\"\nGateway for Google App Engine.\n\nThis gateway allows you to expose functions in Google App Engine web\napplications to AMF clients and servers.\n\n@see: U{Google App Engine homepage\n <http://code.google.com/appengine/docs/python/overview.html>}",
"import sys",
"import os.path",
"try:\n sys.pa... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Gateway for the Django framework.
This gateway allows you to expose functions in Django to AMF clients and
servers.
@see: U{Django homepage<http://djangoproject.com>}
@since: 0.1.0
"""
django = __import__('django.http')
http = django.http
conf = ... | [
[
8,
0,
0.0437,
0.0492,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0765,
0.0055,
0,
0.66,
0.1111,
294,
3,
1,
0,
0,
744,
10,
1
],
[
14,
0,
0.082,
0.0055,
0,
0.... | [
"\"\"\"\nGateway for the Django framework.\n\nThis gateway allows you to expose functions in Django to AMF clients and\nservers.\n\n@see: U{Django homepage<http://djangoproject.com>}\n@since: 0.1.0",
"django = __import__('django.http')",
"http = django.http",
"conf = __import__('django.conf')",
"conf = conf... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Twisted server implementation.
This gateway allows you to expose functions in Twisted to AMF clients and
servers.
@see: U{Twisted homepage<http://twistedmatrix.com>}
@since: 0.1.0
"""
import sys
import os.path
try:
sys.path.remove('')
except... | [
[
8,
0,
0.0192,
0.0216,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0336,
0.0024,
0,
0.66,
0.0526,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.036,
0.0024,
0,
0.66,... | [
"\"\"\"\nTwisted server implementation.\n\nThis gateway allows you to expose functions in Twisted to AMF clients and\nservers.\n\n@see: U{Twisted homepage<http://twistedmatrix.com>}\n@since: 0.1.0",
"import sys",
"import os.path",
"try:\n sys.path.remove('')\nexcept ValueError:\n pass",
" sys.path.... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Remoting server implementations.
@since: 0.1.0
"""
import sys
import types
import datetime
import pyamf
from pyamf import remoting, util, python
try:
from platform import python_implementation
impl = python_implementation()
except Import... | [
[
8,
0,
0.01,
0.0084,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0167,
0.0017,
0,
0.66,
0.0526,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0184,
0.0017,
0,
0.66,
... | [
"\"\"\"\nRemoting server implementations.\n\n@since: 0.1.0\n\"\"\"",
"import sys",
"import types",
"import datetime",
"import pyamf",
"from pyamf import remoting, util, python",
"try:\n from platform import python_implementation\n impl = python_implementation()\nexcept ImportError:\n impl = 'Py... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
WSGI server implementation.
The Python Web Server Gateway Interface (WSGI) is a simple and universal
interface between web servers and web applications or frameworks.
The WSGI interface has two sides: the "server" or "gateway" side, and the
"appli... | [
[
8,
0,
0.0742,
0.1099,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1374,
0.0055,
0,
0.66,
0.2,
642,
0,
1,
0,
0,
642,
0,
0
],
[
1,
0,
0.1429,
0.0055,
0,
0.66,
... | [
"\"\"\"\nWSGI server implementation.\n\nThe Python Web Server Gateway Interface (WSGI) is a simple and universal\ninterface between web servers and web applications or frameworks.\n\nThe WSGI interface has two sides: the \"server\" or \"gateway\" side, and the\n\"application\" or \"framework\" side. The server side... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Flex Data Management Service implementation.
This module contains the message classes used with Flex Data Management
Service.
@since: 0.1.0
"""
import pyamf
from pyamf.flex.messaging import AsyncMessage, AcknowledgeMessage, ErrorMessage
#: Names... | [
[
8,
0,
0.0605,
0.0645,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1048,
0.0081,
0,
0.66,
0.1111,
642,
0,
1,
0,
0,
642,
0,
0
],
[
1,
0,
0.1129,
0.0081,
0,
0.66... | [
"\"\"\"\nFlex Data Management Service implementation.\n\nThis module contains the message classes used with Flex Data Management\nService.\n\n@since: 0.1.0\n\"\"\"",
"import pyamf",
"from pyamf.flex.messaging import AsyncMessage, AcknowledgeMessage, ErrorMessage",
"NAMESPACE = 'flex.data.messages'",
"__all_... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Flex Messaging implementation.
This module contains the message classes used with Flex Data Services.
@see: U{RemoteObject on OSFlash (external)
<http://osflash.org/documentation/amf3#remoteobject>}
@since: 0.1
"""
import uuid
import pyamf.util... | [
[
8,
0,
0.0158,
0.0186,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0278,
0.0019,
0,
0.66,
0.0476,
9,
0,
1,
0,
0,
9,
0,
0
],
[
1,
0,
0.0315,
0.0019,
0,
0.66,
... | [
"\"\"\"\nFlex Messaging implementation.\n\nThis module contains the message classes used with Flex Data Services.\n\n@see: U{RemoteObject on OSFlash (external)\n<http://osflash.org/documentation/amf3#remoteobject>}",
"import uuid",
"import pyamf.util",
"from pyamf import amf3",
"__all__ = [\n 'RemotingMe... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Compatibility classes/functions for Flex.
@note: Not available in ActionScript 1.0 and 2.0.
@see: U{Flex on Wikipedia<http://en.wikipedia.org/wiki/Adobe_Flex>}
@since: 0.1
"""
import pyamf
__all__ = ['ArrayCollection', 'ObjectProxy']
class Arra... | [
[
8,
0,
0.0266,
0.0266,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0456,
0.0038,
0,
0.66,
0.1429,
642,
0,
1,
0,
0,
642,
0,
0
],
[
14,
0,
0.0532,
0.0038,
0,
0.6... | [
"\"\"\"\nCompatibility classes/functions for Flex.\n\n@note: Not available in ActionScript 1.0 and 2.0.\n@see: U{Flex on Wikipedia<http://en.wikipedia.org/wiki/Adobe_Flex>}\n@since: 0.1\n\"\"\"",
"import pyamf",
"__all__ = ['ArrayCollection', 'ObjectProxy']",
"class ArrayCollection(list):\n \"\"\"\n I r... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Class alias base functionality.
@since: 0.6
"""
import inspect
import pyamf
from pyamf import python, util
class UnknownClassAlias(Exception):
"""
Raised if the AMF stream specifies an Actionscript class that does not
have a Python ... | [
[
8,
0,
0.011,
0.0092,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0183,
0.0018,
0,
0.66,
0.2,
878,
0,
1,
0,
0,
878,
0,
0
],
[
1,
0,
0.022,
0.0018,
0,
0.66,
... | [
"\"\"\"\nClass alias base functionality.\n\n@since: 0.6\n\"\"\"",
"import inspect",
"import pyamf",
"from pyamf import python, util",
"class UnknownClassAlias(Exception):\n \"\"\"\n Raised if the AMF stream specifies an Actionscript class that does not\n have a Python class alias.\n\n @see: L{re... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
AMF3 implementation.
C{AMF3} is the default serialization for
U{ActionScript<http://en.wikipedia.org/wiki/ActionScript>} 3.0 and provides
various advantages over L{AMF0<pyamf.amf0>}, which is used for ActionScript 1.0
and 2.0. It adds support for s... | [
[
8,
0,
0.0082,
0.0119,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.015,
0.0006,
0,
0.66,
0.0294,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.0157,
0.0006,
0,
0.66,... | [
"\"\"\"\nAMF3 implementation.\n\nC{AMF3} is the default serialization for\nU{ActionScript<http://en.wikipedia.org/wiki/ActionScript>} 3.0 and provides\nvarious advantages over L{AMF0<pyamf.amf0>}, which is used for ActionScript 1.0\nand 2.0. It adds support for sending C{int} and C{uint} objects as integers and\nsu... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Python compatibility values and helpers.
"""
try:
import __builtin__ as builtins
except ImportError:
import builtins
import types
func_types = (
types.BuiltinFunctionType, types.BuiltinMethodType, types.CodeType,
types.FunctionTy... | [
[
8,
0,
0.0641,
0.0385,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
7,
0,
0.1218,
0.0513,
0,
0.66,
0.0526,
0,
0,
1,
0,
0,
0,
0,
0
],
[
1,
1,
0.1154,
0.0128,
1,
0.91,
... | [
"\"\"\"\nPython compatibility values and helpers.\n\"\"\"",
"try:\n import __builtin__ as builtins\nexcept ImportError:\n import builtins",
" import __builtin__ as builtins",
" import builtins",
"import types",
"func_types = (\n types.BuiltinFunctionType, types.BuiltinMethodType, types.Code... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details. | [] | [] |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Remoting tests.
@since: 0.1.0
"""
| [
[
8,
0,
0.75,
0.625,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
]
] | [
"\"\"\"\nRemoting tests.\n\n@since: 0.1.0\n\"\"\""
] |
from google.appengine.ext import db
class PetModel(db.Model):
"""
"""
# 'borrowed' from http://code.google.com/appengine/docs/datastore/entitiesandmodels.html
name = db.StringProperty(required=True)
type = db.StringProperty(required=True, choices=set(["cat", "dog", "bird"]))
birthdate = db.Da... | [
[
1,
0,
0.0179,
0.0179,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
3,
0,
0.1518,
0.1786,
0,
0.66,
0.1429,
359,
0,
0,
0,
0,
697,
0,
6
],
[
8,
1,
0.0982,
0.0357,
1,
... | [
"from google.appengine.ext import db",
"class PetModel(db.Model):\n \"\"\"\n \"\"\"\n\n # 'borrowed' from http://code.google.com/appengine/docs/datastore/entitiesandmodels.html\n name = db.StringProperty(required=True)\n type = db.StringProperty(required=True, choices=set([\"cat\", \"dog\", \"bird\... |
# The simplest Django settings possible
DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = ':memory:'
INSTALLED_APPS = ('adapters',) | [
[
14,
0,
0.5,
0.1667,
0,
0.66,
0,
96,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.6667,
0.1667,
0,
0.66,
0.5,
982,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
1,
0.1667,
0,
0.66,
1,
... | [
"DATABASE_ENGINE = 'sqlite3'",
"DATABASE_NAME = ':memory:'",
"INSTALLED_APPS = ('adapters',)"
] |
from django.db import models
class SimplestModel(models.Model):
"""
The simplest Django model you can have
"""
class TimeClass(models.Model):
"""
A model with all the time based fields
"""
t = models.TimeField()
d = models.DateField()
dt = models.DateTimeField()
class ParentRe... | [
[
1,
0,
0.0079,
0.0079,
0,
0.66,
0,
40,
0,
1,
0,
0,
40,
0,
0
],
[
3,
0,
0.0433,
0.0315,
0,
0.66,
0.0556,
583,
0,
0,
0,
0,
996,
0,
0
],
[
8,
1,
0.0472,
0.0236,
1,
0.... | [
"from django.db import models",
"class SimplestModel(models.Model):\n \"\"\"\n The simplest Django model you can have\n \"\"\"",
" \"\"\"\n The simplest Django model you can have\n \"\"\"",
"class TimeClass(models.Model):\n \"\"\"\n A model with all the time based fields\n \"\"\"\n\... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
File included to make the directory a Python package.
The test_*.py files are special in this directory in that they refer to the
top level module names of the adapter to test. An attempt will be made to
import that module but ignored if it fails (... | [
[
8,
0,
0.7,
0.7,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
]
] | [
"\"\"\"\nFile included to make the directory a Python package.\n\nThe test_*.py files are special in this directory in that they refer to the\ntop level module names of the adapter to test. An attempt will be made to\nimport that module but ignored if it fails (not available on the system).\n\"\"\""
] |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Test utilities.
@since: 0.1.0
"""
import unittest
import copy
import pyamf
from pyamf import python
class ClassicSpam:
def __readamf__(self, input):
pass
def __writeamf__(self, output):
pass
class Spam(object):
""... | [
[
8,
0,
0.0233,
0.0195,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0389,
0.0039,
0,
0.66,
0.0625,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0428,
0.0039,
0,
0.66,
... | [
"\"\"\"\nTest utilities.\n\n@since: 0.1.0\n\"\"\"",
"import unittest",
"import copy",
"import pyamf",
"from pyamf import python",
"class ClassicSpam:\n def __readamf__(self, input):\n pass\n\n def __writeamf__(self, output):\n pass",
" def __readamf__(self, input):\n pass",... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Unit tests.
@since: 0.1.0
"""
import os.path
try:
import unittest2 as unittest
import sys
sys.modules['unittest'] = unittest
except ImportError:
import unittest
if not hasattr(unittest.TestCase, 'assertIdentical'):
def asse... | [
[
8,
0,
0.0508,
0.0424,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0847,
0.0085,
0,
0.66,
0.125,
79,
0,
1,
0,
0,
79,
0,
0
],
[
7,
0,
0.1271,
0.0593,
0,
0.66,
... | [
"\"\"\"\nUnit tests.\n\n@since: 0.1.0\n\"\"\"",
"import os.path",
"try:\n import unittest2 as unittest\n import sys\n\n sys.modules['unittest'] = unittest\nexcept ImportError:\n import unittest",
" import unittest2 as unittest",
" import sys",
" sys.modules['unittest'] = unittest",
... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Unit tests for Remoting gateways.
@since: 0.1.0
"""
| [
[
8,
0,
0.75,
0.625,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
]
] | [
"\"\"\"\nUnit tests for Remoting gateways.\n\n@since: 0.1.0\n\"\"\""
] |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Because there is disparity between Python packaging (and it is being sorted
out ...) we currently provide our own way to get the string of a version tuple.
@since: 0.6
"""
class Version(tuple):
_version = None
def __new__(cls, *args):
... | [
[
8,
0,
0.1625,
0.15,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
3,
0,
0.4625,
0.35,
0,
0.66,
0.5,
444,
0,
2,
0,
0,
259,
0,
2
],
[
14,
1,
0.35,
0.025,
1,
0.5,
0,
... | [
"\"\"\"\nBecause there is disparity between Python packaging (and it is being sorted\nout ...) we currently provide our own way to get the string of a version tuple.\n\n@since: 0.6\n\"\"\"",
"class Version(tuple):\n\n _version = None\n\n def __new__(cls, *args):\n x = tuple.__new__(cls, args)\n\n ... |
"""
"""
from django.contrib.auth import models
import pyamf.adapters
models.User.__amf__ = {
'exclude': ('message_set', 'password'),
'readonly': ('username',)
}
# ensure that the adapter that we depend on is loaded ..
pyamf.adapters.get_adapter('django.db.models.base')
pyamf.register_package(models, model... | [
[
8,
0,
0.0882,
0.1176,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2353,
0.0588,
0,
0.66,
0.2,
895,
0,
1,
0,
0,
895,
0,
0
],
[
1,
0,
0.3529,
0.0588,
0,
0.66,
... | [
"\"\"\"\n\"\"\"",
"from django.contrib.auth import models",
"import pyamf.adapters",
"models.User.__amf__ = {\n 'exclude': ('message_set', 'password'),\n 'readonly': ('username',)\n}",
"pyamf.adapters.get_adapter('django.db.models.base')",
"pyamf.register_package(models, models.__name__)"
] |
# Copyright (c) The PyAMF Project.
# See LICENSE for details.
"""
SQLAlchemy adapter module.
@see: U{SQLAlchemy homepage<http://www.sqlalchemy.org>}
@since: 0.4
"""
from sqlalchemy.orm import collections
import pyamf
from pyamf.adapters import util
pyamf.add_type(collections.InstrumentedList, util.to_list)
pyamf... | [
[
8,
0,
0.35,
0.35,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.6,
0.05,
0,
0.66,
0.1667,
518,
0,
1,
0,
0,
518,
0,
0
],
[
1,
0,
0.7,
0.05,
0,
0.66,
0.3333,
... | [
"\"\"\"\nSQLAlchemy adapter module.\n\n@see: U{SQLAlchemy homepage<http://www.sqlalchemy.org>}\n\n@since: 0.4\n\"\"\"",
"from sqlalchemy.orm import collections",
"import pyamf",
"from pyamf.adapters import util",
"pyamf.add_type(collections.InstrumentedList, util.to_list)",
"pyamf.add_type(collections.Ins... |
# Copyright (c) The PyAMF Project.
# See LICENSE for details.
"""
Elixir adapter module. Elixir adds a number of properties to the mapped instances.
@see: U{Elixir homepage<http://elixir.ematia.de>}
@since: 0.6
"""
import elixir.entity
import pyamf
from pyamf import adapters
adapter = adapters.get_adapter('sqlalch... | [
[
8,
0,
0.1102,
0.1017,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1864,
0.0169,
0,
0.66,
0.1429,
565,
0,
1,
0,
0,
565,
0,
0
],
[
1,
0,
0.2203,
0.0169,
0,
0.66... | [
"\"\"\"\nElixir adapter module. Elixir adds a number of properties to the mapped instances.\n\n@see: U{Elixir homepage<http://elixir.ematia.de>}\n@since: 0.6\n\"\"\"",
"import elixir.entity",
"import pyamf",
"from pyamf import adapters",
"adapter = adapters.get_adapter('sqlalchemy.orm')",
"adapter.class_c... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Adapter module for U{google.appengine.ext.blobstore<http://
code.google.com/appengine/docs/python/blobstore/>}.
@since: 0.6
"""
from google.appengine.ext import blobstore
import pyamf
bi = blobstore.BlobInfo
class BlobInfoStub(object):
""... | [
[
8,
0,
0.0844,
0.0779,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1429,
0.013,
0,
0.66,
0.1429,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.1688,
0.013,
0,
0.66,
... | [
"\"\"\"\nAdapter module for U{google.appengine.ext.blobstore<http://\ncode.google.com/appengine/docs/python/blobstore/>}.\n\n@since: 0.6\n\"\"\"",
"from google.appengine.ext import blobstore",
"import pyamf",
"bi = blobstore.BlobInfo",
"class BlobInfoStub(object):\n \"\"\"\n Since C{blobstore.BlobInfo... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
U{collections<http://docs.python.org/library/collections.html>} adapter module.
@since: 0.5
"""
import collections
import pyamf
from pyamf.adapters import util
if hasattr(collections, 'deque'):
pyamf.add_type(collections.deque, util.to_list... | [
[
8,
0,
0.3,
0.25,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.5,
0.05,
0,
0.66,
0.2,
193,
0,
1,
0,
0,
193,
0,
0
],
[
1,
0,
0.6,
0.05,
0,
0.66,
0.4,
642... | [
"\"\"\"\nU{collections<http://docs.python.org/library/collections.html>} adapter module.\n\n@since: 0.5\n\"\"\"",
"import collections",
"import pyamf",
"from pyamf.adapters import util",
"if hasattr(collections, 'deque'):\n pyamf.add_type(collections.deque, util.to_list)",
" pyamf.add_type(collectio... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Adapter for the U{decimal<http://docs.python.org/library/decimal.html>} module.
@since: 0.4
"""
import decimal
import pyamf
def convert_Decimal(x, encoder):
"""
Called when an instance of U{decimal.Decimal<http://
docs.python.org/li... | [
[
8,
0,
0.1765,
0.1471,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2941,
0.0294,
0,
0.66,
0.25,
349,
0,
1,
0,
0,
349,
0,
0
],
[
1,
0,
0.3529,
0.0294,
0,
0.66,
... | [
"\"\"\"\nAdapter for the U{decimal<http://docs.python.org/library/decimal.html>} module.\n\n@since: 0.4\n\"\"\"",
"import decimal",
"import pyamf",
"def convert_Decimal(x, encoder):\n \"\"\"\n Called when an instance of U{decimal.Decimal<http://\n docs.python.org/library/decimal.html#decimal-objects>... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
C{django.db.models} adapter module.
@see: U{Django Project<http://www.djangoproject.com>}
@since: 0.4.1
"""
from django.db.models.base import Model
from django.db.models import fields
from django.db.models.fields import related, files
import date... | [
[
8,
0,
0.0231,
0.0214,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0391,
0.0036,
0,
0.66,
0.0909,
465,
0,
1,
0,
0,
465,
0,
0
],
[
1,
0,
0.0427,
0.0036,
0,
0.66... | [
"\"\"\"\nC{django.db.models} adapter module.\n\n@see: U{Django Project<http://www.djangoproject.com>}\n@since: 0.4.1\n\"\"\"",
"from django.db.models.base import Model",
"from django.db.models import fields",
"from django.db.models.fields import related, files",
"import datetime",
"import pyamf",
"class... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Google App Engine adapter module.
Sets up basic type mapping and class mappings for using the Datastore API
in Google App Engine.
@see: U{Datastore API on Google App Engine<http://
code.google.com/appengine/docs/python/datastore>}
@since: 0.3.... | [
[
8,
0,
0.0257,
0.0302,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0453,
0.003,
0,
0.66,
0.0714,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.0483,
0.003,
0,
0.66,
... | [
"\"\"\"\nGoogle App Engine adapter module.\n\nSets up basic type mapping and class mappings for using the Datastore API\nin Google App Engine.\n\n@see: U{Datastore API on Google App Engine<http://\n code.google.com/appengine/docs/python/datastore>}",
"from google.appengine.ext import db",
"from google.appeng... |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Adapter for the stdlib C{sets} module.
@since: 0.4
"""
import sets
import pyamf
from pyamf.adapters import util
if hasattr(sets, 'ImmutableSet'):
pyamf.add_type(sets.ImmutableSet, util.to_tuple)
if hasattr(sets, 'Set'):
pyamf.add_type(... | [
[
8,
0,
0.3,
0.25,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.5,
0.05,
0,
0.66,
0.2,
842,
0,
1,
0,
0,
842,
0,
0
],
[
1,
0,
0.6,
0.05,
0,
0.66,
0.4,
642... | [
"\"\"\"\nAdapter for the stdlib C{sets} module.\n\n@since: 0.4\n\"\"\"",
"import sets",
"import pyamf",
"from pyamf.adapters import util",
"if hasattr(sets, 'ImmutableSet'):\n pyamf.add_type(sets.ImmutableSet, util.to_tuple)",
" pyamf.add_type(sets.ImmutableSet, util.to_tuple)",
"if hasattr(sets, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.