code
stringlengths
1
1.72M
language
stringclasses
1 value
#!/usr/bin/env python #-*- coding: UTF-8 -*- import gobject import gtk import rb import rhythmdb import logging,logging.handlers from FolderViewSource import FolderViewSource log=logging.getLogger('FolderView') class FolderViewEntryType(rhythmdb.EntryType): def __init__(self): rhythmdb.EntryType.__init__...
Python
#!/usr/bin/env python #-*- coding: UTF-8 -*- import gobject import gtk import rb import rhythmdb import logging,logging.handlers from FolderViewSource import FolderViewSource log=logging.getLogger('FolderView') class FolderViewEntryType(rhythmdb.EntryType): def __init__(self): rhythmdb.EntryType.__init__...
Python
#!/usr/bin/env python #-*- coding: UTF-8 -*- import gobject import gtk import os import gio import urllib import gconf import rb,rhythmdb import treefilebrowser import logging,logging.handlers log=logging.getLogger('FolderView') LAST_PATH_KEY = '/rhythmbox.plugin.FolderView.lastpath' class FolderViewSource(rb.Browse...
Python
#!/usr/bin/env pypy import os, sys, logging, re import argparse import fnmatch configurations = {'lite', 'pro'} package_dirs = { 'lite': ('src/cx/hell/android/pdfview',), 'pro': ('src/cx/hell/android/pdfviewpro',) } file_replaces = { 'lite': ( 'cx.hell.android.pdfview.', '"cx.hell.an...
Python
from PyQt4 import QtGui, QtCore from fonttreemodel import FontTreeModel class FontTreeView(QtGui.QTreeView): def __init__(self, parent=None, folder=None): QtGui.QListView.__init__(self, parent) self.model = FontTreeModel(self, folder) self.setModel(self.model) self.setColumnWidth(0, 20) self.setIndentat...
Python
# qt4 modules from PyQt4 import QtCore, QtGui, uic # python modeuls import sys, os.path # python imaging modules import ImageQt, ImageDraw, ImageFont, Image # Load icons icon_resource_file = os.path.join(os.path.dirname(__file__),"icons.rcc") QtCore.QResource.registerResource(icon_resource_file) # Load UI (FontPrev...
Python
import os from PyQt4 import QtCore, QtGui from fonttreeview import FontTreeView class BrowsePane(QtGui.QWidget): '''A pane containing combobox and a list view with fonts in the selected folder''' def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.layout = QtGui.QVBoxLayout() self.s...
Python
import sys import os from PyQt4 import QtCore, QtGui from browsepane import * from fontpreview import * class MainUi(QtGui.QWidget): def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.layout = QtGui.QHBoxLayout(self) self.setLayout(self.layout) self.bp = BrowsePane(self) self.layou...
Python
import ImageFont import glob, os.path files = glob.glob("/home/download/Fonts pack/Fonts/*.[Tt][Tt][Ff]") for file in files: try: font = ImageFont.truetype(file, 10) print "%s %s" % (os.path.basename(file), font.getname()) except IOError: pass
Python
import os, os.path from PyQt4 import QtCore, QtGui import ImageFont class FontTreeModel(QtCore.QAbstractItemModel): def __init__(self, parent=None, folder=None): QtCore.QAbstractItemModel.__init__(self, parent) self.rootItem = RootItem(["", "Name"]) if folder: self.folder = str(folder) self.getFolder(se...
Python
''' Created on 15.01.2011 @author: kupriyanov ''' import os, webfonts, json, sys filename = "f:\\!Develop\\android\\mkFonts\\mkFontsParser\\test\\METADATA" dirname = "f:\\!Develop\\android\\mkFonts\\mkFontsParser\\test\\googlefontdirectory\\" fonts = { 'version': '1', 'homepage': 'http...
Python
''' Created on 15.01.2011 @author: kupriyanov ''' class Font(object): ''' classdocs ''' def __init__(self): ''' Constructor ''' self.name = 'test'
Python
import os from compiler.ast import TryExcept data = {'license: ': None, 'url: ': None, 'category: ': None, 'subsets: ': None, 'family: ': None, 'group: ': None, 'designer: ': '/designer/name', 'profile: ': '/designer/description', ...
Python
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This is a simple utility for dumping out the header of a compressed file, and # is suitable for doing spot checks of compressed. files. However, this only # impl...
Python
from googlevoice import Voice, util from os import path, remove from unittest import TestCase, main class VoiceTest(TestCase): voice = Voice() voice.login() outgoing = util.input('Outgoing number (blank to ignore call tests): ') forwarding = None if outgoing: forwarding = util.input('Forwar...
Python
DEFAULT_CONFIG = """ [auth] # Google Account email address (one associated w/ your Voice account) email= # Raw password used or login password= [gvoice] # Number to place calls from (eg, your google voice number) forwardingNumber= # Default phoneType for your forwardingNumber as defined below # 1 - Hom...
Python
import re from sys import stdout from xml.parsers.expat import ParserCreate from time import gmtime from datetime import datetime from pprint import pprint try: from urllib2 import build_opener,install_opener, \ HTTPCookieProcessor,Request,urlopen from urllib import urlencode,quote except ImportError: ...
Python
from ConfigParser import ConfigParser, NoOptionError import os import settings class Config(ConfigParser): """ ``ConfigParser`` subclass that looks into your home folder for a file named ``.gvoice`` and parses configuration data from it. """ def __init__(self): self.fname = os.path.expandu...
Python
from conf import config from util import * import settings import os if settings.DEBUG: import logging logging.basicConfig() log = logging.getLogger('PyGoogleVoice') log.setLevel(logging.DEBUG) else: log = None class Voice(object): """ Main voice instance for interacting with the Google Vo...
Python
""" This project aims to bring the power of the Google Voice API to the Python language in a simple, easy-to-use manner. Currently it allows you to place calls, send sms, download voicemails/recorded messages, and search the various folders of your Google Voice Accounts. You can use the Python API or command line s...
Python
#!/usr/bin/env python from django.core.management import execute_manager import imp try: imp.find_module('settings') # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized t...
Python
from django.http import HttpResponse from django.http import HttpResponseBadRequest from django.http import HttpResponseForbidden from django.http import HttpResponseNotAllowed from django.contrib.auth.decorators import login_required from django.shortcuts import redirect from django.shortcuts import render_to_re...
Python
from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save class PhoneNumber(models.Model): # Phone number, in format XXXXXXXXXX number = models.CharField(max_length=10) created = models.DateTimeField(auto_now_add=True) accessed = models.ManyToManyFi...
Python
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests that 1 + 1 a...
Python
from django.conf.urls.defaults import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: url(r'^/?$', 'fonr.alpha.views.profile', name='home'), url(r'^signup/?', 'fonr.alpha.views.signup', name='signup'), url(r'^([0-9]{10})/?', 'fonr.alph...
Python
# utils.py: Utility functions for fonr import re from fonr.googlevoice import Voice def check_phone_number(raw_number): """Number is a string the form of XXXXXXXXXX. Checks if its a valid US phone number""" # Fix number to match format r = re.compile('^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$...
Python
from django.contrib import admin from fonr.alpha.models import PhoneNumber from fonr.alpha.models import PhoneAccess from fonr.alpha.models import UserProfile from fonr.alpha.models import Review from fonr.alpha.models import Invite from fonr.alpha.models import Activity from fonr.alpha.models import Feedback f...
Python
from django.http import HttpResponse from django.http import HttpResponseBadRequest from django.http import HttpResponseForbidden from django.http import HttpResponseNotAllowed from django.contrib.auth.decorators import login_required from django.contrib.auth import logout from django.contrib.auth.hashers import check_...
Python
#!/usr/bin/env python from django.core.management import execute_manager import imp try: imp.find_module('settings') # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized t...
Python
from django.conf.urls.defaults import patterns, include, url from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: url(r'^$', 'fonr.alpha.views.index', name='home'), url(r'^a/', include('fonr.alpha.ur...
Python
# Django settings for fonr project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( ('Admin', 'kagelump@gmail.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'datab...
Python
import cherrypy import random import math import json import os.path import py.geobox as geobox from string import Template MAP_LEFT = 50 MAP_TOP = 50 MAP_RIGHT = 900 MAP_BOTTOM = 400
Python
class EntityManager(object): def __init__(self): self.ents = {} self.count = 0 self.deletes = [] def add_planet(self,type,sub,owner,x,y): self.count += 1 id = self.count p = [id,type,sub,owner,x,y] self.ents[id] = p return p ...
Python
import cherrypy import random import math import json import os.path import py.geobox as geobox from string import Template MAP_LEFT = 50 MAP_TOP = 50 MAP_RIGHT = 900 MAP_BOTTOM = 400 #test def get_distance2(x1,x2,y1,y2): return math.pow(x2-x1,2) + math.pow(y2-y1,2) class Server: item_c...
Python
import json import urllib import sys import random import time import math ulr = "http://coder9.selfip.com:8080/" def get_distance2(x1,x2,y1,y2): return math.pow(x2-x1,2) + math.pow(y2-y1,2) def main(): actions = [] player_number = create_new_player()['player_number'] print 'I am playe...
Python
import json import urllib import pprint import random import time while True: f = urllib.urlopen("http://coder9.selfip.com:8080/do_actions") print f.read() time.sleep(10)
Python
import random from omega import geobox from omega import playermanager from omega import actionmanager from omega import entitymanager types = {0:'planet', 1:'ship'} subtypes = {0:'c', 1:'m', 2:'x', 3:'destroyer', 4:'cruiser', 5:'bat...
Python
class PlayerManager(object): def __init__(self): self.players = {} self.count = 0 self.log = [] def add_player(self,planet,name=None,ore=10): self.count += 1 id = self.count player = {'id':id, 'name':name, 'ore':...
Python
import json class ActionManager(object): def __init__(self): self.actions = [] self.jsons = [] self.log = [] def add_json_actions(self,actions=[]): self.jsons.extend(actions) def convert_actions(self): self.actions = json.loads(self.json_act...
Python
import random class GeoBox(object): def __init__(self): self.index = {} self.cellsize = 100; def clear(self): self.index = {} def get_cell(self,x,y): return x/self.cellsize,y/self.cellsize def add_point(self,x,y,item): key = self.get_cell(x,y) self.index.setdefault(str(key), []).append(item) d...
Python
import gc import time mylist = [] def make(): #this just fills in the list with some junk data print 'making them' for x in range(0,1000000): mylist.append(['aa','bb','cc','dd',2,3,4,5,6,7,8]) print 'made them' def gone(): #this is so I can watch the memory print 'are ...
Python
# -*- coding: utf-8 -*- # Foma: a finite-state toolkit and library. # # Copyright © 2008-2015 Mans Hulden # # This file is part of foma. # # Licensed under the Apache License, Version 2.0 (t...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Главный скрипт PageHandler: Обраточик страниц, перехватывающий все адреса сайта. """ import logging from engine import settings from engine import styles from engine import pagegen from engine import formhandler from engine import rpc from engine imp...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (C) 2009 Alexey Malashin # # Licensed under GNU License # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Главный скрипт PageHandler: Обраточик страниц, перехватывающий все адреса сайта. """ import logging from engine import settings from engine import styles from engine import pagegen from engine import formhandler from engine import rpc from engine imp...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """Настройки портала """ # виртуальная директория, где установлена CMS ROOT = '/' # заголовок сайта SITETITLE = 'fooCMS' # название сайта SITECAPTION = 'fooCMS<br><span style="font-size: 60%;">Content Management Sytem for Google App Engine</span>' # ключевы...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ RPC """ import logging from engine import settings from engine.data import news from engine.data import cites from engine.data import pages from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app # enable info lo...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Функции работы с цитатами """ import random import logging from engine import settings from google.appengine.ext import db from datetime import datetime class Cite(db.Model): """Класс - цитата """ Text = db.StringProperty(verbose_name = 'Цитата'...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Функции работы с новостями """ import logging from engine import settings from google.appengine.ext import db from datetime import datetime #from google.appengine.api import memcache class News(db.Model): """Класс - новость """ Text = db.StringPro...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Функции работы с цитатами """ import random import logging from engine import settings from google.appengine.ext import db from datetime import datetime class Cite(db.Model): """Класс - цитата """ Text = db.StringProperty(verbose_name = 'Цитата'...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Функции работы с сообщениями обратной связи """ from engine import settings from google.appengine.ext import db from datetime import datetime class UserMessage(db.Model): """Класс БД сообщений пользователя """ Author = db.StringProperty(verbose_...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Модуль работы с данными """ __author__ = 'frozzzen@gmail.com (Alexey Malashin)' __all__ = ['cites', 'feedback', 'news', 'pages'] def DropAllDB(): """Удалить все базы данных """ db.Delete(Model.all())
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Функции работы со страницами """ from engine import settings from google.appengine.ext import db from google.appengine.api import memcache class Page(db.Model): """Класс БД страница """ URL = db.StringProperty(verbose_name = "Адрес страницы", re...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Функции работы с новостями """ import logging from engine import settings from google.appengine.ext import db from datetime import datetime #from google.appengine.api import memcache class News(db.Model): """Класс - новость """ Text = db.StringPro...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Функции работы со страницами """ from engine import settings from google.appengine.ext import db from google.appengine.api import memcache class Page(db.Model): """Класс БД страница """ URL = db.StringProperty(verbose_name = "Адрес страницы", re...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Функции работы с сообщениями обратной связи """ from engine import settings from google.appengine.ext import db from datetime import datetime class UserMessage(db.Model): """Класс БД сообщений пользователя """ Author = db.StringProperty(verbose_...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Модуль работы с данными """ __author__ = 'frozzzen@gmail.com (Alexey Malashin)' __all__ = ['cites', 'feedback', 'news', 'pages'] def DropAllDB(): """Удалить все базы данных """ db.Delete(Model.all())
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Обработчик форм """ import logging from engine import settings from engine.data import feedback from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app # enable info logging by the app logging.getLogger().setLevel...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Обработчик форм """ import logging from engine import settings from engine.data import feedback from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app # enable info logging by the app logging.getLogger().setLevel...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Резервное копирование """ import logging import os import StringIO import tarfile import gzip #import zlib from engine import settings from engine.data import feedback from google.appengine.ext import webapp from google.appengine.ext.webapp.util import r...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """Генератор страниц """ import os import logging import datetime from engine import settings from engine import styles from engine.data import news from engine.data import cites from engine.data import pages from google.appengine.api import users from google.a...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Инициализация """ __author__ = 'frozzzen@gmail.com (Alexey Malashin)' __date__ = '28 January 2009' __version__ = '$Revision: 00001 $' __credits__ = 'for all' __all__ = ['pagegen', 'settings', 'styles', 'formhandler', 'backup']
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ RPC """ import logging from engine import settings from engine.data import news from engine.data import cites from engine.data import pages from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app # enable info lo...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Обработчик стилей """ import logging from os import path from engine import settings from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app from google.appengine.api import memcache # enable info logging by the a...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """Генератор страниц """ import os import logging import datetime from engine import settings from engine import styles from engine.data import news from engine.data import cites from engine.data import pages from google.appengine.api import users from google.a...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Инициализация """ __author__ = 'frozzzen@gmail.com (Alexey Malashin)' __date__ = '28 January 2009' __version__ = '$Revision: 00001 $' __credits__ = 'for all' __all__ = ['pagegen', 'settings', 'styles', 'formhandler', 'backup']
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Обработчик стилей """ import logging from os import path from engine import settings from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app from google.appengine.api import memcache # enable info logging by the a...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Резервное копирование """ import logging import os import StringIO import tarfile import gzip #import zlib from engine import settings from engine.data import feedback from google.appengine.ext import webapp from google.appengine.ext.webapp.util import r...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Видеогалерея, основанная на youtube """ import logging import gdata.geo import config #from gdata import media from gdata.alt import appengine from gdata import youtube from gdata.youtube import service #from gdata import urlfetch from google.appengine.e...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Галерея, основанная на picasaweb """ import logging import gdata.geo import config #from gdata import media from gdata.alt import appengine from gdata.photos import service from google.appengine.ext import webapp from engine import settings from engine i...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Фишки, которые можно прикрутить к сайту """ import gallery import video import files import docs #import stub __author__ = 'frozzzen@gmail.com (Alexey Malashin)' # __all__ = ['gallery', 'video', 'files'] features = [ ('/gallery', gallery.GalleryHa...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Галерея, основанная на picasaweb """ import logging import config import gdata.docs.service import gdata.docs from gdata.alt import appengine from google.appengine.ext import webapp from engine import settings from engine import pagegen # enable info l...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Файловая хранилка на основе openomy """ from google.appengine.ext import webapp class FilesHandler(webapp.RequestHandler): def get(self): pass
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Галерея, основанная на picasaweb """ import logging import gdata.geo import config #from gdata import media from gdata.alt import appengine from gdata.photos import service from google.appengine.ext import webapp from engine import settings from engine i...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Файловая хранилка на основе openomy """ from google.appengine.ext import webapp class FilesHandler(webapp.RequestHandler): def get(self): pass
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Фишки, которые можно прикрутить к сайту """ import gallery import video import files import docs #import stub __author__ = 'frozzzen@gmail.com (Alexey Malashin)' # __all__ = ['gallery', 'video', 'files'] features = [ ('/gallery', gallery.GalleryHa...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Галерея, основанная на picasaweb """ import logging import config import gdata.docs.service import gdata.docs from gdata.alt import appengine from google.appengine.ext import webapp from engine import settings from engine import pagegen # enable info l...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Параметры фич """ # аккаунт для доступа к google data GD_mail = 'YOUR-M@IL-HERE' # пароль для доступа к google data GD_password = 'YOUR-PASSW0RD-H3RE' # пользователь в веб-альбомах picasa GD_picasa = 'YOUR-GALLERY-USER-HERE' # пользователь в youtube...
Python
#!/usr/bin/python # -*- coding: utf-8 -*- """ Видеогалерея, основанная на youtube """ import logging import gdata.geo import config #from gdata import media from gdata.alt import appengine from gdata import youtube from gdata.youtube import service #from gdata import urlfetch from google.appengine.e...
Python
#!/usr/bin/python # # Copyright (C) 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 applicabl...
Python
# -*-*- encoding: utf-8 -*-*- # # This is gdata.photos.exif, implementing the exif namespace in gdata # # $Id: __init__.py 81 2007-10-03 14:41:42Z havard.gulldahl $ # # Copyright 2007 Håvard Gulldahl # Portions copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not...
Python
#!/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 ...
Python
#!/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 ...
Python
#!/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 ...
Python
#!/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 ...
Python
#!/usr/bin/python # # Copyright (C) 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 applicabl...
Python
#!/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 ...
Python
#!/usr/bin/python # # Copyright (C) 2006,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...
Python
#!/usr/bin/python # # Copyright (C) 2006,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...
Python
#!/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 ...
Python
#!/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 ...
Python
#!/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 ...
Python
#!/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 ...
Python
# -*-*- encoding: utf-8 -*-*- # # This is gdata.photos.media, implementing parts of the MediaRSS spec in gdata structures # # $Id: __init__.py 81 2007-10-03 14:41:42Z havard.gulldahl $ # # Copyright 2007 Håvard Gulldahl # Portions copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "Lice...
Python
# -*-*- encoding: utf-8 -*-*- # # This is gdata.photos.geo, implementing geological positioning in gdata structures # # $Id: __init__.py 81 2007-10-03 14:41:42Z havard.gulldahl $ # # Copyright 2007 Håvard Gulldahl # Portions copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License");...
Python
#!/usr/bin/env python # -*-*- encoding: utf-8 -*-*- # # This is the service file for the Google Photo python client. # It is used for higher level operations. # # $Id: service.py 144 2007-10-25 21:03:34Z havard.gulldahl $ # # Copyright 2007 Håvard Gulldahl # # Licensed under the Apache License, Version 2.0 (the "Licen...
Python
#!/usr/bin/env python # -*-*- encoding: utf-8 -*-*- # # This is the service file for the Google Photo python client. # It is used for higher level operations. # # $Id: service.py 144 2007-10-25 21:03:34Z havard.gulldahl $ # # Copyright 2007 Håvard Gulldahl # # Licensed under the Apache License, Version 2.0 (the "Licen...
Python
# -*-*- encoding: utf-8 -*-*- # # This is the base file for the PicasaWeb python client. # It is used for lower level operations. # # $Id: __init__.py 148 2007-10-28 15:09:19Z havard.gulldahl $ # # Copyright 2007 Håvard Gulldahl # Portions (C) 2006 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "L...
Python
#!/usr/bin/python """ requires tlslite - http://trevp.net/tlslite/ """ import binascii from gdata.tlslite.utils import keyfactory from gdata.tlslite.utils import cryptomath # XXX andy: ugly local import due to module name, oauth.oauth import gdata.oauth as oauth class OAuthSignatureMethod_RSA_SHA1(oauth.OAuthSign...
Python
#!/usr/bin/python """ requires tlslite - http://trevp.net/tlslite/ """ import binascii from gdata.tlslite.utils import keyfactory from gdata.tlslite.utils import cryptomath # XXX andy: ugly local import due to module name, oauth.oauth import gdata.oauth as oauth class OAuthSignatureMethod_RSA_SHA1(oauth.OAuthSign...
Python