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.
Metadata
Release files for simplesrs 0.1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| simplesrs-0.1.1.2.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simplesrs-0.1.1.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 12.8 kB
Release files / simplesrs-0.1.1.2.tar.gz
| Download URL | simplesrs-0.1.1.2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3679978a5edb76a641c9b23e02a55c3100019416880ebac0e399caea0d1022e
|
|
BLAKE2b-256 checksum How to use checksums |
c1a0a82f30131cb31478c24d2b8768e1c24fbe00e219af92c96d256e7d685aee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.11.5 CPython/3.7.0 Darwin/17.7.0
|
Release files / simplesrs-0.1.1.2-py2.py3-none-any.whl
| Download URL | simplesrs-0.1.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
89b23c5f28a4ad3694ca4b50a5550cdfa3c9403ee4e113a4530cb55a464c3644
|
|
BLAKE2b-256 checksum How to use checksums |
c4870d09f379d404f14c2fd7b7a7c6afaeb25e3ee29a608a13190385b6838350
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.11.5 CPython/3.7.0 Darwin/17.7.0
|