Cyclops v0.3.4 - Init Repo
Easily Create Your Own Brain Brew Repo!
Main Feature change: Function to generate all Brain Brew required files, including source csvs and recipe files, using only a CrowdAnki Export 🎉 This will greatly simplify the initial setup of a repo for users.
Run it with brainbrew init [CrowdAnki folder path]. See the starter repo for a step-by-step guide for all of this.
Note: running a recipe file has now been given the command "run": brainbrew run [recipe file path]
Other improvements:
- Subdecks are now supported (Anki -> Source only)
- Csv Note Model Mappings are now optional
- No more useless mappings of "field1: field1"
- Should be used only when using a column name that is different than the Anki field
- Note Model updates
-
They now have their own yaml source files that live in the source as yaml, html, and css files.
- This file defines some fields manually, as well as points to the html files used for the templates and css
- This allows models to reuse templates and css from each other
- No more defining a note model inside the recipe, which was messy
- Save a note model deck part to a yaml source file with the new
save_note_models_to_foldertask.
- This file defines some fields manually, as well as points to the html files used for the templates and css
-
New recipe task
note_models_all_from_crowd_anki- Creates deck parts for all note models in a CrowdAnki export without the need to know all their names
- Part Ids are the names of the models
- Creates deck parts for all note models in a CrowdAnki export without the need to know all their names
-
Example Note Model files (Click!)
With the Yaml containing references to the files themselves
name: PeriodicTable-d75c0
id: 11b9043c-7ef2-11ea-a6e2-9cb6d098820d
css_file: src/note_models/PeriodicTable-d75c0/style.css
sort_field_num: 2
fields:
- name: Picture
- name: Name
- name: Number
- name: Symbol
- name: Memory sentence
- name: SpecialLocation
templates:
- name: Card 1
html_file: src/note_models/PeriodicTable-d75c0/Card 1.html
- name: Card 2
html_file: src/note_models/PeriodicTable-d75c0/Card 2.html
- name: Card 3
html_file: src/note_models/PeriodicTable-d75c0/Card 3.html
- name: Card 4
html_file: src/note_models/PeriodicTable-d75c0/Card 4.htmlsave_media_groups_to_folderis now a TopLevel task, rather than a DeckPart task.- The GlobalConfig file has been removed
Install with Pip from PyPi: https://pypi.org/project/Brain-Brew/
Created with the support of my lovely Patreons.
