Skip to main content

Mendeley Watchdog pipeline-checks

Mendeley Watchdog is a command line utility that continuously watches the last modification time of a given files and writes the content to a specified file.

WARNING The contents of the specified destination file are not checked checked before they are overwritten. Therefore the contents of the destination file will always be overwritten after the first "check". All manual changes to the destination file will always be overwritten when a change to the source file was detected.

WARNING The file contents are read and written in binary mode, as of right now this behavior can not be changed. This may be changed in future versions of this software.

The motivation for this software arose from the need to be able to save BibTeX files that are managed by Mendeley Desktop to LaTeX project directories. While Mendeley does support creating BibTeX files on a per-project basis it does not allow setting specific directories to which the individual files are saved. They are all written to the same directory. This software

The first (an so far only) entry point for the software fulfills that need by making it possible to mirror one of these files to any writable destination. Since I write LaTeX using Visual Studio Code I wanted to be able to run the monitoring process whenever the workspace folder for a project is open. Luckily VS Code makes it possible to configure arbitrary tasks for a given workspace. The mendeley-watchdog entry point was designed with this use-case in mind, an exemplary task could look like this:

{
    "label": "Mirror hhn-it-systems",
    "type": "shell",
    "command": "mendeley-watchdog",
    "runOptions": {"runOn": "folderOpen"},
    "args": [
        "--mendeley-bibtex",
        "'R:\\Mendeley Library\\.bib'",
        "hhn-it-systems.bib",
        "resources/references.bib"
    ]
}

The above task launches mendeley-watchdog as soon as the containing workspace folder is opened. The task continuously mirrors the file R:\Mendeley Library\.bib\hhn-it-systems.bib as references.bib to the workspace subdirectory resources. Refer to the documentation for a more detailed explanation of the mendeley-watchdog entry point and the task.

Installation

Installing using pipx isolates packages in their own environment and exposes their entry points on PATH. This is the recommended way of installation. The above-mentioned VS Code task assumes the entry point is on PATH.

pipx install mendeley-watchdog

Alternatively install using

pip install mendeley-watchdog

Documentation

The detailed documentation for mendeley-watchdog can be found on GitHub. Be aware that the above link points to the master branch. If you're reading this on PyPI that means it might be outdated. In that case use the Documentation URL from the sidebar which should point towards the latest release docs.

Further Development

Depending on usefulness (and reception) additional functionality may be added. Ideas include:

  • enable mirroring any single file (not just bib files)
    • allow mirroring a single watched file to multiple destinations
  • enable mirroring a map of files and destinations

Feel free to open an issue if you encountered bugs or have other ideas that aren't yet listed in the backlog.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mendeley-watchdog-0.0.1.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mendeley_watchdog-0.0.1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file mendeley-watchdog-0.0.1.tar.gz.

File metadata

  • Download URL: mendeley-watchdog-0.0.1.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for mendeley-watchdog-0.0.1.tar.gz
Algorithm Hash digest
SHA256 237d5cb34130151bb3ee21a48414bf3dfc58f59ff6f74a47eb6b29725f63938d
MD5 4ede6777bc3d3b81970c4be4d8b09348
BLAKE2b-256 9fd1c42f67cc04c6d56732adfbbc93e85ad7098fe3e66587a45e5e2dc0be185b

See more details on using hashes here.

File details

Details for the file mendeley_watchdog-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: mendeley_watchdog-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for mendeley_watchdog-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 29ee218e88c940b558caa00d9951867fadcf11495304dcea4f1f32fb3e75714a
MD5 110f0b7bc4505d0dbe50f8bc0e89445a
BLAKE2b-256 ea9ef2ca8364f5c6c39b996b1f02ce08f25af3350e24259080d1cac92c29d69c

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.2

2 files

This release

0.0.1 This release

2 files

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