zendron


Namezendron JSON
Version 1.4.1 PyPI version JSON
download
home_page
SummaryImport Zotero annotations with Dendron integration. https://github.com/Mjvolk3/Zendron
upload_time2024-02-26 03:17:27
maintainer
docs_urlNone
author
requires_python>=3.10
licenseMIT License Copyright (c) [2022] [Michael Volk] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords zotero dendron markdown notes annotations vscode
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
  <img src="https://github.com/Mjvolk3/Zendron/raw/main/notes/assets/drawio/logo.drawio.png" />
</p>

[![PyPI version](https://badge.fury.io/py/zendron.svg)](https://badge.fury.io/py/zendron)

[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/michaelvolk)

## Showcase

Here we show how `zendron` enables a writing workflow from within VsCode.

![](https://github.com/Mjvolk3/Zendron/raw/main/notes/assets/videos/gif/zendron-test_2.gif)

1. First we show how you can structure a paper using note references in Dendron.
2. Install `zendron` and import references from the relevant Zotero library.
3. Cite while you write, and view all relevant Zotero metadata, annotations, and comment notes with hover.
4. Compile paper to `.docx`, `.pdf`, and `.html` with Pandoc.
5. Find relevant papers via VsCode search.

## Introduction

- This package was developed for porting Zotero annotations and metadata to markdown. This is made possible with [pyzotero](https://pyzotero.readthedocs.io/en/latest/). These markdown notes are then brought into a [Dendron](https://www.dendron.so/) hierarchy for integration with vault notes. Zendron is designed to be used with [Visual Studio Code](https://code.visualstudio.com/) but is editor agnostic... in theory. 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. For now only a one way sync from Zotero to Dendron is supported.

## Install Instructions

- It is recommended to build a virtual environment for installation. I've used  [conda env](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html) during development.

- Install [Dendron CLI](https://wiki.dendron.so/notes/RjBkTbGuKCXJNuE4dyV6G/) this is needed for note import into Dendron.
  - [Install node js](https://nodejs.org/en/download)
    - For more information you can check out [Dendron node install instruction](https://wiki.dendron.so/notes/RjBkTbGuKCXJNuE4dyV6G/)
  - `npm install -g @dendronhq/dendron-cli@0.119.0`
    - I use the global flag, but you can alternativley install a specific version for a given workspace.
    - Newer version are not working, waiting on any response to [github issue](https://github.com/dendronhq/dendron/issues/3976)
- Install the zendron
  - `python -m pip install zendron`

## Zotero Local Setup

- To start you need [Better BibTeX for Zotero](https://retorque.re/zotero-better-bibtex/installation/)
  - This allows pinning of bibtex keys. A stable bibtex key is necessary for predictable behavior within `zendron.`
- Go to `Zotero > Settings... > Advanced > General > Config Editor`![](https://github.com/Mjvolk3/Zendron/raw/main/notes/assets/images/zendron.citation-key.md.zotero-config-editor.png)
- Accept the risks.
![](https://github.com/Mjvolk3/Zendron/raw/main/notes/assets/images/zendron.citation-key.md.zotero-config-editor-accept-risks.png)
- In the Search, type `autoPinDelay` and change the integer value from 0 (default) to 1. Click OK.
![](https://github.com/Mjvolk3/Zendron/raw/main/notes/assets/images/zendron.citation-key.md.autoPinDelay-update.png)
- This will automatically pin any new publications coming into your zotero database. For previous citations that are not yet pinned, you can highlight all metadata, right click and select `Better BibTex > Pin BibTeX key`. This will make your entries compatible with Zendron. This is a one time thing, after setting the `autoPinDelay`, you won't need to worry about this.

## Zotero API key

- Visit here to setup a [Zotero API key](https://www.zotero.org/settings/keys).
- We recommend setting up your Zotero API key with the following settings to allow for full functionality.
  - Personal Library
    - [x] Allow library access.
    - [x] Allow notes access.
    - [x] Allow write access.
  - Default Group Permissions
    - [x] Read/Write

![](https://github.com/Mjvolk3/Zendron/raw/main/notes/assets/images/zotero.api-key.md.zotero-api-key.png)

- This key can then be copy-pasted in the configuration file, `"config.yaml"`. You should add your key to `.gitignore` to prevent others from accessing your Zotoero database. If the key is lost you can always generate a new one.

## Basic Usage

🚨 **THE MOST IMPORTANT THING** 🚨 - When you any `zendron` command make sure that you have a clean working directory. Meaning run `git status`, and make sure there are no untracked files or files to commit. This makes it very easy to revert modifications made by `zendron` while we still work out the kinks.

There is 1 command, and 3 optional flags.

- `zendron`
  - This command should only be run in the root directory of the workspace.
  - This command imports notes according to a defined [config.yaml](https://github.com/Mjvolk3/Zendron/raw/main/conf/config.yaml). Once the command is run the first time the user needs to modify their configuration `./conf/zendron/config.yaml`. All required configs are marked with a comment `# STARTER CONFIG` upon initialization.
  - 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. Additional notes taken within the meta data file (`notes/zendron.import.<paper-title>.md`), or the `*.annotations.md` will be overwritten after running `zendron -rm` or `zendron -nc`. All files downstream of `.import` except `*.comments.md` should be treated as read only.
  - Upon import, notes and tags are left as stubs. To create these notes run `> Dendron: Doctor` then `createMissingLinkedNotes`. It is best practice to correct tag warnings before doing this. We warn on malformed tag imports. We could reform tags and sync to Zotero if there is interest.
  - After running this command it is best to run `Dendron: Reload Index` from the command palette.
- `zendron -h` or `zendron --help`
  - Help message that shows availbe commands and suggsetions for when running `zendron`.
- `zendron -rm` or `zendron --remove`
  - ⚠️ This command removes imported notes and associated links. This command works by removing all notes downstream to `dendron_limb`. There is some difficulty removing other files created because these are separate from the `dendron_limb`. These files include `user.*.md`, which comes from bibtex keys, and `tags.*.md` which come from metadata and annotation tags. For now, we don't remove tags, but we do remove bibex keys (`<user.bibtex_key>.md`).
  - ⚠️I have to say it again, don't put other notes downstream of the zendron limb. They will be deleted.
  - We don't delete imported tags because they are too difficult to track consistently.
- `zendron -drm` or `zendron --dry-remove`
  - A dry removal so you can see what file will be deleted without deleting them.
- `zendron -nc` or `zendron --no-cache`
  - This is zendron sync without caching. This good to run if you interrupted your import for some reason and need a fresh clean import. If your zendron notes are misbehaving try this command. It will be slower since there is no caching.
  - After running this command it is best to run `Dendron: Reload Index` from the command palette.

## Zotero and File Import Configuration

All zendron configuration is handled in [config.yaml](https://github.com/Mjvolk3/Zendron/blob/main/zendron/conf/zendron/config_template.yaml). Upon initialization it will show in `"config/zendron/config.yaml"`.

```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
local_image_path: /Users/<username>/Zotero/cache # Local path for importing annotated images
```

[default.yaml](https://github.com/Mjvolk3/Zendron/blob/main/zendron/conf/zendron/config_template.yaml)

```yaml
item_types: [journalArticle, book, preprint, conferencePaper, report] # List of item types according to [pyzotero](https://pyzotero.readthedocs.io/en/latest/). Kept here for beginner simplicity.
dendron_limb: zendron.import # Dendron import limb e.g. zendron.import.paper-title.annotations.md. KEEPING here for now since hasn't been tested.
zotero_comment_title: zendron comment # needed for eventual 2-way sync. HERE for now.
pod_path: zendron_pod # Name of dendron pod, removed after completion of import. Key for non dendron user import. Not implemented yet.
```

- `library_id` - Integer identifier of library. This is the number that matches the name of a library.
  - [User ID](https://www.zotero.org/settings/keys). For a user library it you will see something like `"Your userID for use in API calls is 1234567"`
  - For group ID visit [Zotero Groups](https://www.zotero.org/groups/), click on your desired group, and copy the id from the URL. For instance I have this library. `"https://www.zotero.org/groups/4932032/zendron/library"`, and 4932032 is the `library_id`.
- `library_type`: `group` for group libraries and `user` for user library.
- `api_key`: Use the API Key obtained from [Zotero API KEY](README.md#zotero-api-key).
- `collection`: This can be the name of any collection or subcollection in the specificed library. If there are multiple collections or sub collections with the same name, the import will arbitrarily choose one. To make sure you are importing the desired collection, make sure the name of the collection is unique in the Zotero library. Subcollections of a collection will not be imported, this is by design according to how zotero handles subcollections and collections.
- `item_types`: Zotero item types to import according to [pyzotero](https://pyzotero.readthedocs.io/en/latest/) syntax.
`local_image_path`: Path to annotated images. `/Users/<username>/Zotero/cache` is the default path on MacOS. It just needs to end in `cache`.
- `dendron_limb`: This is the period deliminated hierarchy prefix to all file imports for Dendron, e.g. `root.zotero.import.<paper_title>.annotations.md`.
- `pod_path` - pod path for dendron import. Should not need to change. Will likely remove from configuration later so it doesn't get accidentally changed.
- `zotero comment title` - IGNORE FOR NOW. Eventually needed for 2-way sync.

## Import Structure

When a paper is uploaded it will look something like this in your dendron graph.

![](https://github.com/Mjvolk3/Zendron/raw/main/notes/assets/images/README.md.Import-paper-graph.png)

Comments notes are synced back to zotero after running `zendron`. They are stored in a file called `zendron_comments` in the note data. After removing all data and running `zendron` again the comments created previously in a local workspace should be imported again. This allows for comments to be easily ported accross projects that reference the same papers.

Comments notes are intended to be used for reference to any annotations under a Zotero item's metadata. This will preserve dendron linking with two-way sync.

## Supplementary import

We support import of supplementary pdfs if they have any of the following prefixes in their pdf title. This can be easily edited within Zotero. We can move this to configuration if custom naming is desired.

```python
["supp",
"Supp",
"supplementary",
"supp.",
"supplementary-material",
"supplementary-materials",
"sup",
"SI",
"si",]
```

## Miscellaneous

- The `zendron_cache` is used for remove of `<user.bibtex_key>.md`. If it is deleted and you run remove, the `<user.bibtex_key>.md` will not be removed. In this case you can run `zendron` again, then run the `zendron remove=true` again.
- If there are run that fail, sometimes a `.hydra` with the given configuraiton will be generated in the root dir. This isn't an issue but it contains the API information and should therefore be added to the `.gitignore` as a safeguard. In addition these files can be used to inspect the reason for the faiure.
- `__main__.log` is generated after running a `zendron`, this can also be deleted as you please. It is also useful for inspecting an failures to import.

## Issues, Troubleshooting, Pull Requests

- If you are having trouble with startup you can use this [Zendron-Test](https://github.com/Mjvolk3/Zendron-Test) template and try to reproduce your issues here. Simply click on `Use this template`, clone the repo and try to run `zendron` here. This will allow for us to catch things we overlooked for different user workspace configuration etc. Once you have tried to reproduce issues here please submit an issue on [Zendron](https://github.com/Mjvolk3/Zendron) linking to your minimal example.

## Common Errors

A list of common errors and quick fixes to address them.

### Error - DendronError: vault with name your-vault-name not found

```bash
DendronError: vault with name <your-vault-name> not found
```

### Fix - DendronError: vault with name your-vault-name not found

This indicates that the vault name in `dendron.yml` was not set.

For example,

```yaml
workspace:
  vaults:
    -
      fsPath: .
      selfContained: true
      name: Zendron
```

### Error - You see a Dendron Pod in your Workspace

- Dendron Pod
  - A Dendron Pod is used for import according to `pod_path` in the `config.yaml`. This dir structure is normally deleted to allow for future importing. If you see it, something is wrong. Create an issue on GitHub, or delete the dir and retry the steps above.

### Fix - You see a Dendron Pod in your Workspace

Delete the pod and rerun zendron to complete. If there is an additional error please report it.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "zendron",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "Zotero,Dendron,Markdown,Notes,Annotations,VSCode",
    "author": "",
    "author_email": "Michael Volk <michaeljvolk7@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/05/98/cb408fc82f71cc9b1368123a48defd8d5043692f54a0aeb275a724179938/zendron-1.4.1.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n  <img src=\"https://github.com/Mjvolk3/Zendron/raw/main/notes/assets/drawio/logo.drawio.png\" />\n</p>\n\n[![PyPI version](https://badge.fury.io/py/zendron.svg)](https://badge.fury.io/py/zendron)\n\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/michaelvolk)\n\n## Showcase\n\nHere we show how `zendron` enables a writing workflow from within VsCode.\n\n![](https://github.com/Mjvolk3/Zendron/raw/main/notes/assets/videos/gif/zendron-test_2.gif)\n\n1. First we show how you can structure a paper using note references in Dendron.\n2. Install `zendron` and import references from the relevant Zotero library.\n3. Cite while you write, and view all relevant Zotero metadata, annotations, and comment notes with hover.\n4. Compile paper to `.docx`, `.pdf`, and `.html` with Pandoc.\n5. Find relevant papers via VsCode search.\n\n## Introduction\n\n- This package was developed for porting Zotero annotations and metadata to markdown. This is made possible with [pyzotero](https://pyzotero.readthedocs.io/en/latest/). These markdown notes are then brought into a [Dendron](https://www.dendron.so/) hierarchy for integration with vault notes. Zendron is designed to be used with [Visual Studio Code](https://code.visualstudio.com/) but is editor agnostic... in theory. 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. For now only a one way sync from Zotero to Dendron is supported.\n\n## Install Instructions\n\n- It is recommended to build a virtual environment for installation. I've used  [conda env](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html) during development.\n\n- Install [Dendron CLI](https://wiki.dendron.so/notes/RjBkTbGuKCXJNuE4dyV6G/) this is needed for note import into Dendron.\n  - [Install node js](https://nodejs.org/en/download)\n    - For more information you can check out [Dendron node install instruction](https://wiki.dendron.so/notes/RjBkTbGuKCXJNuE4dyV6G/)\n  - `npm install -g @dendronhq/dendron-cli@0.119.0`\n    - I use the global flag, but you can alternativley install a specific version for a given workspace.\n    - Newer version are not working, waiting on any response to [github issue](https://github.com/dendronhq/dendron/issues/3976)\n- Install the zendron\n  - `python -m pip install zendron`\n\n## Zotero Local Setup\n\n- To start you need [Better BibTeX for Zotero](https://retorque.re/zotero-better-bibtex/installation/)\n  - This allows pinning of bibtex keys. A stable bibtex key is necessary for predictable behavior within `zendron.`\n- Go to `Zotero > Settings... > Advanced > General > Config Editor`![](https://github.com/Mjvolk3/Zendron/raw/main/notes/assets/images/zendron.citation-key.md.zotero-config-editor.png)\n- Accept the risks.\n![](https://github.com/Mjvolk3/Zendron/raw/main/notes/assets/images/zendron.citation-key.md.zotero-config-editor-accept-risks.png)\n- In the Search, type `autoPinDelay` and change the integer value from 0 (default) to 1. Click OK.\n![](https://github.com/Mjvolk3/Zendron/raw/main/notes/assets/images/zendron.citation-key.md.autoPinDelay-update.png)\n- This will automatically pin any new publications coming into your zotero database. For previous citations that are not yet pinned, you can highlight all metadata, right click and select `Better BibTex > Pin BibTeX key`. This will make your entries compatible with Zendron. This is a one time thing, after setting the `autoPinDelay`, you won't need to worry about this.\n\n## Zotero API key\n\n- Visit here to setup a [Zotero API key](https://www.zotero.org/settings/keys).\n- We recommend setting up your Zotero API key with the following settings to allow for full functionality.\n  - Personal Library\n    - [x] Allow library access.\n    - [x] Allow notes access.\n    - [x] Allow write access.\n  - Default Group Permissions\n    - [x] Read/Write\n\n![](https://github.com/Mjvolk3/Zendron/raw/main/notes/assets/images/zotero.api-key.md.zotero-api-key.png)\n\n- This key can then be copy-pasted in the configuration file, `\"config.yaml\"`. You should add your key to `.gitignore` to prevent others from accessing your Zotoero database. If the key is lost you can always generate a new one.\n\n## Basic Usage\n\n\ud83d\udea8 **THE MOST IMPORTANT THING** \ud83d\udea8 - When you any `zendron` command make sure that you have a clean working directory. Meaning run `git status`, and make sure there are no untracked files or files to commit. This makes it very easy to revert modifications made by `zendron` while we still work out the kinks.\n\nThere is 1 command, and 3 optional flags.\n\n- `zendron`\n  - This command should only be run in the root directory of the workspace.\n  - This command imports notes according to a defined [config.yaml](https://github.com/Mjvolk3/Zendron/raw/main/conf/config.yaml). Once the command is run the first time the user needs to modify their configuration `./conf/zendron/config.yaml`. All required configs are marked with a comment `# STARTER CONFIG` upon initialization.\n  - 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. Additional notes taken within the meta data file (`notes/zendron.import.<paper-title>.md`), or the `*.annotations.md` will be overwritten after running `zendron -rm` or `zendron -nc`. All files downstream of `.import` except `*.comments.md` should be treated as read only.\n  - Upon import, notes and tags are left as stubs. To create these notes run `> Dendron: Doctor` then `createMissingLinkedNotes`. It is best practice to correct tag warnings before doing this. We warn on malformed tag imports. We could reform tags and sync to Zotero if there is interest.\n  - After running this command it is best to run `Dendron: Reload Index` from the command palette.\n- `zendron -h` or `zendron --help`\n  - Help message that shows availbe commands and suggsetions for when running `zendron`.\n- `zendron -rm` or `zendron --remove`\n  - \u26a0\ufe0f This command removes imported notes and associated links. This command works by removing all notes downstream to `dendron_limb`. There is some difficulty removing other files created because these are separate from the `dendron_limb`. These files include `user.*.md`, which comes from bibtex keys, and `tags.*.md` which come from metadata and annotation tags. For now, we don't remove tags, but we do remove bibex keys (`<user.bibtex_key>.md`).\n  - \u26a0\ufe0fI have to say it again, don't put other notes downstream of the zendron limb. They will be deleted.\n  - We don't delete imported tags because they are too difficult to track consistently.\n- `zendron -drm` or `zendron --dry-remove`\n  - A dry removal so you can see what file will be deleted without deleting them.\n- `zendron -nc` or `zendron --no-cache`\n  - This is zendron sync without caching. This good to run if you interrupted your import for some reason and need a fresh clean import. If your zendron notes are misbehaving try this command. It will be slower since there is no caching.\n  - After running this command it is best to run `Dendron: Reload Index` from the command palette.\n\n## Zotero and File Import Configuration\n\nAll zendron configuration is handled in [config.yaml](https://github.com/Mjvolk3/Zendron/blob/main/zendron/conf/zendron/config_template.yaml). Upon initialization it will show in `\"config/zendron/config.yaml\"`.\n\n```yml\nlibrary_id : 4932032 # Zotero library ID\nlibrary_type : group # [user, group] library\napi_key : FoCauOvWMlNdYmpYuY5JplTw # Zotero API key\ncollection: null # Name of Zotero Collection, null for entire library\nlocal_image_path: /Users/<username>/Zotero/cache # Local path for importing annotated images\n```\n\n[default.yaml](https://github.com/Mjvolk3/Zendron/blob/main/zendron/conf/zendron/config_template.yaml)\n\n```yaml\nitem_types: [journalArticle, book, preprint, conferencePaper, report] # List of item types according to [pyzotero](https://pyzotero.readthedocs.io/en/latest/). Kept here for beginner simplicity.\ndendron_limb: zendron.import # Dendron import limb e.g. zendron.import.paper-title.annotations.md. KEEPING here for now since hasn't been tested.\nzotero_comment_title: zendron comment # needed for eventual 2-way sync. HERE for now.\npod_path: zendron_pod # Name of dendron pod, removed after completion of import. Key for non dendron user import. Not implemented yet.\n```\n\n- `library_id` - Integer identifier of library. This is the number that matches the name of a library.\n  - [User ID](https://www.zotero.org/settings/keys). For a user library it you will see something like `\"Your userID for use in API calls is 1234567\"`\n  - For group ID visit [Zotero Groups](https://www.zotero.org/groups/), click on your desired group, and copy the id from the URL. For instance I have this library. `\"https://www.zotero.org/groups/4932032/zendron/library\"`, and 4932032 is the `library_id`.\n- `library_type`: `group` for group libraries and `user` for user library.\n- `api_key`: Use the API Key obtained from [Zotero API KEY](README.md#zotero-api-key).\n- `collection`: This can be the name of any collection or subcollection in the specificed library. If there are multiple collections or sub collections with the same name, the import will arbitrarily choose one. To make sure you are importing the desired collection, make sure the name of the collection is unique in the Zotero library. Subcollections of a collection will not be imported, this is by design according to how zotero handles subcollections and collections.\n- `item_types`: Zotero item types to import according to [pyzotero](https://pyzotero.readthedocs.io/en/latest/) syntax.\n`local_image_path`: Path to annotated images. `/Users/<username>/Zotero/cache` is the default path on MacOS. It just needs to end in `cache`.\n- `dendron_limb`: This is the period deliminated hierarchy prefix to all file imports for Dendron, e.g. `root.zotero.import.<paper_title>.annotations.md`.\n- `pod_path` - pod path for dendron import. Should not need to change. Will likely remove from configuration later so it doesn't get accidentally changed.\n- `zotero comment title` - IGNORE FOR NOW. Eventually needed for 2-way sync.\n\n## Import Structure\n\nWhen a paper is uploaded it will look something like this in your dendron graph.\n\n![](https://github.com/Mjvolk3/Zendron/raw/main/notes/assets/images/README.md.Import-paper-graph.png)\n\nComments notes are synced back to zotero after running `zendron`. They are stored in a file called `zendron_comments` in the note data. After removing all data and running `zendron` again the comments created previously in a local workspace should be imported again. This allows for comments to be easily ported accross projects that reference the same papers.\n\nComments notes are intended to be used for reference to any annotations under a Zotero item's metadata. This will preserve dendron linking with two-way sync.\n\n## Supplementary import\n\nWe support import of supplementary pdfs if they have any of the following prefixes in their pdf title. This can be easily edited within Zotero. We can move this to configuration if custom naming is desired.\n\n```python\n[\"supp\",\n\"Supp\",\n\"supplementary\",\n\"supp.\",\n\"supplementary-material\",\n\"supplementary-materials\",\n\"sup\",\n\"SI\",\n\"si\",]\n```\n\n## Miscellaneous\n\n- The `zendron_cache` is used for remove of `<user.bibtex_key>.md`. If it is deleted and you run remove, the `<user.bibtex_key>.md` will not be removed. In this case you can run `zendron` again, then run the `zendron remove=true` again.\n- If there are run that fail, sometimes a `.hydra` with the given configuraiton will be generated in the root dir. This isn't an issue but it contains the API information and should therefore be added to the `.gitignore` as a safeguard. In addition these files can be used to inspect the reason for the faiure.\n- `__main__.log` is generated after running a `zendron`, this can also be deleted as you please. It is also useful for inspecting an failures to import.\n\n## Issues, Troubleshooting, Pull Requests\n\n- If you are having trouble with startup you can use this [Zendron-Test](https://github.com/Mjvolk3/Zendron-Test) template and try to reproduce your issues here. Simply click on `Use this template`, clone the repo and try to run `zendron` here. This will allow for us to catch things we overlooked for different user workspace configuration etc. Once you have tried to reproduce issues here please submit an issue on [Zendron](https://github.com/Mjvolk3/Zendron) linking to your minimal example.\n\n## Common Errors\n\nA list of common errors and quick fixes to address them.\n\n### Error - DendronError: vault with name your-vault-name not found\n\n```bash\nDendronError: vault with name <your-vault-name> not found\n```\n\n### Fix - DendronError: vault with name your-vault-name not found\n\nThis indicates that the vault name in `dendron.yml` was not set.\n\nFor example,\n\n```yaml\nworkspace:\n  vaults:\n    -\n      fsPath: .\n      selfContained: true\n      name: Zendron\n```\n\n### Error - You see a Dendron Pod in your Workspace\n\n- Dendron Pod\n  - A Dendron Pod is used for import according to `pod_path` in the `config.yaml`. This dir structure is normally deleted to allow for future importing. If you see it, something is wrong. Create an issue on GitHub, or delete the dir and retry the steps above.\n\n### Fix - You see a Dendron Pod in your Workspace\n\nDelete the pod and rerun zendron to complete. If there is an additional error please report it.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) [2022] [Michael Volk]  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Import Zotero annotations with Dendron integration. https://github.com/Mjvolk3/Zendron",
    "version": "1.4.1",
    "project_urls": {
        "Homepage": "https://github.com/Mjvolk3/Zendron"
    },
    "split_keywords": [
        "zotero",
        "dendron",
        "markdown",
        "notes",
        "annotations",
        "vscode"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f1cb350a9c95f8bd344eea5318f512e2de31240c16ee4876237785e2dafd7f45",
                "md5": "3cf755021b19e11b96457efd31c34f8d",
                "sha256": "a60145dd1f5f2b9c6f1f12fc8b6b473d3279fac610e95b0b889baa867e1933d1"
            },
            "downloads": -1,
            "filename": "zendron-1.4.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3cf755021b19e11b96457efd31c34f8d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 36405,
            "upload_time": "2024-02-26T03:17:26",
            "upload_time_iso_8601": "2024-02-26T03:17:26.055787Z",
            "url": "https://files.pythonhosted.org/packages/f1/cb/350a9c95f8bd344eea5318f512e2de31240c16ee4876237785e2dafd7f45/zendron-1.4.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0598cb408fc82f71cc9b1368123a48defd8d5043692f54a0aeb275a724179938",
                "md5": "a299c2e7cfc574d95ef12173030b4d4c",
                "sha256": "e719c5bd343b524f2b0a3bb854b075c69b0254402ea993964e3feb38f3d1e6bd"
            },
            "downloads": -1,
            "filename": "zendron-1.4.1.tar.gz",
            "has_sig": false,
            "md5_digest": "a299c2e7cfc574d95ef12173030b4d4c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 34164,
            "upload_time": "2024-02-26T03:17:27",
            "upload_time_iso_8601": "2024-02-26T03:17:27.499880Z",
            "url": "https://files.pythonhosted.org/packages/05/98/cb408fc82f71cc9b1368123a48defd8d5043692f54a0aeb275a724179938/zendron-1.4.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-26 03:17:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Mjvolk3",
    "github_project": "Zendron",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "zendron"
}
        
Elapsed time: 3.75008s