This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x00D15422268E29447c851a684594FD06fEab5F55 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from zeep import Client | |
WSDL_URL = 'http://ws.eoddata.com/data.asmx?wsdl' | |
class Eoddata(): | |
''' | |
usage: | |
eod = Eoddata(username,password) | |
result = eod.send_request(action='Membership') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import httplib2 | |
from apiclient import discovery | |
from django.core.exceptions import ObjectDoesNotExist | |
from django.http import HttpResponseRedirect | |
from oauth2client.client import flow_from_clientsecrets, OAuth2WebServerFlow | |
from oauth2client.contrib import xsrfutil | |
from oauth2client.contrib.django_util.storage import DjangoORMStorage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = "Mark Allan B. Meriales" | |
# based from http://www.pythoncentral.io/watermark-images-python-2x/ | |
# mine uses a picture as a watermark | |
# michaelphan add base_ratio for logo and better logo scale | |
from PIL import Image, ImageEnhance | |
def add_watermark(image_file, logo_file, opacity=1): | |
img = Image.open(image_file).convert('RGB') |
NewerOlder