Skip to main content

Zotero attachment management tools for linked Dropbox workflows

Project description

Zotman

PyPI version License: MIT PyPI Downloads

Zotman is a CLI toolset for managing Zotero PDF attachments using linked files in a structured Cloud (default: Dropbox) folder.

It supports:

  • Automatically moving renamed PDFs from Zotero’s storage into a structured subject/year Cloud folder
  • Extracting the published year from Zotero’s database to organize PDFs
  • Cleaning up orphaned Zotero storage folders not linked to any library item

📦 Installation

pip install zotman

🚀 Usage

Move renamed Zotero PDFs

zotman move --cloud ~/Dropbox/Zotero

This will:

  • Watch ~/Zotero/storage for PDFs renamed by Zotero
  • Prompt you for a subject (e.g., AI, ML)
  • Look up the published year from zotero.sqlite
  • Move the file to:
     ~/Dropbox/Zotero/<Subject>/<Year>/Author et al. - Title.pdf
    

The --cloud option allows you to set any base folder (e.g., Dropbox, Google Drive, OneDrive). The default is ~/Dropbox/Zotero. Use --db if your Zotero database is not at ~/Zotero/zotero.sqlite.

Then, manually re-link the file in Zotero:

Right-click item → Attach Link to File…


Clean orphaned storage folders

zotman clean

This will:

  • Read zotero.sqlite
  • Identify unused subfolders in ~/Zotero/storage
  • Prompt before deletion

🧠 Why use Zotman?

Zotero stores files in random folders without year structure. Zotman helps:

  • Organize files by subject and year
  • Keep filenames clean
  • Maintain a consistent Cloud (e.g., Dropbox)-based linked file setup
  • Remove clutter from old unlinked folders

🛠 Future Plans

  • Automatic re-linking
  • Year range filters
  • GUI and batch operations

📄 License

MIT License

Project details


Download files

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

Source Distribution

zotman-0.1.2.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

zotman-0.1.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file zotman-0.1.2.tar.gz.

File metadata

  • Download URL: zotman-0.1.2.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for zotman-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ed52fa10f4836eaab1b82bd3c785bebb86b15d452878ce0cf6e1508b4e78cef2
MD5 1678c373a31adf2d134f3512b9e61e89
BLAKE2b-256 63a06c8ac46f3d3f5dcbe1cbfe92aa1aadb802d87fce4bf9a8225bd1efccea03

See more details on using hashes here.

Provenance

The following attestation bundles were made for zotman-0.1.2.tar.gz:

Publisher: python-publish.yml on biaojiang/zotero-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zotman-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: zotman-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for zotman-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8caebc0177a2c9fbb8728598ba4b4c88e82adfb6d4670277568435c1fba87399
MD5 047e409ccb1a896bf936cf096647bad1
BLAKE2b-256 ccb78d9eeca3cb11323785ced181499a881d7c1721975c17a70d8dceabec1c0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for zotman-0.1.2-py3-none-any.whl:

Publisher: python-publish.yml on biaojiang/zotero-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page