From b6b3a6f5f6fb64e69fd8c9221d43d19e8f265bf2 Mon Sep 17 00:00:00 2001 From: Robyn Speer Date: Mon, 24 Feb 2014 16:29:06 -0500 Subject: [PATCH] version 0.4: minor code changes, debugged database - The database is built under Python 3.3.2, so it should correctly implement Python 3's Unicode tricks, including special handling of Greek lowercase letters. (Version 0.3 was supposed to do this as well, but apparently, it didn't.) - `word_frequency` and `iter_wordlist` can be imported from the top level. - The new function `random_words` supplies a string made from random words that are sufficiently high in rank order. Former-commit-id: 3702a7c8d0d0dc0c19fa6941b3231283bba7e817 --- wordfreq/__init__.py | 2 ++ wordfreq/config.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wordfreq/__init__.py b/wordfreq/__init__.py index e69de29..0768d0d 100644 --- a/wordfreq/__init__.py +++ b/wordfreq/__init__.py @@ -0,0 +1,2 @@ +# Import some methods from wordfreq.query at the top level. +from wordfreq.query import word_frequency, iter_wordlist, random_words diff --git a/wordfreq/config.py b/wordfreq/config.py index 77e74da..363c49e 100644 --- a/wordfreq/config.py +++ b/wordfreq/config.py @@ -5,7 +5,7 @@ DB_DIR = (os.environ.get('WORDFREQ_DATA') or os.path.expanduser('~/.cache/wordfreq')) # When the minor version number increments, the data may change. -VERSION = '0.3.0' +VERSION = '0.4.0' MINOR_VERSION = '.'.join(VERSION.split('.')[:2]) # Put these options together to make a database filename. @@ -23,7 +23,7 @@ DB_URL = os.path.join(DOWNLOAD_URL, MINOR_VERSION, # How do we actually get it there? This is the path, including hostname, to give # to scp to upload the file. -UPLOAD_PATH = 'baldr:/srv/wordfreq/static/' +UPLOAD_PATH = 'baldr.lumi:/srv/wordfreq/static/' # Where should raw data go? Inside the package isn't necessary a good # place for it, because it might be installed in the system site-packages.