{"id":17879698,"url":"https://github.com/dtgoitia/push_second_brain_notes_to_anki","last_synced_at":"2025-04-03T01:15:02.616Z","repository":{"id":125912673,"uuid":"575837110","full_name":"dtgoitia/push_second_brain_notes_to_anki","owner":"dtgoitia","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-08T12:48:27.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T15:18:25.621Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dtgoitia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-08T12:12:30.000Z","updated_at":"2022-12-08T12:48:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"75e001e0-0d84-464a-b280-664389215034","html_url":"https://github.com/dtgoitia/push_second_brain_notes_to_anki","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtgoitia%2Fpush_second_brain_notes_to_anki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtgoitia%2Fpush_second_brain_notes_to_anki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtgoitia%2Fpush_second_brain_notes_to_anki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtgoitia%2Fpush_second_brain_notes_to_anki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dtgoitia","download_url":"https://codeload.github.com/dtgoitia/push_second_brain_notes_to_anki/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246916762,"owners_count":20854514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T12:07:10.075Z","updated_at":"2025-04-03T01:15:02.588Z","avatar_url":"https://github.com/dtgoitia.png","language":"Python","readme":"## Installation\n\n```shell\npython -m venv .venv\n. .venv/bin/activate\npip install -r requirements.txt\n```\n\n## Usage\n\n1. Start Anki.\n2. Run program:\n  ```shell\n  python -m add_and_update_note_files_to_anki \\\n    --root /second/brain/path\n  ```\n\n  The program will look for any file with the `.anki.md` extension (aka _note files_) inside the `/second/brain/path` directory, and upsert them into your Anki collection.\n\n## Key info\n\nThe _note files_ must follow this format:\n\n```txt\n---\nnote_id: 1670503224594\ndeck_name: Stuff to remember\nmodel_name: My best Note type\ntags: root_topic::subtopic\n---\n## Question\n\nTEST My Question _italic_ a\n\n## Answer\n\nMy Answer **bold** and \u003csnippet\u003efoo = \"bar\"\u003c/snippet\u003e:\n\u003cpre\u003e\ndo\nyour\nstuff\n\u003c/pre\u003e\n\n## Source\n\nNice source\n```\n\n* The H2 headers will be used as the _field names_ for the _note_ . The content below each header is used as the _field value_ for the note.\n\n* `note_id` (optional): if omitted, the program will create a new card in Anki and update the file with the ID of the newly created Note in Anki. Else, if will attempt to update an existing card, and fail if the provided `note_id` is not found in Anki.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtgoitia%2Fpush_second_brain_notes_to_anki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdtgoitia%2Fpush_second_brain_notes_to_anki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtgoitia%2Fpush_second_brain_notes_to_anki/lists"}