Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/patarapolw/srs-sqlite
A simple SRS app using Markdown/HandsOnTable/SQLite
https://github.com/patarapolw/srs-sqlite
handsontable spaced-repetition srs
Last synced: about 1 month ago
JSON representation
A simple SRS app using Markdown/HandsOnTable/SQLite
- Host: GitHub
- URL: https://github.com/patarapolw/srs-sqlite
- Owner: patarapolw
- License: mit
- Created: 2018-08-12T21:01:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-05T06:39:26.000Z (over 6 years ago)
- Last Synced: 2024-10-08T08:41:03.457Z (3 months ago)
- Topics: handsontable, spaced-repetition, srs
- Language: Python
- Size: 899 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# srs-sqlite
A simple SRS app using Markdown/HandsOnTable/SQLite.
## Usage
The app can be invoke from the command line, or from Python.
```commandline
$ srs --help
Usage: srs [OPTIONS] FILENAMEOptions:
--host TEXT
--port INTEGER
--debug
--help Show this message and exit.
```Or, in a Python script.
```python
from srs_sqlite import load_srsif __name__ == '__main__':
load_srs('srs.db')
```## SRS usage
You have to get the server running first. After that, in Jupyter Notebook:
```python
>>> import os
>>> os.environ['DATABASE_URI'] = 'srs.db'
>>> from srs_sqlite.flashcards import iter_quiz
>>> from srs_sqlite import db
>>> quiz = iter_quiz()
>>> card = next(quiz)
>>> card.hide()
An HTML-rendered front of the card is shown.
>>> card.show()
An HTML-rendered back of the card is shown.
>>> card.get_more_sentences()
Add more sentences to the card, if the number of example sentences is too few.
>>> card.wrong()
Mark the card as wrong.
>>> card.right()
Mark the card as right.
>>> card.mark()
Add the tag "marked" to the card.
>>> card.unmark()
Remove the tag "marked" from the card.
>>> db.session.commit()
Commit changes.
```## Screenshots
## Related projects
- [HanziLevelUp](https://github.com/patarapolw/HanziLevelUp) - the project in which I embed the srs-sqlite.
- [jupyter-flashcards](https://github.com/patarapolw/jupyter-flashcards) - a flashcard app with SRS, working with an Excel file.
- [gflashcards](https://github.com/patarapolw/gflashcards) - a flashcard app, working with Google Sheets, but SRS is not yet implemented.
- [simplecel](https://github.com/patarapolw/simplecel) - HandsOnTable-based Excel with viewer, that can view Markdown and images.