This file contains 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
import json | |
import geojson | |
import requests | |
class ClavinClient(object): | |
def __init__(self, clavin_endpoint=None): | |
if clavin_endpoint is None: | |
#self.clavin_endpoint = "http://54.186.35.170:9090/api/v0/geotag" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 dogpile.cache import make_region | |
# key dictionary | |
keys = dict() | |
def my_key_generator(namespace, fn, **kwargs): | |
fname = fn.__name__ | |
def generate_key(*arg): |
NewerOlder