Skip to main content

her-sync

Linux-native Sync-Tool für Agent-Share-Filesysteme (BDE, Email, CalDAV).
CLI-Befehl: her

Installation

pipx install "her-sync[watch]"

Aus Git:

pipx install --force "git+https://gitea.example.com/you/her-sync@main#egg=her-sync[watch]"

Entwicklung: pip install -e ".[watch,dev]"

Dev im Repo (Share unter ./share)

Profil liegt versioniert unter config/her/profiles/dev/ — reines YAML, kein .env.

cp config/her/profiles/dev/local.yml.example config/her/profiles/dev/local.yml
./scripts/dev-her status

profile.yml setzt share: share → Repo-share/ (via HER_REPO_ROOT, den dev-her setzt). Unterhalb davon liegen Exporte (inbox/calendar, inbox/emails, …). files.collections.source: docs bedeutet share/docs.

Filter (E-Mail, Kalender) stehen inline in mail.yml / calendar.yml — nicht die email_filters.yaml / calendar_filters.yaml im Repo-Root (die sind Legacy für migrate-env).

Maschinenspezifisch (Betterbird-Pfad, CalDAV-URL): local.yml (gitignored).

Produktion: ~/.her/profiles/bde-work/ mit absolutem share: — ohne --config-dir.

Konfiguration

~/.her/

~/.her/
├── config.yml
├── profiles/bde-work/
│   ├── profile.yml       # share, event_handlers
│   ├── crm.yml           # bde: { ... }   (CRM/BDE-API)
│   ├── mail.yml          # email: { ... }
│   ├── calendar.yml      # caldav: { ... }
│   ├── files.yml         # files: { collections: [...] }
│   └── local.yml         # optional: Overrides (alphabetisch später = gewinnt)
├── state/bde-work/
└── share-bde/            # optional — Share kann auch woanders liegen

Alle .yml-Dateien im Profilordner werden alphabetisch geladen und deep-gemergt. Welches Plugin aktiv ist, ergibt sich nur aus dem YAML-Key (bde:, email:, caldav:, files:) — der Dateiname spielt keine Rolle. Fehlender Key = Plugin deaktiviert.

# profile.yml — Querverdrahtung zwischen Plugins
event_handlers:
  email:
    changed:
      debounce_seconds: 10
      handlers:
        - email: { command: sync }
        - caldav: { command: sync }

# local.yml — optional, überschreibt Teile aus calendar.yml o.ä.
caldav:
  months_past: 6
her profile init bde-work
her profile migrate-env --env-file .env --name bde-work
her secrets set bde-work/bde-password
her --profile bde-work status

CLI

her profile list|show|init|migrate-env|validate
her secrets set|delete|test
her daemon run|start|stop|status
her status

her bde collect cashflows
her bde collect cashflow-history --force
her bde apply cost-centers --dry-run

her files copy                 # konfigurierte Sammlungen anzeigen
her files copy receipts        # eine Sammlung kopieren
her files copy all             # alle Sammlungen kopieren
her files move receipts        # verschieben statt kopieren

her email sync
her caldav ls
her caldav sync

Files-Plugin

Generisches Kopieren von Quellordnern ins Share-FS. Jede Sammlung definiert source, dest (relativ zum Share-Root oder absolut), optionale allow/deny-Glob-Muster Standard: Unterordnerstruktur bleibt erhalten (flat: false). Mit flat: true nur der Dateiname ins Ziel (ohne Unterverzeichnisse).

files:
  enabled: true
  collections:
    - name: receipts
      source: ~/Documents/Belege/incoming
      dest: inbox/receipts
      flat: true
      allow: ["*.pdf", "*.png", "*.jpg"]
      deny: ["*.tmp", "archiv/**"]

Paketstruktur

src/her_sync/
├── cli.py, profile.py, runtime.py, config.py   # Root: CLI + Profile + Facade
├── share_fs/layout.py                          # Share-Pfade (Agent-Vertrag)
├── io/paths.py                                 # Shared Pfad-Hilfen
├── events/                                     # Event-Orchestrierung (Daemon)
└── plugins/
    ├── bde/          # CRM: api/, collect/, apply/, schemas, config
    ├── files/        # Datei copy/move, config, collections
    ├── email/        # Mail-Sync (mbox/msf), filters, watcher
    └── caldav/       # Kalender-Sync, client, filters

Daemon

Start/Stop/Autostart laufen über systemd user — die Unit wird beim ersten her daemon start automatisch installiert (kein separates Install-Skript nötig).

her daemon start --profile bde-work              # starten
her daemon start --profile bde-work --autostart  # + Autostart beim Login
her daemon stop --profile bde-work
her daemon enable --profile bde-work           # nur Autostart an
her daemon disable --profile bde-work          # nur Autostart aus
her daemon status --profile bde-work           # Status + Log-Befehle

# Debug im Vordergrund (ohne systemd):
her daemon run --profile bde-work

Logs (Ausgabe auch bei daemon start / daemon status):

journalctl --user -u her@bde-work.service -f

Release (Repo-Checkout)

her secrets set release/her-pypi-token   # einmalig lokal
./scripts/her-release release --bump patch --pypi
pipx upgrade "her-sync[watch]"
# Falls Version nicht gefunden: python3 -m pip cache purge
#   pipx install --force --pip-args='--no-cache-dir' "her-sync[watch]"

Details: deploy/DISTRIBUTION.md

Hermes (Skills & Plugins)

Skills, Plugins und HA-Vorlagen liegen in diesem Repo (skills/, plugins/, deploy/home-assistant/).
Einmaliger Start und laufende Profile-Verwaltung: deploy/hermes-bootstrap.md

Metadata

Release files for her-sync 0.9.0

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

Source distribution (sdist)

Source distribution for her-sync 0.9.0
File Size Uploaded Provenance Actions
her_sync-0.9.0.tar.gz 101.4 kB Without provenance Details for her_sync-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for her-sync 0.9.0
File Interpreter ABI Platform Actions
her_sync-0.9.0-py3-none-any.whl Python 3 none any Details for her_sync-0.9.0-py3-none-any.whl

Total release size: 190.6 kB

Release files / her_sync-0.9.0.tar.gz

Download URL her_sync-0.9.0.tar.gz
Size 101.4 kB
Tags Source
SHA-256 checksum
How to use checksums
02775f89a7d9fad44431d15440711770f686b360083d599f814ce9300fe99adc
BLAKE2b-256 checksum
How to use checksums
8b28357427b03e3d279daeb695a2584d6590ea59f2e1d3fd8b84eb9248c85198
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / her_sync-0.9.0-py3-none-any.whl

Download URL her_sync-0.9.0-py3-none-any.whl
Size 89.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38eb6ef48c60ffcc82096caa1af8b05711caea9f80f90cf2bc4a55081c4f3f53
BLAKE2b-256 checksum
How to use checksums
7423e4c8424371be75c5f69c937294c3c4453f0792018f6e7d6bb92bfc5db020
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for her-sync 0.9.0

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