Import Zotero annotations with Dendron integration
Project description
Zendron
Version: 1.0.24
Introduction
- This package was developed for porting Zotero annotations and metadata to markdown. These markdown notes are then brought into a Dendron hierarchy for integration with vault notes. We recommend using the package within Visual Studio Code.The end goal is to get a two way sync between notes in Zotero and notes in Dendron, but this has some difficulties and limitations that are taking some time to address. For now only a one way sync from Zotero to Dendron is supported.
Install Instructions
- It is recommended to build a conda env for installation.
- Install Dendron CLI.
npm install -g @dendronhq/dendron-cli@latest
- Install the zendron
python -m pip install zendron
Zotero and File Import Configuration
All zendron configuration is handled in config.yml.
library_id : 4932032 # Zotero library ID
library_type : group # [user, group] library
api_key : FoCauOvWMlNdYmpYuY5JplTw # Zotero API key
collection: null # Name of Zotero Collection, null for entire library
item_types: [journalArticle, book, preprint, conferencePaper, report] # List of item types according to [pyzotero](https://pyzotero.readthedocs.io/en/latest/)
local_image_path: /Users/<username>/Zotero/cache # Local path for importing annotated images
dendron_limb: zendron.import # Dendron import limb e.g. zendron.import.paper-title.annotations.md
zotero_comment_title: zendron comment # fixed for now... needed for eventual 2-way sync.
pod_path: zotero_pod # Name of dendron pod, removed
Basic Usage
There are only two basic commands that work as of now.
zendron
- This command imports notes according to a defined config.yml. Once the command is run the first time the user needs to modify there configuration
./conf/config.yaml
according the zotero library they want to import. - Notes are imported with a
## Time Created
heading. This allows for stable reference from other notes, within the note vault. We autogenerate a*.comments.md
that should be used for taking any additional notes within Dendron. Addition notes taken within the meta data file (notes/zendron.import.<paper-title>.md
), or the*.annotations.md
will be overwritten after runningzendron
for a second time.
- This command imports notes according to a defined config.yml. Once the command is run the first time the user needs to modify there configuration
zendron remove=true
- This command removes all imported notes and associated links. We run a
createMissingLinkedNotes
following the deletion of Dendron notes to repopulatetags
andusers
that will be removed on runningzendron-remove
. - There are more complicated removal's that could be desired so we plan to eventually change this from a
bool
tostr
.
- This command removes all imported notes and associated links. We run a
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zendron-1.0.24.tar.gz
(21.5 kB
view details)
Built Distribution
zendron-1.0.24-py3-none-any.whl
(27.3 kB
view details)
File details
Details for the file zendron-1.0.24.tar.gz
.
File metadata
- Download URL: zendron-1.0.24.tar.gz
- Upload date:
- Size: 21.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54a51c665988d34cb4055c87398c0b789604a5cedac2895b91acd239b7895217 |
|
MD5 | cd01ec6d4b8137d3fa0eaca930309365 |
|
BLAKE2b-256 | cdbe5294af580f7fe3da0b6f4266eba75da2f9fe5131b8ae44c5cdf3a1f96182 |
File details
Details for the file zendron-1.0.24-py3-none-any.whl
.
File metadata
- Download URL: zendron-1.0.24-py3-none-any.whl
- Upload date:
- Size: 27.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8df253096e9a3c2bdc00eefd98cb6038a2c6b3e751a9cacca2dc01e0528089a0 |
|
MD5 | 53dab0cfc772dce29a28b9d3b46bbe35 |
|
BLAKE2b-256 | 193596eae0a7eae22e1c16bfd1087b024177d9ba1a9c16486e64b3d30c592455 |