google-workspace

Gmail, Calendar, Drive, Docs, Sheets via gws CLI or Python.

  • Google
  • Gmail
  • Calendar
  • Drive
  • Sheets
  • Docs
  • Contacts
  • Email
  • OAuth

Declared platforms: linux · macos · windows

Install
npx skills add 'https://github.com/NousResearch/hermes-agent/tree/main/skills/productivity/google-workspace'
Download bundle ↓
main · 24fd22bScanned 2026-09-15

Contributors

GitHub-linked commit authors for this SKILL.md at the saved revision. Co-authors and history before file renames are not included.

File history ↗
View on GitHub
← Back to SKILL.md
"""Resolve HERMES_HOME for standalone skill scripts. Skill scripts may run outside the Hermes process (e.g. system Python,nix env, CI) where ``hermes_constants`` is not importable.  This moduleprovides the same ``get_hermes_home()`` and ``display_hermes_home()``contracts as ``hermes_constants`` without requiring it on ``sys.path``. When ``hermes_constants`` IS available it is used directly so that anyfuture enhancements (profile resolution, Docker detection, etc.) arepicked up automatically.  The fallback path replicates the core logicfrom ``hermes_constants.py`` using only the stdlib. All scripts under ``google-workspace/scripts/`` should import from hereinstead of duplicating the ``HERMES_HOME = Path(os.getenv(...))`` pattern.""" from __future__ import annotations import osfrom pathlib import Path try:    from hermes_constants import display_hermes_home as display_hermes_home    from hermes_constants import get_hermes_home as get_hermes_homeexcept (ModuleNotFoundError, ImportError):     def get_hermes_home() -> Path:        """Return the Hermes home directory (default: ~/.hermes).         Mirrors ``hermes_constants.get_hermes_home()``."""        val = os.environ.get("HERMES_HOME", "").strip()        return Path(val) if val else Path.home() / ".hermes"     def display_hermes_home() -> str:        """Return a user-friendly ``~/``-shortened display string.         Mirrors ``hermes_constants.display_hermes_home()``."""        home = get_hermes_home()        try:            return "~/" + home.relative_to(Path.home()).as_posix()        except ValueError:            return str(home)