Skip to main content

SYAK:同步SiYuan内容块到Anki, 自动更新, 自动删除

Prerequisite

  1. Anki 需要安装 AnkiConnect 插件, code 为 2055492159​, 默认端口 8765​
  2. 支持 Python 3.9 以上版本
  3. SiYuan 默认端口为 6806​

Install

pip install syak

Useage

  1. 新建一个 card​ ​文档块, 名字支持前后缀, 例如 @card​​
  2. 在需要制卡的内容块后面引用 card​ ​文档块
  3. 制卡内容块为某个容器块下的叶子块时, 卡片正面为制卡内容块, 背面为整个容器块
  4. 制卡内容块为文档块下的叶子块时, 卡片正面和背面都是制卡内容块
  5. 运行命令 syak -p SiYuan数据根路径(data目录的上一级)​ ​即可同步
  6. 查看更多选项运行 syak -h​​

DEMO

​demo​

Feature

  1. 自动更新, SiYuan更新内容块后, Anki自动更新
  2. 自动删除, 删除card​引用块, Anki自动删除
  3. 根据文档块层级自动建立 deck 层级
  4. 支持 media 文件
  5. 自动删除 empty deck

Not Support

  1. Close
  2. 代码块高亮
  3. 超级块未适配

MORE

使用带有定时运行脚本功能的软件,如Keyboard Maestro​或者Quicker​实现后台无缝同步

Metadata

Release files for syak 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for syak 0.1.3
File Size Uploaded Provenance Actions
syak-0.1.3.tar.gz 7.3 kB Without provenance Details for syak-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for syak 0.1.3
File Interpreter ABI Platform Actions
syak-0.1.3-py3-none-any.whl Python 3 none any Details for syak-0.1.3-py3-none-any.whl

Total release size: 14.7 kB

Release files / syak-0.1.3.tar.gz

Download URL syak-0.1.3.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2f51f2e0530a0b687c29495868ebcadcbd355509fc4c5a2b37bb86d1101e0368
BLAKE2b-256 checksum
How to use checksums
3df200fea14d1fc078d1078ed0031f18e944c9c0f0db5a659efea18c6e8148e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.9.5 Darwin/21.6.0

Release files / syak-0.1.3-py3-none-any.whl

Download URL syak-0.1.3-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0ab779ed9609ff1f4561e0d2bdd09770f2a51fa6b79646b566f05b1d593c25e
BLAKE2b-256 checksum
How to use checksums
2b6df1036e317056d88a2db0c9de3ef4f5cfa94cd2038ac7c285084dcef817cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.9.5 Darwin/21.6.0

Security for syak 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page