Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
New file format for Anki with improved review intervals. Pure peewee SQLite database, no zipfile. Available to work with on Jupyter Notebook.
On Jupyter Notebook,
>>> from ankix import ankix, db as a
>>> ankix.init('test.ankix') # A file named 'test.ankix' will be created.
>>> ankix.import_apkg('foo.apkg') # Import the contents from 'foo.apkg'
>>> iter_quiz = a.iter_quiz()
>>> card = next(iter_quiz)
>>> card
'A flashcard is show on Jupyter Notebook. You can click to change card side, to answer-side.'
'It is HTML, CSS, Javascript, Image enabled. Cloze test is also enabled. Audio is not yet tested.'
>>> card.right() # Mark the card as right
>>> card.wrong() # Mark the card as wrong
>>> card.mark() # Add the tag 'marked' to the note.
You can directly make use of Peewee capabilities,
>>> a.Card.select().join(a.Note).where(a.Note.data['field_a'] == 'bar')[0]
'The front side of the card is shown.'
Adding new cards is now possible. This has been tested in https://github.com/patarapolw/zhlib/blob/master/zhlib/export.py#L15
from ankix import ankix, db as a
ankix.init('test.ankix')
a_model = a.Model.add(
name='foo',
templates=[
a.TemplateMaker(
name='Forward',
question=Q_FORMAT,
answer=A_FORMAT
),
a.TemplateMaker(
name='Reverse',
question=Q_FORMAT,
answer=A_FORMAT)
],
css=CSS,
js=JS
)
# Or, a_model = a.Model.get(name='foo')
for record in records:
a.Note.add(
data=record,
model=a_model,
card_to_decks={
'Forward': 'Forward deck',
'Reverse': 'Reverse deck'
},
tags=['bar', 'baz']
)
$ pip install ankix
FAQs
New file format for Anki with improved review intervals and Peewee SQLite powered
We found that ankix demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.