Giter Club home page Giter Club logo

wanikani's Introduction

wanikani

Various helpers for working with the WaniKani API

Usage

This is written as a standard Python package, so it can be installed in the standard way.

python setup.py install

First, set your API key

wk set_key <api key>

Show upcoming reviews

# --current show the current level only
# --rollup - rollup anything that is due now
# --limit 10 - Only show the next 10 reviews
$ wk upcoming --current --rollup --limit 10
Showing upcoming items for level 17
Rolled up reviews
Timestamp              Radicals      Kanji      Vocab      Total
2014-01-02 18:39:34           0          6         15         21
2014-01-02 18:45:00           7         23          1         31
2014-01-02 22:00:00           0          0          1          1
2014-01-02 22:30:00           0          3          0          3
2014-01-02 23:30:00           2          0          0          2
2014-01-03 06:45:00           0          0         10         10
2014-01-03 08:15:00           0          0          1          1
2014-01-03 08:45:00           0          0          5          5
2014-01-03 09:30:00           3          0          0          3
2014-01-03 11:15:00           0          1          0          1

wanikani's People

Contributors

kfdm avatar kiwiz avatar

Stargazers

Asaf Taller avatar Jeffrey Persons avatar Matt Miano avatar

Watchers

 avatar James Cloos avatar

Forkers

pombredanne

wanikani's Issues

Timezone fixes

Did this change locally as a test, but should do something more clean for a permanent fix. Not sure if requiring all of pytz for just this makes sense.

$git diff
diff --git a/wanikani/core.py b/wanikani/core.py
index b4b9b02..98e8f06 100644
--- a/wanikani/core.py
+++ b/wanikani/core.py
@@ -5,6 +5,8 @@ import logging

 import requests

+import pytz
+
 logger = logging.getLogger(__name__)

 __all__ = ['WaniKani', 'Radical', 'Kanji', 'Vocabulary']
@@ -21,7 +23,8 @@ class BaseObject(object):
         if self.raw['user_specific'] is None:
             return None
         return datetime.datetime.fromtimestamp(
-            self.raw['user_specific']['available_date']
+            self.raw['user_specific']['available_date'],
+            pytz.UTC
         )

     @property

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.