How milekhinav/y360_default_email_for_users works
This is a standard-library Python CLI for safely bulk-changing Yandex 360 employees’ default sender addresses. An administrator exports employees, edits the CSV, confirms a validated change plan, and the CLI applies sequential PATCH requests while recording outcomes. The README documents the workflow and modes; sampled source supports the API client, export, validation, and command entry point. Some execution details fall in omitted excerpts, so uncertain internal links are omitted.
Main entry points: default_email.py CLI orchestration
Components 13
Update workflow
- CLI orchestration
default_email.py - Token input
default_email.py - Employee export
default_email.py - CSV editing
- Plan validation
default_email.py - Change confirmation
default_email.py - Sequential updates
default_email.py
Yandex API
- API client
default_email.py - Yandex 360 API
Local artifacts
- Editable CSV
- Baseline snapshot
- Results JSONL
Other components
- Administrator
Connections 23
- Administrator → CLI orchestration: starts
- Administrator → Token input: provides token
- Token input → CLI orchestration: returns token
- CLI orchestration → Employee export: starts export
- Employee export → API client: fetches users
- API client → Yandex 360 API: GET /users
- Employee export → Editable CSV: writes
- Employee export → Baseline snapshot: writes baseline
- Administrator → CSV editing: edits
- Editable CSV → CSV editing: opened for editing
- CSV editing → Editable CSV: saves
- Administrator → CLI orchestration: signals READY
- CLI orchestration → API client: fetches current users
- API client → Yandex 360 API: GET /users
- CLI orchestration → Plan validation: checks CSV
- Editable CSV → Plan validation: reads
- Baseline snapshot → Plan validation: checks baseline
- Plan validation → Change confirmation: returns plan
- Administrator → Change confirmation: approves phrase
- Change confirmation → Sequential updates: starts updates
- Sequential updates → API client: patches employees
- API client → Yandex 360 API: PATCH user
- Sequential updates → Results JSONL: records outcomes