Skip to main content

Simple SRS (spaced-recognition system) mechanism and database

Project description

simplesrs

Simple SRS (spaced-recognition system) mechanism and database. Scalable and zero configuration.

Usage

>>> import simplesrs as srs
>>> srs.init('srs.db')
>>> srs.Card.add('类', tags=['hanzi', 't_hanzi1'], vocabs=['人类 人類 [ren2 lei4] humanity/human race/mankind'])
>>> srs.Card.add('数学', tags=['vocab', 'pleco'])
>>> srs.Card.add('重要的事情要立即去做', tags=['sentence', 't_hanzi1'], translation='重要的事情要立即去做。 [Zhòngyào de shìqing yào lìjí qù zuò. (Also no qu (less strong))] I need to go do important things immediately.')
>>> quiz = srs.Card.iter_quiz()
>>> card = next(quiz)
>>> card
重要的事情要立即去做
>>> card.info
{
    'translation':
        '重要的事情要立即去做。 [Zhòngyào de shìqing yào lìjí qù zuò. (Also no qu (less '
        'strong))] I need to go do important things immediately.'
}
>>> card.right()  # Mark as right, and next review by now() + srs_level's timedelta()
>>> card.undo()  # Undo marking as right.
>>> card.wrong()  # Mark as wrong, and bury for default: 10 minutes.
>>> card.undo()
>>> card.bury()  # Bury for default: 4 hours

Installation

pip install simplesrs

Related projects

  • ankix -- New file format for Anki with improved review intervals. Pure peewee SQLite database, no zipfile, but media enabled. Available to work with on Jupyter Notebook. Full dropin replacement for Anki.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simplesrs-0.1.1.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

simplesrs-0.1.1.2-py2.py3-none-any.whl (8.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file simplesrs-0.1.1.2.tar.gz.

File metadata

  • Download URL: simplesrs-0.1.1.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.11.5 CPython/3.7.0 Darwin/17.7.0

File hashes

Hashes for simplesrs-0.1.1.2.tar.gz
Algorithm Hash digest
SHA256 f3679978a5edb76a641c9b23e02a55c3100019416880ebac0e399caea0d1022e
MD5 f221a60688f45647fda922c18ae675ec
BLAKE2b-256 c1a0a82f30131cb31478c24d2b8768e1c24fbe00e219af92c96d256e7d685aee

See more details on using hashes here.

File details

Details for the file simplesrs-0.1.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: simplesrs-0.1.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.11.5 CPython/3.7.0 Darwin/17.7.0

File hashes

Hashes for simplesrs-0.1.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 89b23c5f28a4ad3694ca4b50a5550cdfa3c9403ee4e113a4530cb55a464c3644
MD5 0450786a2df528867df0735fa3239edd
BLAKE2b-256 c4870d09f379d404f14c2fd7b7a7c6afaeb25e3ee29a608a13190385b6838350

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page