code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
#!/usr/bin/python # # Original Copyright (C) 2006 Google Inc. # Refactored in 2009 to work for Google Analytics by Sal Uryasev at Juice 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 # ...
[ [ 8, 0, 0.1031, 0.0045, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1121, 0.0045, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1211, 0.0045, 0, 0.66,...
[ "\"\"\"Contains extensions to Atom objects used with Google Analytics.\"\"\"", "__author__ = 'api.suryasev (Sal Uryasev)'", "import atom", "import gdata", "GAN_NAMESPACE = 'http://schemas.google.com/analytics/2009'", "class TableId(gdata.GDataEntry):\n \"\"\"tableId element.\"\"\"\n _tag = 'tableId'\n ...
"""TLS Lite + xmlrpclib.""" import xmlrpclib import httplib from gdata.tlslite.integration.HTTPTLSConnection import HTTPTLSConnection from gdata.tlslite.integration.ClientHelper import ClientHelper class XMLRPCTransport(xmlrpclib.Transport, ClientHelper): """Handles an HTTPS transaction to an XML-RPC server.""" ...
[ [ 8, 0, 0.0073, 0.0073, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0219, 0.0073, 0, 0.66, 0.2, 251, 0, 1, 0, 0, 251, 0, 0 ], [ 1, 0, 0.0292, 0.0073, 0, 0.66, ...
[ "\"\"\"TLS Lite + xmlrpclib.\"\"\"", "import xmlrpclib", "import httplib", "from gdata.tlslite.integration.HTTPTLSConnection import HTTPTLSConnection", "from gdata.tlslite.integration.ClientHelper import ClientHelper", "class XMLRPCTransport(xmlrpclib.Transport, ClientHelper):\n \"\"\"Handles an HTTPS ...
"""TLS Lite + imaplib.""" import socket from imaplib import IMAP4 from gdata.tlslite.TLSConnection import TLSConnection from gdata.tlslite.integration.ClientHelper import ClientHelper # IMAP TLS PORT IMAP4_TLS_PORT = 993 class IMAP4_TLS(IMAP4, ClientHelper): """This class extends L{imaplib.IMAP4} with TLS suppor...
[ [ 8, 0, 0.0076, 0.0076, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0227, 0.0076, 0, 0.66, 0.1667, 687, 0, 1, 0, 0, 687, 0, 0 ], [ 1, 0, 0.0303, 0.0076, 0, 0.66...
[ "\"\"\"TLS Lite + imaplib.\"\"\"", "import socket", "from imaplib import IMAP4", "from gdata.tlslite.TLSConnection import TLSConnection", "from gdata.tlslite.integration.ClientHelper import ClientHelper", "IMAP4_TLS_PORT = 993", "class IMAP4_TLS(IMAP4, ClientHelper):\n \"\"\"This class extends L{imap...
class IntegrationHelper: def __init__(self, username=None, password=None, sharedKey=None, certChain=None, privateKey=None, cryptoID=None, protocol=None, x509Fingerprint=None, x509TrustList=None, x509CommonName=None, setti...
[ [ 3, 0, 0.5192, 0.9808, 0, 0.66, 0, 128, 0, 1, 0, 0, 0, 0, 3 ], [ 2, 1, 0.5385, 0.9423, 1, 0.46, 0, 555, 0, 12, 0, 0, 0, 0, 3 ], [ 14, 2, 0.2308, 0.0192, 2, 0.53, ...
[ "class IntegrationHelper:\n\n def __init__(self,\n username=None, password=None, sharedKey=None,\n certChain=None, privateKey=None,\n cryptoID=None, protocol=None,\n x509Fingerprint=None,\n x509TrustList=None, x509CommonName=None,", " def __in...
"""TLS Lite + asyncore.""" import asyncore from gdata.tlslite.TLSConnection import TLSConnection from AsyncStateMachine import AsyncStateMachine class TLSAsyncDispatcherMixIn(AsyncStateMachine): """This class can be "mixed in" with an L{asyncore.dispatcher} to add TLS support. This class es...
[ [ 8, 0, 0.0072, 0.0072, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0288, 0.0072, 0, 0.66, 0.25, 563, 0, 1, 0, 0, 563, 0, 0 ], [ 1, 0, 0.036, 0.0072, 0, 0.66, ...
[ "\"\"\"TLS Lite + asyncore.\"\"\"", "import asyncore", "from gdata.tlslite.TLSConnection import TLSConnection", "from AsyncStateMachine import AsyncStateMachine", "class TLSAsyncDispatcherMixIn(AsyncStateMachine):\n \"\"\"This class can be \"mixed in\" with an\n L{asyncore.dispatcher} to add TLS suppo...
"""TLS Lite + SocketServer.""" from gdata.tlslite.TLSConnection import TLSConnection class TLSSocketServerMixIn: """ This class can be mixed in with any L{SocketServer.TCPServer} to add TLS support. To use this class, define a new class that inherits from it and some L{SocketServer.TCPServer} (wi...
[ [ 8, 0, 0.0169, 0.0169, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0508, 0.0169, 0, 0.66, 0.5, 891, 0, 1, 0, 0, 891, 0, 0 ], [ 3, 0, 0.5424, 0.9322, 0, 0.66, ...
[ "\"\"\"TLS Lite + SocketServer.\"\"\"", "from gdata.tlslite.TLSConnection import TLSConnection", "class TLSSocketServerMixIn:\n \"\"\"\n This class can be mixed in with any L{SocketServer.TCPServer} to\n add TLS support.\n\n To use this class, define a new class that inherits from it and\n some L...
"""TLS Lite + smtplib.""" from smtplib import SMTP from gdata.tlslite.TLSConnection import TLSConnection from gdata.tlslite.integration.ClientHelper import ClientHelper class SMTP_TLS(SMTP): """This class extends L{smtplib.SMTP} with TLS support.""" def starttls(self, username=None, password...
[ [ 8, 0, 0.0088, 0.0088, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0263, 0.0088, 0, 0.66, 0.25, 389, 0, 1, 0, 0, 389, 0, 0 ], [ 1, 0, 0.0351, 0.0088, 0, 0.66, ...
[ "\"\"\"TLS Lite + smtplib.\"\"\"", "from smtplib import SMTP", "from gdata.tlslite.TLSConnection import TLSConnection", "from gdata.tlslite.integration.ClientHelper import ClientHelper", "class SMTP_TLS(SMTP):\n \"\"\"This class extends L{smtplib.SMTP} with TLS support.\"\"\"\n\n def starttls(self,\n ...
"""TLS Lite + httplib.""" import socket import httplib from gdata.tlslite.TLSConnection import TLSConnection from gdata.tlslite.integration.ClientHelper import ClientHelper class HTTPBaseTLSConnection(httplib.HTTPConnection): """This abstract class provides a framework for adding TLS support to httplib.""" ...
[ [ 8, 0, 0.0059, 0.0059, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0178, 0.0059, 0, 0.66, 0.1667, 687, 0, 1, 0, 0, 687, 0, 0 ], [ 1, 0, 0.0237, 0.0059, 0, 0.66...
[ "\"\"\"TLS Lite + httplib.\"\"\"", "import socket", "import httplib", "from gdata.tlslite.TLSConnection import TLSConnection", "from gdata.tlslite.integration.ClientHelper import ClientHelper", "class HTTPBaseTLSConnection(httplib.HTTPConnection):\n \"\"\"This abstract class provides a framework for ad...
"""Classes for integrating TLS Lite with other packages.""" __all__ = ["AsyncStateMachine", "HTTPTLSConnection", "POP3_TLS", "IMAP4_TLS", "SMTP_TLS", "XMLRPCTransport", "TLSSocketServerMixIn", "TLSAsyncDispatcherMixIn", "TLSTwisted...
[ [ 8, 0, 0.0588, 0.0588, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.4118, 0.5294, 0, 0.66, 0.5, 272, 0, 0, 0, 0, 0, 5, 0 ], [ 7, 0, 0.8824, 0.2941, 0, 0.66, ...
[ "\"\"\"Classes for integrating TLS Lite with other packages.\"\"\"", "__all__ = [\"AsyncStateMachine\",\n \"HTTPTLSConnection\",\n \"POP3_TLS\",\n \"IMAP4_TLS\",\n \"SMTP_TLS\",\n \"XMLRPCTransport\",\n \"TLSSocketServerMixIn\",\n \"TLSAsyncDis...
""" A state machine for using TLS Lite with asynchronous I/O. """ class AsyncStateMachine: """ This is an abstract class that's used to integrate TLS Lite with asyncore and Twisted. This class signals wantsReadsEvent() and wantsWriteEvent(). When the underlying socket has become readabl...
[ [ 8, 0, 0.0085, 0.0128, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.5085, 0.9787, 0, 0.66, 1, 226, 0, 19, 0, 0, 0, 0, 40 ], [ 8, 1, 0.0532, 0.0596, 1, 0.15, ...
[ "\"\"\"\nA state machine for using TLS Lite with asynchronous I/O.\n\"\"\"", "class AsyncStateMachine:\n \"\"\"\n This is an abstract class that's used to integrate TLS Lite with\n asyncore and Twisted.\n\n This class signals wantsReadsEvent() and wantsWriteEvent(). When\n the underlying socket ha...
""" A helper class for using TLS Lite with stdlib clients (httplib, xmlrpclib, imaplib, poplib). """ from gdata.tlslite.Checker import Checker class ClientHelper: """This is a helper class used to integrate TLS Lite with various TLS clients (e.g. poplib, smtplib, httplib, etc.)""" def __init__...
[ [ 8, 0, 0.0153, 0.0245, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0368, 0.0061, 0, 0.66, 0.5, 797, 0, 1, 0, 0, 797, 0, 0 ], [ 3, 0, 0.5245, 0.9571, 0, 0.66, ...
[ "\"\"\"\nA helper class for using TLS Lite with stdlib clients\n(httplib, xmlrpclib, imaplib, poplib).\n\"\"\"", "from gdata.tlslite.Checker import Checker", "class ClientHelper:\n \"\"\"This is a helper class used to integrate TLS Lite with various\n TLS clients (e.g. poplib, smtplib, httplib, etc.)\"\"\...
"""Class for caching TLS sessions.""" import thread import time class SessionCache: """This class is used by the server to cache TLS sessions. Caching sessions allows the client to use TLS session resumption and avoid the expense of a full handshake. To use this class, simply pass a SessionCache ins...
[ [ 8, 0, 0.0097, 0.0097, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0291, 0.0097, 0, 0.66, 0.2, 260, 0, 1, 0, 0, 260, 0, 0 ], [ 1, 0, 0.0388, 0.0097, 0, 0.66, ...
[ "\"\"\"Class for caching TLS sessions.\"\"\"", "import thread", "import time", "class SessionCache:\n \"\"\"This class is used by the server to cache TLS sessions.\n\n Caching sessions allows the client to use TLS session resumption\n and avoid the expense of a full handshake. To use this class,\n ...
"""Class representing a TLS session.""" from utils.compat import * from mathtls import * from constants import * class Session: """ This class represents a TLS session. TLS distinguishes between connections and sessions. A new handshake creates both a connection and a session. Data is transmitt...
[ [ 8, 0, 0.0076, 0.0076, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0229, 0.0076, 0, 0.66, 0.25, 664, 0, 1, 0, 0, 664, 0, 0 ], [ 1, 0, 0.0305, 0.0076, 0, 0.66, ...
[ "\"\"\"Class representing a TLS session.\"\"\"", "from utils.compat import *", "from mathtls import *", "from constants import *", "class Session:\n \"\"\"\n This class represents a TLS session.\n\n TLS distinguishes between connections and sessions. A new\n handshake creates both a connection ...
"""Base class for SharedKeyDB and VerifierDB.""" import anydbm import thread class BaseDB: def __init__(self, filename, type): self.type = type self.filename = filename if self.filename: self.db = None else: self.db = {} self.lock = thre...
[ [ 8, 0, 0.0083, 0.0083, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.025, 0.0083, 0, 0.66, 0.3333, 434, 0, 1, 0, 0, 434, 0, 0 ], [ 1, 0, 0.0333, 0.0083, 0, 0.66,...
[ "\"\"\"Base class for SharedKeyDB and VerifierDB.\"\"\"", "import anydbm", "import thread", "class BaseDB:\n def __init__(self, filename, type):\n self.type = type\n self.filename = filename\n if self.filename:\n self.db = None\n else:\n self.db = {}", " ...
"""Class for setting handshake parameters.""" from constants import CertificateType from utils import cryptomath from utils import cipherfactory class HandshakeSettings: """This class encapsulates various parameters that can be used with a TLS handshake. @sort: minKeySize, maxKeySize, cipherNames, certifi...
[ [ 8, 0, 0.0063, 0.0063, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0189, 0.0063, 0, 0.66, 0.25, 208, 0, 1, 0, 0, 208, 0, 0 ], [ 1, 0, 0.0252, 0.0063, 0, 0.66, ...
[ "\"\"\"Class for setting handshake parameters.\"\"\"", "from constants import CertificateType", "from utils import cryptomath", "from utils import cipherfactory", "class HandshakeSettings:\n \"\"\"This class encapsulates various parameters that can be used with\n a TLS handshake.\n @sort: minKeySiz...
"""Class for storing SRP password verifiers.""" from utils.cryptomath import * from utils.compat import * import mathtls from BaseDB import BaseDB class VerifierDB(BaseDB): """This class represent an in-memory or on-disk database of SRP password verifiers. A VerifierDB can be passed to a server handshake...
[ [ 8, 0, 0.0111, 0.0111, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0333, 0.0111, 0, 0.66, 0.2, 712, 0, 1, 0, 0, 712, 0, 0 ], [ 1, 0, 0.0444, 0.0111, 0, 0.66, ...
[ "\"\"\"Class for storing SRP password verifiers.\"\"\"", "from utils.cryptomath import *", "from utils.compat import *", "import mathtls", "from BaseDB import BaseDB", "class VerifierDB(BaseDB):\n \"\"\"This class represent an in-memory or on-disk database of SRP\n password verifiers.\n\n A Verif...
"""Miscellaneous helper functions.""" from utils.compat import * from utils.cryptomath import * import hmac import md5 import sha #1024, 1536, 2048, 3072, 4096, 6144, and 8192 bit groups] goodGroupParameters = [(2,0xEEAF0AB9ADB38DD69C33F80AFA8FC5E86072618775FF3C0B9EA2314C9C256576D674DF7496EA81D3383B4813D692C6E0E0D5D...
[ [ 8, 0, 0.0059, 0.0059, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0176, 0.0059, 0, 0.66, 0.0625, 664, 0, 1, 0, 0, 664, 0, 0 ], [ 1, 0, 0.0235, 0.0059, 0, 0.66...
[ "\"\"\"Miscellaneous helper functions.\"\"\"", "from utils.compat import *", "from utils.cryptomath import *", "import hmac", "import md5", "import sha", "goodGroupParameters = [(2,0xEEAF0AB9ADB38DD69C33F80AFA8FC5E86072618775FF3C0B9EA2314C9C256576D674DF7496EA81D3383B4813D692C6E0E0D5D8E250B98BE48E495C1D6...
"""Class returned by TLSConnection.makefile().""" class FileObject: """This class provides a file object interface to a L{tlslite.TLSConnection.TLSConnection}. Call makefile() on a TLSConnection to create a FileObject instance. This class was copied, with minor modifications, from the _fileobject...
[ [ 8, 0, 0.0045, 0.0045, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.5068, 0.9909, 0, 0.66, 1, 429, 0, 13, 0, 0, 0, 0, 47 ], [ 8, 1, 0.0341, 0.0364, 1, 0.77, ...
[ "\"\"\"Class returned by TLSConnection.makefile().\"\"\"", "class FileObject:\n \"\"\"This class provides a file object interface to a\n L{tlslite.TLSConnection.TLSConnection}.\n\n Call makefile() on a TLSConnection to create a FileObject instance.\n\n This class was copied, with minor modifications, ...
"""Constants used in various places.""" class CertificateType: x509 = 0 openpgp = 1 cryptoID = 2 class HandshakeType: hello_request = 0 client_hello = 1 server_hello = 2 certificate = 11 server_key_exchange = 12 certificate_request = 13 server_hello_done = 14 certificate_ve...
[ [ 8, 0, 0.0044, 0.0044, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.02, 0.0178, 0, 0.66, 0.1429, 528, 0, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.0178, 0.0044, 1, 0.69, ...
[ "\"\"\"Constants used in various places.\"\"\"", "class CertificateType:\n x509 = 0\n openpgp = 1\n cryptoID = 2", " x509 = 0", " openpgp = 1", " cryptoID = 2", "class HandshakeType:\n hello_request = 0\n client_hello = 1\n server_hello = 2\n certificate = 11\n server_key_...
""" TLS Lite is a free python library that implements SSL v3, TLS v1, and TLS v1.1. TLS Lite supports non-traditional authentication methods such as SRP, shared keys, and cryptoIDs, in addition to X.509 certificates. TLS Lite is pure python, however it can access OpenSSL, cryptlib, pycrypto, and GMPY for faster crypt...
[ [ 8, 0, 0.2436, 0.4615, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.4872, 0.0256, 0, 0.66, 0.5, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.7692, 0.4872, 0, 0.66, ...
[ "\"\"\"\nTLS Lite is a free python library that implements SSL v3, TLS v1, and\nTLS v1.1. TLS Lite supports non-traditional authentication methods\nsuch as SRP, shared keys, and cryptoIDs, in addition to X.509\ncertificates. TLS Lite is pure python, however it can access OpenSSL,\ncryptlib, pycrypto, and GMPY for...
"""Import this module for easy access to TLS Lite objects. The TLS Lite API consists of classes, functions, and variables spread throughout this package. Instead of importing them individually with:: from tlslite.TLSConnection import TLSConnection from tlslite.HandshakeSettings import HandshakeSettings f...
[ [ 8, 0, 0.3, 0.5867, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.6133, 0.0133, 0, 0.66, 0.0476, 208, 0, 3, 0, 0, 208, 0, 0 ], [ 1, 0, 0.6267, 0.0133, 0, 0.66, ...
[ "\"\"\"Import this module for easy access to TLS Lite objects.\n\nThe TLS Lite API consists of classes, functions, and variables spread\nthroughout this package. Instead of importing them individually with::\n\n from tlslite.TLSConnection import TLSConnection\n from tlslite.HandshakeSettings import Handshake...
"""Class for post-handshake certificate checking.""" from utils.cryptomath import hashAndBase64 from X509 import X509 from X509CertChain import X509CertChain from errors import * class Checker: """This class is passed to a handshake function to check the other party's certificate chain. If a handshake f...
[ [ 8, 0, 0.0068, 0.0068, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0205, 0.0068, 0, 0.66, 0.2, 712, 0, 1, 0, 0, 712, 0, 0 ], [ 1, 0, 0.0274, 0.0068, 0, 0.66, ...
[ "\"\"\"Class for post-handshake certificate checking.\"\"\"", "from utils.cryptomath import hashAndBase64", "from X509 import X509", "from X509CertChain import X509CertChain", "from errors import *", "class Checker:\n \"\"\"This class is passed to a handshake function to check the other\n party's ce...
"""OpenSSL/M2Crypto 3DES implementation.""" from cryptomath import * from TripleDES import * if m2cryptoLoaded: def new(key, mode, IV): return OpenSSL_TripleDES(key, mode, IV) class OpenSSL_TripleDES(TripleDES): def __init__(self, key, mode, IV): TripleDES.__init__(self, key, mo...
[ [ 8, 0, 0.0227, 0.0227, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0682, 0.0227, 0, 0.66, 0.3333, 373, 0, 1, 0, 0, 373, 0, 0 ], [ 1, 0, 0.0909, 0.0227, 0, 0.66...
[ "\"\"\"OpenSSL/M2Crypto 3DES implementation.\"\"\"", "from cryptomath import *", "from TripleDES import *", "if m2cryptoLoaded:\n\n def new(key, mode, IV):\n return OpenSSL_TripleDES(key, mode, IV)\n\n class OpenSSL_TripleDES(TripleDES):\n\n def __init__(self, key, mode, IV):", " def ...
"""Cryptlib AES implementation.""" from cryptomath import * from AES import * if cryptlibpyLoaded: def new(key, mode, IV): return Cryptlib_AES(key, mode, IV) class Cryptlib_AES(AES): def __init__(self, key, mode, IV): AES.__init__(self, key, mode, IV, "cryptlib") sel...
[ [ 8, 0, 0.0294, 0.0294, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0882, 0.0294, 0, 0.66, 0.3333, 373, 0, 1, 0, 0, 373, 0, 0 ], [ 1, 0, 0.1176, 0.0294, 0, 0.66...
[ "\"\"\"Cryptlib AES implementation.\"\"\"", "from cryptomath import *", "from AES import *", "if cryptlibpyLoaded:\n\n def new(key, mode, IV):\n return Cryptlib_AES(key, mode, IV)\n\n class Cryptlib_AES(AES):\n\n def __init__(self, key, mode, IV):", " def new(key, mode, IV):\n ...
"""Factory functions for asymmetric cryptography. @sort: generateRSAKey, parseXMLKey, parsePEMKey, parseAsPublicKey, parseAsPrivateKey """ from compat import * from RSAKey import RSAKey from Python_RSAKey import Python_RSAKey import cryptomath if cryptomath.m2cryptoLoaded: from OpenSSL_RSAKey import OpenSSL_RSAK...
[ [ 8, 0, 0.0103, 0.0165, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0247, 0.0041, 0, 0.66, 0.0625, 238, 0, 1, 0, 0, 238, 0, 0 ], [ 1, 0, 0.0329, 0.0041, 0, 0.66...
[ "\"\"\"Factory functions for asymmetric cryptography.\n@sort: generateRSAKey, parseXMLKey, parsePEMKey, parseAsPublicKey,\nparseAsPrivateKey\n\"\"\"", "from compat import *", "from RSAKey import RSAKey", "from Python_RSAKey import Python_RSAKey", "import cryptomath", "if cryptomath.m2cryptoLoaded:\n fr...
"""Abstract class for RC4.""" from compat import * #For False class RC4: def __init__(self, keyBytes, implementation): if len(keyBytes) < 16 or len(keyBytes) > 256: raise ValueError() self.isBlockCipher = False self.name = "rc4" self.implementation = implementation ...
[ [ 8, 0, 0.0588, 0.0588, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1765, 0.0588, 0, 0.66, 0.5, 238, 0, 1, 0, 0, 238, 0, 0 ], [ 3, 0, 0.6471, 0.7647, 0, 0.66, ...
[ "\"\"\"Abstract class for RC4.\"\"\"", "from compat import * #For False", "class RC4:\n def __init__(self, keyBytes, implementation):\n if len(keyBytes) < 16 or len(keyBytes) > 256:\n raise ValueError()\n self.isBlockCipher = False\n self.name = \"rc4\"\n self.implement...
"""Abstract class for RSA.""" from cryptomath import * class RSAKey: """This is an abstract base class for RSA keys. Particular implementations of RSA keys, such as L{OpenSSL_RSAKey.OpenSSL_RSAKey}, L{Python_RSAKey.Python_RSAKey}, and L{PyCrypto_RSAKey.PyCrypto_RSAKey}, inherit from this. ...
[ [ 8, 0, 0.0038, 0.0038, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0114, 0.0038, 0, 0.66, 0.5, 373, 0, 1, 0, 0, 373, 0, 0 ], [ 3, 0, 0.5114, 0.9811, 0, 0.66, ...
[ "\"\"\"Abstract class for RSA.\"\"\"", "from cryptomath import *", "class RSAKey:\n \"\"\"This is an abstract base class for RSA keys.\n\n Particular implementations of RSA keys, such as\n L{OpenSSL_RSAKey.OpenSSL_RSAKey},\n L{Python_RSAKey.Python_RSAKey}, and\n L{PyCrypto_RSAKey.PyCrypto_RSAKey}...
"""Classes for reading/writing binary data (such as TLS records).""" from compat import * class Writer: def __init__(self, length=0): #If length is zero, then this is just a "trial run" to determine length self.index = 0 self.bytes = createByteArrayZeros(length) def add(self, x, lengt...
[ [ 8, 0, 0.0106, 0.0106, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0319, 0.0106, 0, 0.66, 0.3333, 238, 0, 1, 0, 0, 238, 0, 0 ], [ 3, 0, 0.2021, 0.3085, 0, 0.66...
[ "\"\"\"Classes for reading/writing binary data (such as TLS records).\"\"\"", "from compat import *", "class Writer:\n def __init__(self, length=0):\n #If length is zero, then this is just a \"trial run\" to determine length\n self.index = 0\n self.bytes = createByteArrayZeros(length)\n\...
"""PyCrypto RC4 implementation.""" from cryptomath import * from RC4 import * if pycryptoLoaded: import Crypto.Cipher.ARC4 def new(key): return PyCrypto_RC4(key) class PyCrypto_RC4(RC4): def __init__(self, key): RC4.__init__(self, key, "pycrypto") self.context = ...
[ [ 8, 0, 0.0455, 0.0455, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1364, 0.0455, 0, 0.66, 0.3333, 373, 0, 1, 0, 0, 373, 0, 0 ], [ 1, 0, 0.1818, 0.0455, 0, 0.66...
[ "\"\"\"PyCrypto RC4 implementation.\"\"\"", "from cryptomath import *", "from RC4 import *", "if pycryptoLoaded:\n import Crypto.Cipher.ARC4\n\n def new(key):\n return PyCrypto_RC4(key)\n\n class PyCrypto_RC4(RC4):", " import Crypto.Cipher.ARC4", " def new(key):\n return PyCry...
"""Factory functions for symmetric cryptography.""" import os import Python_AES import Python_RC4 import cryptomath tripleDESPresent = False if cryptomath.m2cryptoLoaded: import OpenSSL_AES import OpenSSL_RC4 import OpenSSL_TripleDES tripleDESPresent = True if cryptomath.cryptlibpyLoaded: impo...
[ [ 8, 0, 0.009, 0.009, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.027, 0.009, 0, 0.66, 0.0909, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.045, 0.009, 0, 0.66, ...
[ "\"\"\"Factory functions for symmetric cryptography.\"\"\"", "import os", "import Python_AES", "import Python_RC4", "import cryptomath", "tripleDESPresent = False", "if cryptomath.m2cryptoLoaded:\n import OpenSSL_AES\n import OpenSSL_RC4\n import OpenSSL_TripleDES\n tripleDESPresent = True",...
"""Class for parsing ASN.1""" from compat import * from codec import * #Takes a byte array which has a DER TLV field at its head class ASN1Parser: def __init__(self, bytes): p = Parser(bytes) p.get(1) #skip Type #Get Length self.length = self._getASN1Length(p) #Get Value ...
[ [ 8, 0, 0.0294, 0.0294, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0588, 0.0294, 0, 0.66, 0.3333, 238, 0, 1, 0, 0, 238, 0, 0 ], [ 1, 0, 0.0882, 0.0294, 0, 0.66...
[ "\"\"\"Class for parsing ASN.1\"\"\"", "from compat import *", "from codec import *", "class ASN1Parser:\n def __init__(self, bytes):\n p = Parser(bytes)\n p.get(1) #skip Type\n\n #Get Length\n self.length = self._getASN1Length(p)", " def __init__(self, bytes):\n p =...
"""Abstract class for 3DES.""" from compat import * #For True class TripleDES: def __init__(self, key, mode, IV, implementation): if len(key) != 24: raise ValueError() if mode != 2: raise ValueError() if len(IV) != 8: raise ValueError() self.isBl...
[ [ 8, 0, 0.0385, 0.0385, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1154, 0.0385, 0, 0.66, 0.5, 238, 0, 1, 0, 0, 238, 0, 0 ], [ 3, 0, 0.5962, 0.8462, 0, 0.66, ...
[ "\"\"\"Abstract class for 3DES.\"\"\"", "from compat import * #For True", "class TripleDES:\n def __init__(self, key, mode, IV, implementation):\n if len(key) != 24:\n raise ValueError()\n if mode != 2:\n raise ValueError()\n if len(IV) != 8:\n raise Valu...
"""Abstract class for AES.""" class AES: def __init__(self, key, mode, IV, implementation): if len(key) not in (16, 24, 32): raise AssertionError() if mode != 2: raise AssertionError() if len(IV) != 16: raise AssertionError() self.isBlockCipher = ...
[ [ 8, 0, 0.0323, 0.0323, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.5484, 0.9355, 0, 0.66, 1, 859, 0, 3, 0, 0, 0, 0, 11 ], [ 2, 1, 0.4032, 0.5806, 1, 0.57, ...
[ "\"\"\"Abstract class for AES.\"\"\"", "class AES:\n def __init__(self, key, mode, IV, implementation):\n if len(key) not in (16, 24, 32):\n raise AssertionError()\n if mode != 2:\n raise AssertionError()\n if len(IV) != 16:\n raise AssertionError()", " ...
"""Pure-Python RC4 implementation.""" from RC4 import RC4 from cryptomath import * def new(key): return Python_RC4(key) class Python_RC4(RC4): def __init__(self, key): RC4.__init__(self, key, "python") keyBytes = stringToBytes(key) S = [i for i in range(256)] j = 0 for...
[ [ 8, 0, 0.0256, 0.0256, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0769, 0.0256, 0, 0.66, 0.25, 653, 0, 1, 0, 0, 653, 0, 0 ], [ 1, 0, 0.1026, 0.0256, 0, 0.66, ...
[ "\"\"\"Pure-Python RC4 implementation.\"\"\"", "from RC4 import RC4", "from cryptomath import *", "def new(key):\n return Python_RC4(key)", " return Python_RC4(key)", "class Python_RC4(RC4):\n def __init__(self, key):\n RC4.__init__(self, key, \"python\")\n keyBytes = stringToBytes(...
"""PyCrypto RSA implementation.""" from cryptomath import * from RSAKey import * from Python_RSAKey import Python_RSAKey if pycryptoLoaded: from Crypto.PublicKey import RSA class PyCrypto_RSAKey(RSAKey): def __init__(self, n=0, e=0, d=0, p=0, q=0, dP=0, dQ=0, qInv=0): if not d: ...
[ [ 8, 0, 0.0164, 0.0164, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0492, 0.0164, 0, 0.66, 0.25, 373, 0, 1, 0, 0, 373, 0, 0 ], [ 1, 0, 0.082, 0.0164, 0, 0.66, ...
[ "\"\"\"PyCrypto RSA implementation.\"\"\"", "from cryptomath import *", "from RSAKey import *", "from Python_RSAKey import Python_RSAKey", "if pycryptoLoaded:\n\n from Crypto.PublicKey import RSA\n\n class PyCrypto_RSAKey(RSAKey):\n def __init__(self, n=0, e=0, d=0, p=0, q=0, dP=0, dQ=0, qInv=0...
""" A pure python (slow) implementation of rijndael with a decent interface To include - from rijndael import rijndael To do a key setup - r = rijndael(key, block_size = 16) key must be a string of length 16, 24, or 32 blocksize must be 16, 24, or 32. Default is 16 To use - ciphertext = r.encrypt(plaintext) plai...
[ [ 8, 0, 0.0281, 0.0536, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.074, 0.0026, 0, 0.66, 0.0208, 739, 0, 1, 0, 0, 739, 0, 0 ], [ 1, 0, 0.0765, 0.0026, 0, 0.66,...
[ "\"\"\"\nA pure python (slow) implementation of rijndael with a decent interface\n\nTo include -\n\nfrom rijndael import rijndael\n\nTo do a key setup -", "import copy", "import string", "import os", "if os.name != \"java\":\n import exceptions\n if hasattr(exceptions, \"FutureWarning\"):\n imp...
"""OpenSSL/M2Crypto RSA implementation.""" from cryptomath import * from RSAKey import * from Python_RSAKey import Python_RSAKey #copied from M2Crypto.util.py, so when we load the local copy of m2 #we can still use it def password_callback(v, prompt1='Enter private key passphrase:', prompt...
[ [ 8, 0, 0.0068, 0.0068, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0203, 0.0068, 0, 0.66, 0.2, 373, 0, 1, 0, 0, 373, 0, 0 ], [ 1, 0, 0.0338, 0.0068, 0, 0.66, ...
[ "\"\"\"OpenSSL/M2Crypto RSA implementation.\"\"\"", "from cryptomath import *", "from RSAKey import *", "from Python_RSAKey import Python_RSAKey", "def password_callback(v, prompt1='Enter private key passphrase:',\n prompt2='Verify passphrase:'):\n from getpass import getpass\n ...
"""OpenSSL/M2Crypto RC4 implementation.""" from cryptomath import * from RC4 import RC4 if m2cryptoLoaded: def new(key): return OpenSSL_RC4(key) class OpenSSL_RC4(RC4): def __init__(self, key): RC4.__init__(self, key, "openssl") self.rc4 = m2.rc4_new() m2...
[ [ 8, 0, 0.04, 0.04, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.12, 0.04, 0, 0.66, 0.3333, 373, 0, 1, 0, 0, 373, 0, 0 ], [ 1, 0, 0.16, 0.04, 0, 0.66, 0.6667...
[ "\"\"\"OpenSSL/M2Crypto RC4 implementation.\"\"\"", "from cryptomath import *", "from RC4 import RC4", "if m2cryptoLoaded:\n\n def new(key):\n return OpenSSL_RC4(key)\n\n class OpenSSL_RC4(RC4):\n\n def __init__(self, key):", " def new(key):\n return OpenSSL_RC4(key)", " ...
"""PyCrypto AES implementation.""" from cryptomath import * from AES import * if pycryptoLoaded: import Crypto.Cipher.AES def new(key, mode, IV): return PyCrypto_AES(key, mode, IV) class PyCrypto_AES(AES): def __init__(self, key, mode, IV): AES.__init__(self, key, mode, IV, ...
[ [ 8, 0, 0.0455, 0.0455, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1364, 0.0455, 0, 0.66, 0.3333, 373, 0, 1, 0, 0, 373, 0, 0 ], [ 1, 0, 0.1818, 0.0455, 0, 0.66...
[ "\"\"\"PyCrypto AES implementation.\"\"\"", "from cryptomath import *", "from AES import *", "if pycryptoLoaded:\n import Crypto.Cipher.AES\n\n def new(key, mode, IV):\n return PyCrypto_AES(key, mode, IV)\n\n class PyCrypto_AES(AES):", " import Crypto.Cipher.AES", " def new(key, mode...
"""Cryptlib 3DES implementation.""" from cryptomath import * from TripleDES import * if cryptlibpyLoaded: def new(key, mode, IV): return Cryptlib_TripleDES(key, mode, IV) class Cryptlib_TripleDES(TripleDES): def __init__(self, key, mode, IV): TripleDES.__init__(self, key, mode,...
[ [ 8, 0, 0.0286, 0.0286, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0857, 0.0286, 0, 0.66, 0.3333, 373, 0, 1, 0, 0, 373, 0, 0 ], [ 1, 0, 0.1429, 0.0286, 0, 0.66...
[ "\"\"\"Cryptlib 3DES implementation.\"\"\"", "from cryptomath import *", "from TripleDES import *", "if cryptlibpyLoaded:\n\n def new(key, mode, IV):\n return Cryptlib_TripleDES(key, mode, IV)\n\n class Cryptlib_TripleDES(TripleDES):\n\n def __init__(self, key, mode, IV):", " def new(...
"""Cryptlib RC4 implementation.""" from cryptomath import * from RC4 import RC4 if cryptlibpyLoaded: def new(key): return Cryptlib_RC4(key) class Cryptlib_RC4(RC4): def __init__(self, key): RC4.__init__(self, key, "cryptlib") self.context = cryptlib_py.cryptCreateCon...
[ [ 8, 0, 0.0357, 0.0357, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1071, 0.0357, 0, 0.66, 0.3333, 373, 0, 1, 0, 0, 373, 0, 0 ], [ 1, 0, 0.1429, 0.0357, 0, 0.66...
[ "\"\"\"Cryptlib RC4 implementation.\"\"\"", "from cryptomath import *", "from RC4 import RC4", "if cryptlibpyLoaded:\n\n def new(key):\n return Cryptlib_RC4(key)\n\n class Cryptlib_RC4(RC4):\n\n def __init__(self, key):", " def new(key):\n return Cryptlib_RC4(key)", " ...
"""Toolkit for crypto and other stuff.""" __all__ = ["AES", "ASN1Parser", "cipherfactory", "codec", "Cryptlib_AES", "Cryptlib_RC4", "Cryptlib_TripleDES", "cryptomath: cryptomath module", "dateFuncs", "hmac", "...
[ [ 8, 0, 0.0323, 0.0323, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.5484, 0.9355, 0, 0.66, 1, 272, 0, 0, 0, 0, 0, 5, 0 ] ]
[ "\"\"\"Toolkit for crypto and other stuff.\"\"\"", "__all__ = [\"AES\",\n \"ASN1Parser\",\n \"cipherfactory\",\n \"codec\",\n \"Cryptlib_AES\",\n \"Cryptlib_RC4\",\n \"Cryptlib_TripleDES\",\n \"cryptomath: cryptomath module\"," ]
"""PyCrypto 3DES implementation.""" from cryptomath import * from TripleDES import * if pycryptoLoaded: import Crypto.Cipher.DES3 def new(key, mode, IV): return PyCrypto_TripleDES(key, mode, IV) class PyCrypto_TripleDES(TripleDES): def __init__(self, key, mode, IV): TripleDE...
[ [ 8, 0, 0.0455, 0.0455, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1364, 0.0455, 0, 0.66, 0.3333, 373, 0, 1, 0, 0, 373, 0, 0 ], [ 1, 0, 0.1818, 0.0455, 0, 0.66...
[ "\"\"\"PyCrypto 3DES implementation.\"\"\"", "from cryptomath import *", "from TripleDES import *", "if pycryptoLoaded:\n import Crypto.Cipher.DES3\n\n def new(key, mode, IV):\n return PyCrypto_TripleDES(key, mode, IV)\n\n class PyCrypto_TripleDES(TripleDES):", " import Crypto.Cipher.DES3...
"""OpenSSL/M2Crypto AES implementation.""" from cryptomath import * from AES import * if m2cryptoLoaded: def new(key, mode, IV): return OpenSSL_AES(key, mode, IV) class OpenSSL_AES(AES): def __init__(self, key, mode, IV): AES.__init__(self, key, mode, IV, "openssl") ...
[ [ 8, 0, 0.0204, 0.0204, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0612, 0.0204, 0, 0.66, 0.3333, 373, 0, 1, 0, 0, 373, 0, 0 ], [ 1, 0, 0.0816, 0.0204, 0, 0.66...
[ "\"\"\"OpenSSL/M2Crypto AES implementation.\"\"\"", "from cryptomath import *", "from AES import *", "if m2cryptoLoaded:\n\n def new(key, mode, IV):\n return OpenSSL_AES(key, mode, IV)\n\n class OpenSSL_AES(AES):\n\n def __init__(self, key, mode, IV):", " def new(key, mode, IV):\n ...
"""Pure-Python AES implementation.""" from cryptomath import * from AES import * from rijndael import rijndael def new(key, mode, IV): return Python_AES(key, mode, IV) class Python_AES(AES): def __init__(self, key, mode, IV): AES.__init__(self, key, mode, IV, "python") self.rijndael = rijnda...
[ [ 8, 0, 0.0147, 0.0147, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0441, 0.0147, 0, 0.66, 0.2, 373, 0, 1, 0, 0, 373, 0, 0 ], [ 1, 0, 0.0735, 0.0147, 0, 0.66, ...
[ "\"\"\"Pure-Python AES implementation.\"\"\"", "from cryptomath import *", "from AES import *", "from rijndael import rijndael", "def new(key, mode, IV):\n return Python_AES(key, mode, IV)", " return Python_AES(key, mode, IV)", "class Python_AES(AES):\n def __init__(self, key, mode, IV):\n ...
import os #Functions for manipulating datetime objects #CCYY-MM-DDThh:mm:ssZ def parseDateClass(s): year, month, day = s.split("-") day, tail = day[:2], day[2:] hour, minute, second = tail[1:].split(":") second = second[:2] year, month, day = int(year), int(month), int(day) hour, minute, secon...
[ [ 1, 0, 0.0267, 0.0133, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 2, 0, 0.1267, 0.1067, 0, 0.66, 0.5, 819, 0, 1, 1, 0, 0, 0, 9 ], [ 14, 1, 0.0933, 0.0133, 1, 0.12...
[ "import os", "def parseDateClass(s):\n year, month, day = s.split(\"-\")\n day, tail = day[:2], day[2:]\n hour, minute, second = tail[1:].split(\":\")\n second = second[:2]\n year, month, day = int(year), int(month), int(day)\n hour, minute, second = int(hour), int(minute), int(second)\n retu...
"""Miscellaneous functions to mask Python version differences.""" import sys import os if sys.version_info < (2,2): raise AssertionError("Python 2.2 or later required") if sys.version_info < (2,3): def enumerate(collection): return zip(range(len(collection)), collection) class Set: def ...
[ [ 8, 0, 0.0072, 0.0072, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0216, 0.0072, 0, 0.66, 0.2, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0288, 0.0072, 0, 0.66, ...
[ "\"\"\"Miscellaneous functions to mask Python version differences.\"\"\"", "import sys", "import os", "if sys.version_info < (2,2):\n raise AssertionError(\"Python 2.2 or later required\")", "if sys.version_info < (2,3):\n\n def enumerate(collection):\n return zip(range(len(collection)), collec...
"""HMAC (Keyed-Hashing for Message Authentication) Python module. Implements the HMAC algorithm as described by RFC 2104. (This file is modified from the standard library version to do faster copying) """ def _strxor(s1, s2): """Utility method. XOR the two strings s1 and s2 (must have same length). """ r...
[ [ 8, 0, 0.0385, 0.0673, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 2, 0, 0.101, 0.0385, 0, 0.66, 0.25, 745, 0, 2, 1, 0, 0, 0, 5 ], [ 8, 1, 0.101, 0.0192, 1, 0.22, ...
[ "\"\"\"HMAC (Keyed-Hashing for Message Authentication) Python module.\n\nImplements the HMAC algorithm as described by RFC 2104.\n\n(This file is modified from the standard library version to do faster\ncopying)\n\"\"\"", "def _strxor(s1, s2):\n \"\"\"Utility method. XOR the two strings s1 and s2 (must have sa...
"""Pure-Python RSA implementation.""" from cryptomath import * import xmltools from ASN1Parser import ASN1Parser from RSAKey import * class Python_RSAKey(RSAKey): def __init__(self, n=0, e=0, d=0, p=0, q=0, dP=0, dQ=0, qInv=0): if (n and not e) or (e and not n): raise AssertionError() ...
[ [ 8, 0, 0.0048, 0.0048, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0144, 0.0048, 0, 0.66, 0.2, 373, 0, 1, 0, 0, 373, 0, 0 ], [ 1, 0, 0.0192, 0.0048, 0, 0.66, ...
[ "\"\"\"Pure-Python RSA implementation.\"\"\"", "from cryptomath import *", "import xmltools", "from ASN1Parser import ASN1Parser", "from RSAKey import *", "class Python_RSAKey(RSAKey):\n def __init__(self, n=0, e=0, d=0, p=0, q=0, dP=0, dQ=0, qInv=0):\n if (n and not e) or (e and not n):\n ...
"""Exception classes. @sort: TLSError, TLSAbruptCloseError, TLSAlert, TLSLocalAlert, TLSRemoteAlert, TLSAuthenticationError, TLSNoAuthenticationError, TLSAuthenticationTypeError, TLSFingerprintError, TLSAuthorizationError, TLSValidationError, TLSFaultError """ from constants import AlertDescription, AlertLevel class ...
[ [ 8, 0, 0.0201, 0.0336, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.047, 0.0067, 0, 0.66, 0.0769, 208, 0, 2, 0, 0, 208, 0, 0 ], [ 3, 0, 0.0671, 0.0201, 0, 0.66,...
[ "\"\"\"Exception classes.\n@sort: TLSError, TLSAbruptCloseError, TLSAlert, TLSLocalAlert, TLSRemoteAlert,\nTLSAuthenticationError, TLSNoAuthenticationError, TLSAuthenticationTypeError,\nTLSFingerprintError, TLSAuthorizationError, TLSValidationError, TLSFaultError\n\"\"\"", "from constants import AlertDescription,...
"""Class for storing shared keys.""" from utils.cryptomath import * from utils.compat import * from mathtls import * from Session import Session from BaseDB import BaseDB class SharedKeyDB(BaseDB): """This class represent an in-memory or on-disk database of shared keys. A SharedKeyDB can be passed to a s...
[ [ 8, 0, 0.0172, 0.0172, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0517, 0.0172, 0, 0.66, 0.1667, 712, 0, 1, 0, 0, 712, 0, 0 ], [ 1, 0, 0.069, 0.0172, 0, 0.66,...
[ "\"\"\"Class for storing shared keys.\"\"\"", "from utils.cryptomath import *", "from utils.compat import *", "from mathtls import *", "from Session import Session", "from BaseDB import BaseDB", "class SharedKeyDB(BaseDB):\n \"\"\"This class represent an in-memory or on-disk database of shared\n k...
#!/usr/bin/python # # Copyright (C) 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 ...
[ [ 8, 0, 0.0732, 0.0374, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0997, 0.0031, 0, 0.66, 0.0588, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.109, 0.0031, 0, 0.66, ...
[ "\"\"\"Provides HTTP functions for gdata.service to use on Google App Engine\n\nAppEngineHttpClient: Provides an HTTP request method which uses App Engine's\n urlfetch API. Set the http_client member of a GDataService object to an\n instance of an AppEngineHttpClient to allow the gdata library to run on\n Goo...
#!/usr/bin/python # # Copyright (C) 2009 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 ...
[ [ 8, 0, 0.2079, 0.0693, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2574, 0.0099, 0, 0.66, 0.1429, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2871, 0.0099, 0, 0.66,...
[ "\"\"\"Provides functions to persist serialized auth tokens in the datastore.\n\nThe get_token and set_token functions should be used in conjunction with\ngdata.gauth's token_from_blob and token_to_blob to allow auth token objects\nto be reused across requests. It is up to your own code to ensure that the\ntoken ke...
#!/usr/bin/python # # Copyright (C) 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 ...
[ [ 8, 0, 0.9, 0.25, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ] ]
[ "\"\"\"This package's modules adapt the gdata library to run in other environments\n\nThe first example is the appengine module which contains functions and\nclasses which modify a GDataService object to run on Google App Engine.\n\"\"\"" ]
#!/usr/bin/env python # # Copyright (C) 2009 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 ...
[ [ 8, 0, 0.0338, 0.0084, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0422, 0.0017, 0, 0.66, 0.0476, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0473, 0.0017, 0, 0.66,...
[ "\"\"\"Contains a client to communicate with the Google Spreadsheets servers.\n\nFor documentation on the Spreadsheets API, see:\nhttp://code.google.com/apis/spreadsheets/\n\"\"\"", "__author__ = 'j.s@google.com (Jeff Scudder)'", "import gdata.client", "import gdata.gauth", "import gdata.spreadsheets.data",...
#!/usr/bin/env python # # Copyright (C) 2009 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 ...
[ [ 8, 0, 0.0601, 0.0131, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0731, 0.0026, 0, 0.66, 0.027, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0809, 0.0026, 0, 0.66, ...
[ "\"\"\"Provides classes and constants for the XML in the Google Spreadsheets API.\n\nDocumentation for the raw XML which these classes represent can be found here:\nhttp://code.google.com/apis/spreadsheets/docs/3.0/reference.html#Elements\n\"\"\"", "__author__ = 'j.s@google.com (Jeff Scudder)'", "import atom.co...
#!/usr/bin/env python # # Copyright (C) 2009 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...
[ [ 14, 0, 0.4884, 0.0233, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.5581, 0.0233, 0, 0.66, 0.3333, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 3, 0, 0.7442, 0.2558, 0, 0...
[ "__author__ = 'j.s@google.com (Jeff Scudder)'", "import base64", "class BasicAuth(object):\n \"\"\"Sets the Authorization header as defined in RFC1945\"\"\"\n\n def __init__(self, user_id, password):\n self.basic_cookie = base64.encodestring(\n '%s:%s' % (user_id, password)).strip()\n\n def modify_...
#!/usr/bin/python # # Copyright (C) 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 ...
[ [ 8, 0, 0.0693, 0.0416, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.097, 0.0028, 0, 0.66, 0.05, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1053, 0.0028, 0, 0.66, ...
[ "\"\"\"HttpClients in this module use httplib to make HTTP requests.\n\nThis module make HTTP requests based on httplib, but there are environments\nin which an httplib based approach will not work (if running in Google App\nEngine for example). In those cases, higher level classes (like AtomService\nand GDataServi...
#!/usr/bin/python # # Copyright (C) 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 ...
[ [ 8, 0, 0.1506, 0.0897, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2115, 0.0064, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2308, 0.0064, 0, 0.66,...
[ "\"\"\"This module provides a common interface for all HTTP requests.\n\n HttpResponse: Represents the server's response to an HTTP request. Provides\n an interface identical to httplib.HTTPResponse which is the response\n expected from higher level classes which use HttpClient.request.\n\n GenericHttpC...
#!/usr/bin/python # # Copyright (C) 2006, 2007, 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 app...
[ [ 8, 0, 0.0311, 0.0149, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0405, 0.0014, 0, 0.66, 0.04, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0446, 0.0014, 0, 0.66, ...
[ "\"\"\"AtomService provides CRUD ops. in line with the Atom Publishing Protocol.\n\n AtomService: Encapsulates the ability to perform insert, update and delete\n operations with the Atom Publishing Protocol on which GData is\n based. An instance can perform query, insertion, deletion, a...
#!/usr/bin/python # # Copyright (C) 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 ...
[ [ 14, 0, 0.1295, 0.0072, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1511, 0.0072, 0, 0.66, 0.1667, 857, 0, 1, 0, 0, 857, 0, 0 ], [ 1, 0, 0.1583, 0.0072, 0, 0...
[ "__author__ = 'api.jscudder (Jeff Scudder)'", "import urlparse", "import urllib", "DEFAULT_PROTOCOL = 'http'", "DEFAULT_PORT = 80", "def parse_url(url_string):\n \"\"\"Creates a Url object which corresponds to the URL string.\n \n This method can accept partial URLs, but it will leave missing\n member...
#!/usr/bin/python # # Copyright (C) 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 ...
[ [ 8, 0, 0.1795, 0.0769, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2393, 0.0085, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.265, 0.0085, 0, 0.66, ...
[ "\"\"\"This module provides a TokenStore class which is designed to manage\nauth tokens required for different services.\n\nEach token is valid for a set of scopes which is the start of a URL. An HTTP\nclient will use a token store to find a valid Authorization header to send\nin requests to the specified URL. If t...
#!/usr/bin/env python # # Copyright (C) 2009 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...
[ [ 14, 0, 0.0366, 0.0017, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0416, 0.0017, 0, 0.66, 0.0435, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0433, 0.0017, 0, 0...
[ "__author__ = 'j.s@google.com (Jeff Scudder)'", "import os", "import StringIO", "import urlparse", "import urllib", "import httplib", "ssl = None", "try:\n import ssl\nexcept ImportError:\n pass", " import ssl", "class Error(Exception):\n pass", "class UnknownSize(Error):\n pass", "class ...
#!/usr/bin/env python # # Copyright (C) 2009 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 ...
[ [ 8, 0, 0.0848, 0.0134, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0982, 0.0045, 0, 0.66, 0.1667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1116, 0.0045, 0, 0.66,...
[ "\"\"\"AtomPubClient provides CRUD ops. in line with the Atom Publishing Protocol.\n\n\"\"\"", "__author__ = 'j.s@google.com (Jeff Scudder)'", "import atom.http_core", "class Error(Exception):\n pass", "class MissingHost(Error):\n pass", "class AtomPubClient(object):\n host = None\n auth_token = None\...
#!/usr/bin/env python # # Copyright (C) 2009 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 ...
[ [ 14, 0, 0.065, 0.0031, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0743, 0.0031, 0, 0.66, 0.0714, 609, 0, 1, 0, 0, 609, 0, 0 ], [ 1, 0, 0.0774, 0.0031, 0, 0....
[ "__author__ = 'j.s@google.com (Jeff Scudder)'", "import StringIO", "import pickle", "import os.path", "import tempfile", "import atom.http_core", "class Error(Exception):\n pass", "class NoRecordingFound(Error):\n pass", "class MockHttpClient(object):\n debug = None\n real_client = None\n last_...
#!/usr/bin/python # # Copyright (C) 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 ...
[ [ 8, 0, 0.0823, 0.0206, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0988, 0.0041, 0, 0.66, 0.0833, 812, 0, 1, 0, 0, 812, 0, 0 ], [ 1, 0, 0.1029, 0.0041, 0, 0.66...
[ "\"\"\"MockService provides CRUD ops. for mocking calls to AtomPub services.\n\n MockService: Exposes the publicly used methods of AtomService to provide\n a mock interface which can be used in unit tests.\n\"\"\"", "import atom.service", "import pickle", "__author__ = 'api.jscudder (Jeffrey Scudder)'",...
#!/usr/bin/env python # # Copyright (C) 2009 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 ...
[ [ 14, 0, 0.0621, 0.003, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.071, 0.003, 0, 0.66, 0.0294, 936, 0, 1, 0, 0, 936, 0, 0 ], [ 14, 0, 0.0799, 0.003, 0, 0.66...
[ "__author__ = 'j.s@google.com (Jeff Scudder)'", "import atom.core", "XML_TEMPLATE = '{http://www.w3.org/XML/1998/namespace}%s'", "ATOM_TEMPLATE = '{http://www.w3.org/2005/Atom}%s'", "APP_TEMPLATE_V1 = '{http://purl.org/atom/app#}%s'", "APP_TEMPLATE_V2 = '{http://www.w3.org/2007/app}%s'", "class Name(ato...
#!/usr/bin/python # # Copyright (C) 2006 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 ...
[ [ 8, 0, 0.0202, 0.0168, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0303, 0.0007, 0, 0.66, 0.0141, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.0347, 0.0067, 0, 0.66,...
[ "\"\"\"Contains classes representing Atom elements.\n\n Module objective: provide data classes for Atom constructs. These classes hide\n the XML-ness of Atom and provide a set of native Python classes to interact\n with.\n\n Conversions to and from XML should only be necessary when the Atom classes\n \"touch t...
#!/usr/bin/env python # # Copyright (C) 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...
[ [ 14, 0, 0.0382, 0.0018, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0436, 0.0018, 0, 0.66, 0.0769, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 7, 0, 0.0536, 0.0182, 0, 0...
[ "__author__ = 'j.s@google.com (Jeff Scudder)'", "import inspect", "try:\n from xml.etree import cElementTree as ElementTree\nexcept ImportError:\n try:\n import cElementTree as ElementTree\n except ImportError:\n try:\n from xml.etree import ElementTree", " from xml.etree import cElementTree as...
#!/usr/bin/python # # Copyright (C) 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 ...
[ [ 14, 0, 0.1364, 0.0076, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1591, 0.0076, 0, 0.66, 0.1429, 784, 0, 1, 0, 0, 784, 0, 0 ], [ 1, 0, 0.1667, 0.0076, 0, 0...
[ "__author__ = 'api.jscudder (Jeff Scudder)'", "import atom.http_interface", "import atom.url", "class Error(Exception):\n pass", "class NoRecordingFound(Error):\n pass", "class MockRequest(object):\n \"\"\"Holds parameters of an HTTP request for matching against future requests.\n \"\"\"\n def __init...
#!/usr/bin/python import sys import unittest import module_test_runner import getopt import getpass # Modules whose tests we will run. import atom_tests.service_test import gdata_tests.service_test import gdata_tests.apps.service_test import gdata_tests.books.service_test import gdata_tests.calendar.service_test impo...
[ [ 1, 0, 0.027, 0.009, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.036, 0.009, 0, 0.66, 0.0455, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.045, 0.009, 0, 0.66, ...
[ "import sys", "import unittest", "import module_test_runner", "import getopt", "import getpass", "import atom_tests.service_test", "import gdata_tests.service_test", "import gdata_tests.apps.service_test", "import gdata_tests.books.service_test", "import gdata_tests.calendar.service_test", "impo...
#!/usr/bin/python import sys import unittest import module_test_runner import getopt import getpass # Modules whose tests we will run. import gdata_test import atom_test import atom_tests.http_interface_test import atom_tests.mock_http_test import atom_tests.token_store_test import atom_tests.url_test import atom_test...
[ [ 1, 0, 0.05, 0.0167, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0667, 0.0167, 0, 0.66, 0.0323, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.0833, 0.0167, 0, 0.66...
[ "import sys", "import unittest", "import module_test_runner", "import getopt", "import getpass", "import gdata_test", "import atom_test", "import atom_tests.http_interface_test", "import atom_tests.mock_http_test", "import atom_tests.token_store_test", "import atom_tests.url_test", "import ato...
#!/usr/bin/env python # # Copyright (C) 2009 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 ...
[ [ 14, 0, 0.1731, 0.0096, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2019, 0.0096, 0, 0.66, 0.1, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.2115, 0.0096, 0, 0.66, ...
[ "__author__ = 'j.s@google.com (Jeff Scudder)'", "import unittest", "from gdata import test_data", "import gdata.blogger.data", "import atom.core", "import gdata.test_config as conf", "class BlogEntryTest(unittest.TestCase):\n\n def testBlogEntryFromString(self):\n entry = atom.core.parse(test_data.B...
#!/usr/bin/python # # Copyright (C) 2007 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 ...
[ [ 8, 0, 0.1682, 0.0093, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1869, 0.0093, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2056, 0.0093, 0, 0.66,...
[ "\"\"\"Unit tests to exercise server interactions for blogger.\"\"\"", "__author__ = 'api.jscudder (Jeffrey Scudder)'", "import unittest", "import getpass", "import atom", "from gdata import test_data", "import gdata.blogger", "import gdata.blogger.service", "username = ''", "password = ''", "te...
#!/usr/bin/env python # # Copyright (C) 2009 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 ...
[ [ 14, 0, 0.1375, 0.0063, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1562, 0.0063, 0, 0.66, 0.0714, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.1625, 0.0063, 0, 0.6...
[ "__author__ = 'j.s@google.com (Jeff Scudder)'", "import unittest", "import gdata.blogger.client", "import gdata.blogger.data", "import gdata.gauth", "import gdata.client", "import atom.http_core", "import atom.mock_http_core", "import atom.core", "import gdata.data", "import gdata.test_config as...
#!/usr/bin/python2.4 # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 require...
[ [ 8, 0, 0.1453, 0.0085, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1709, 0.0085, 0, 0.66, 0.1, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1966, 0.0085, 0, 0.66, ...
[ "\"\"\"Data model tests for the Groups Provisioning API.\"\"\"", "__author__ = 'Shraddha gupta <shraddhag@google.com>'", "import unittest", "import atom.core", "from gdata import test_data", "import gdata.apps.groups.data", "import gdata.test_config as conf", "class GroupEntryTest(unittest.TestCase):\...
#!/usr/bin/python2.4 # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 require...
[ [ 8, 0, 0.1156, 0.0068, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1565, 0.0068, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1769, 0.0068, 0, 0.66,...
[ "\"\"\"Live client tests for the Groups Provisioning API.\"\"\"", "__author__ = 'Shraddha gupta <shraddhag@google.com>'", "import random", "import unittest", "import gdata.apps.groups.client", "import gdata.apps.groups.data", "import gdata.client", "import gdata.data", "import gdata.gauth", "impor...
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. All Rights Reserved. # # 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 require...
[ [ 8, 0, 0.2394, 0.0141, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2817, 0.0141, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.3239, 0.0141, 0, 0.66,...
[ "\"\"\"Test for Email Migration service.\"\"\"", "__author__ = 'google-apps-apis@googlegroups.com'", "import getpass", "import unittest", "import gdata.apps.migration.service", "domain = ''", "admin_email = ''", "admin_password = ''", "username = ''", "MESSAGE = \"\"\"From: joe@blow.com\nTo: jane@...
#!/usr/bin/python2.4 # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 require...
[ [ 8, 0, 0.1453, 0.0085, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1709, 0.0085, 0, 0.66, 0.1, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1966, 0.0085, 0, 0.66, ...
[ "\"\"\"Data model tests for the Provisioning API.\"\"\"", "__author__ = 'Shraddha Gupta <shraddhag@google.com>'", "import unittest", "import atom.core", "from gdata import test_data", "import gdata.apps.data", "import gdata.test_config as conf", "class UserEntryTest(unittest.TestCase):\n\n def setUp(...
#!/usr/bin/python2.4 # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 require...
[ [ 8, 0, 0.1259, 0.0074, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1481, 0.0074, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1704, 0.0074, 0, 0.66,...
[ "\"\"\"Data model tests for the Multidomain Provisioning API.\"\"\"", "__author__ = 'Claudio Cherubino <ccherubino@google.com>'", "import unittest", "import atom.core", "from gdata import test_data", "import gdata.apps.multidomain.data", "import gdata.test_config as conf", "class UserEntryTest(unittes...
#!/usr/bin/python2.4 # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 require...
[ [ 8, 0, 0.1062, 0.0063, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1437, 0.0063, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1625, 0.0063, 0, 0.66,...
[ "\"\"\"Live client tests for the Multidomain Provisioning API.\"\"\"", "__author__ = 'Claudio Cherubino <ccherubino@google.com>'", "import random", "import unittest", "import gdata.apps.multidomain.client", "import gdata.apps.multidomain.data", "import gdata.client", "import gdata.data", "import gda...
#!/usr/bin/python # # Copyright (C) 2007 SIOS Technology, 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 appli...
[ [ 14, 0, 0.1214, 0.0071, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1357, 0.0071, 0, 0.66, 0.0455, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.1429, 0.0071, 0, 0.6...
[ "__author__ = 'tmatsuo@sios.com (Takashi Matsuo)'", "import unittest", "import time, os", "try:\n from xml.etree import ElementTree\nexcept ImportError:\n from elementtree import ElementTree", " from xml.etree import ElementTree", " from elementtree import ElementTree", "import re", "import pickle...
#!/usr/bin/python # # Copyright (C) 2010 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 ...
[ [ 14, 0, 0.072, 0.004, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.084, 0.004, 0, 0.66, 0.0625, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.088, 0.004, 0, 0.66, ...
[ "__author__ = 'Claudio Cherubino <ccherubino@google.com>'", "import unittest", "import gdata.apps.emailsettings.data", "import gdata.test_config as conf", "class EmailSettingsLabelTest(unittest.TestCase):\n\n def setUp(self):\n self.entry = gdata.apps.emailsettings.data.EmailSettingsLabel()\n\n def tes...
#!/usr/bin/python # # Copyright (C) 2008 Google # # 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 ag...
[ [ 8, 0, 0.1349, 0.0079, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1587, 0.0079, 0, 0.66, 0.1, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1825, 0.0079, 0, 0.66, ...
[ "\"\"\"Test for Email Settings service.\"\"\"", "__author__ = 'google-apps-apis@googlegroups.com'", "import getpass", "import gdata.apps.emailsettings.service", "import unittest", "domain = ''", "admin_email = ''", "admin_password = ''", "username = ''", "class EmailSettingsTest(unittest.TestCase)...
#!/usr/bin/python # # Copyright 2010 Google Inc. All Rights Reserved. # # 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 b...
[ [ 14, 0, 0.0598, 0.0028, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0684, 0.0028, 0, 0.66, 0.0833, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.0712, 0.0028, 0, 0.6...
[ "__author__ = 'Claudio Cherubino <ccherubino@google.com>'", "import unittest", "import gdata.apps.emailsettings.client", "import gdata.apps.emailsettings.data", "import gdata.client", "import gdata.data", "import gdata.gauth", "import gdata.test_config as conf", "conf.options.register_option(conf.AP...
#!/usr/bin/python2.4 # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 require...
[ [ 8, 0, 0.1288, 0.0076, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1515, 0.0076, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1742, 0.0076, 0, 0.66,...
[ "\"\"\"Data model tests for the Organization Unit Provisioning API.\"\"\"", "__author__ = 'Gunjan Sharma <gunjansharma@google.com>'", "import unittest", "import atom.core", "from gdata import test_data", "import gdata.apps.organization.data", "import gdata.test_config as conf", "class CustomerIdEntryT...
#!/usr/bin/python2.4 # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 require...
[ [ 8, 0, 0.1206, 0.0071, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1631, 0.0071, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1844, 0.0071, 0, 0.66,...
[ "\"\"\"Live client tests for the Organization Unit Provisioning API.\"\"\"", "__author__ = 'Gunjan Sharma <gunjansharma@google.com>'", "import random", "import unittest", "import gdata.apps.organization.client", "import gdata.apps.organization.data", "import gdata.client", "import gdata.data", "impo...
#!/usr/bin/python2.4 # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 require...
[ [ 8, 0, 0.1259, 0.0074, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1704, 0.0074, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1926, 0.0074, 0, 0.66,...
[ "\"\"\"Live client tests for the Provisioning API.\"\"\"", "__author__ = 'Shraddha Gupta <shraddhag@google.com>'", "import random", "import unittest", "import gdata.apps.client", "import gdata.apps.data", "import gdata.client", "import gdata.data", "import gdata.gauth", "import gdata.test_config a...
#!/usr/bin/python # # Copyright (C) 2006 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 ...
[ [ 14, 0, 0.1171, 0.0127, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1329, 0.0063, 0, 0.66, 0.125, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.1392, 0.0063, 0, 0.66...
[ "__author__ = ('api.jfisher (Jeff Fisher), '\n 'api.eric@google.com (Eric Bidelman)')", "import unittest", "from gdata import test_data", "import gdata.docs", "class DocumentListEntryTest(unittest.TestCase):\n\n def setUp(self):\n self.dl_entry = gdata.docs.DocumentListEntryFromString(\n ...
#!/usr/bin/python # # Copyright 2009 Google Inc. All Rights Reserved. # # 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 b...
[ [ 14, 0, 0.0608, 0.0034, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0676, 0.0034, 0, 0.66, 0.05, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.0709, 0.0034, 0, 0.66,...
[ "__author__ = 'e.bidelman (Eric Bidelman)'", "import unittest", "import atom", "from gdata import test_data", "import gdata.acl.data", "import gdata.data", "import gdata.sites.data", "import gdata.test_config as conf", "def parse(xml_string, target_class):\n \"\"\"Convenience wrapper for converting...
#!/usr/bin/python # # Copyright 2009 Google Inc. All Rights Reserved. # # 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 b...
[ [ 14, 0, 0.1842, 0.0088, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2018, 0.0088, 0, 0.66, 0.0769, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.2105, 0.0088, 0, 0.6...
[ "__author__ = 'e.bidelman (Eric Bidelman)'", "import unittest", "import gdata.client", "import gdata.data", "import gdata.gauth", "import gdata.sites.client", "import gdata.sites.data", "import gdata.test_config as conf", "conf.options.register_option(conf.TEST_IMAGE_LOCATION_OPTION)", "conf.optio...
#!/usr/bin/python __author__ = "James Sams <sams.james@gmail.com>" import unittest import getpass import atom import gdata.books import gdata.books.service from gdata import test_data username = "" password = "" class BookCRUDTests(unittest.TestCase): def setUp(self): self.service = gdata.books.s...
[ [ 14, 0, 0.0469, 0.0156, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0781, 0.0156, 0, 0.66, 0.1, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.0938, 0.0156, 0, 0.66, ...
[ "__author__ = \"James Sams <sams.james@gmail.com>\"", "import unittest", "import getpass", "import atom", "import gdata.books", "import gdata.books.service", "from gdata import test_data", "username = \"\"", "password = \"\"", "class BookCRUDTests(unittest.TestCase):\n \n def setUp(self):\n ...
#!/usr/bin/python # # Copyright 2009 Google Inc. All Rights Reserved. # # 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 b...
[ [ 14, 0, 0.0872, 0.0051, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0974, 0.0051, 0, 0.66, 0.0714, 784, 0, 1, 0, 0, 784, 0, 0 ], [ 1, 0, 0.1026, 0.0051, 0, 0...
[ "__author__ = 'api.eric@google.com (Eric Bidelman)'", "import getpass", "import unittest", "from gdata import test_data", "import gdata.health", "import gdata.health.service", "username = ''", "password = ''", "class HealthQueryProfileListTest(unittest.TestCase):\n\n def setUp(self):\n self.heal...
#!/usr/bin/python # # Copyright (C) 2006 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 ...
[ [ 14, 0, 0.0199, 0.0011, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0232, 0.0011, 0, 0.66, 0.0833, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 7, 0, 0.0259, 0.0044, 0, 0.6...
[ "__author__ = 'api.jscudder@gmail.com (Jeff Scudder)'", "import unittest", "try:\n from xml.etree import ElementTree\nexcept ImportError:\n from elementtree import ElementTree", " from xml.etree import ElementTree", " from elementtree import ElementTree", "import atom", "import gdata", "from gdata...
#!/usr/bin/env python # # Copyright (C) 2009 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 ...
[ [ 14, 0, 0.1056, 0.0056, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1222, 0.0056, 0, 0.66, 0.0769, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.1333, 0.0056, 0, 0.6...
[ "__author__ = 'jlapenna@google.com (Joe LaPenna)'", "import unittest", "from gdata import test_data", "import gdata.projecthosting.data", "import atom.core", "import gdata.test_config as conf", "ISSUE_ENTRY = \"\"\"\\\n<entry xmlns='http://www.w3.org/2005/Atom'\n xmlns:issues='http://schemas.goog...
#!/usr/bin/env python # # Copyright (C) 2009 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 ...
[ [ 14, 0, 0.0866, 0.0039, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0984, 0.0039, 0, 0.66, 0.0625, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.1024, 0.0039, 0, 0.6...
[ "__author__ = 'jlapenna@google.com (Joe LaPenna)'", "import unittest", "import gdata.projecthosting.client", "import gdata.projecthosting.data", "import gdata.gauth", "import gdata.client", "import atom.http_core", "import atom.mock_http_core", "import atom.core", "import gdata.data", "import gd...
#!/usr/bin/env python # # Copyright (C) 2010 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 ...
[ [ 14, 0, 0.0565, 0.0027, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0645, 0.0027, 0, 0.66, 0.0909, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.0672, 0.0027, 0, 0.6...
[ "__author__ = 'j.s@google.com (Jeff Scudder)'", "import unittest", "import gdata.core", "import gdata.test_config as conf", "PLAYLIST_EXAMPLE = (\n '{\"apiVersion\": \"2.0\",\"data\": {\"totalResults\": 347,\"startIndex\": 1,\"it'\n 'emsPerPage\": 2,\"items\": [{\"id\": \"4DAEFAF23BB3CDD0\",\"created\...
#!/usr/bin/python # # Copyright (C) 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 ...
[ [ 14, 0, 0.0295, 0.0017, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.033, 0.0017, 0, 0.66, 0.0909, 784, 0, 1, 0, 0, 784, 0, 0 ], [ 1, 0, 0.0347, 0.0017, 0, 0....
[ "__author__ = 'api.jhartmann@gmail.com (Jochen Hartmann)'", "import getpass", "import time", "import StringIO", "import random", "import unittest", "import atom", "import gdata.youtube", "import gdata.youtube.service", "YOUTUBE_TEST_CLIENT_ID = 'ytapi-pythonclientlibrary_servicetest'", "class Yo...
#!/usr/bin/env python # # Copyright (C) 2009 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 ...
[ [ 14, 0, 0.1489, 0.0071, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1702, 0.0071, 0, 0.66, 0.0526, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.1773, 0.0071, 0, 0.6...
[ "__author__ = 's@google.com (John Skidgel)'", "import unittest", "import urllib", "import urllib2", "import gdata.youtube.client", "import gdata.youtube.data", "import gdata.gauth", "import gdata.client", "import atom.http_core", "import atom.mock_http_core", "import atom.core", "import gdata....
#!/usr/bin/python # # Copyright (C) 2007 SIOS Technology, 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 appli...
[ [ 14, 0, 0.0309, 0.0017, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0343, 0.0017, 0, 0.66, 0.0667, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 7, 0, 0.0386, 0.0069, 0, 0.6...
[ "__author__ = 'tmatsuo@sios.com (Takashi MATSUO)'", "import unittest", "try:\n from xml.etree import ElementTree\nexcept ImportError:\n from elementtree import ElementTree", " from xml.etree import ElementTree", " from elementtree import ElementTree", "import atom", "import gdata", "from gdata imp...