Skip to content

Commit

Permalink
2016-06-06
Browse files Browse the repository at this point in the history
Now uszipcode is portable
  • Loading branch information
MacHu-GWU committed Jun 7, 2016
1 parent aa48605 commit 3c86434
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions uszipcode/searchengine.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from uszipcode.data import (
DB_FILE, STATE_ABBR_SHORT_TO_LONG, STATE_ABBR_LONG_TO_SHORT)
from uszipcode.packages.haversine import great_circle
from uszipcode.packages.fuzzywuzzy.process import extractOne
from collections import OrderedDict
from heapq import *
import sqlite3
import math
import json
import math
import sqlite3
from heapq import *
from collections import OrderedDict

try:
from .data import (
DB_FILE, STATE_ABBR_SHORT_TO_LONG, STATE_ABBR_LONG_TO_SHORT)
except:
from uszipcode.data import (
DB_FILE, STATE_ABBR_SHORT_TO_LONG, STATE_ABBR_LONG_TO_SHORT)
try:
from .packages.haversine import great_circle
except:
from uszipcode.packages.haversine import great_circle
try:
from .packages.fuzzywuzzy.process import extractOne
except:
from uszipcode.packages.fuzzywuzzy.process import extractOne


class Zipcode(object):
Expand Down

0 comments on commit 3c86434

Please sign in to comment.