Metadata-Version: 2.4
Name: rippling
Version: 0.2.0
Summary: Unofficial CLI for Rippling: log and review hours, request vacation, check balances, find colleagues. Not affiliated with Rippling.
Keywords: rippling,time-tracking,pto,vacation,cli,unofficial
Author: Paul-Louis Pröve
Author-email: Paul-Louis Pröve <mail@plpp.de>
License-Expression: MIT
License-File: LICENSE
Requires-Dist: curl-cffi>=0.17.0
Requires-Dist: typer>=0.27.3
Requires-Dist: tzdata ; sys_platform == 'win32'
Requires-Python: >=3.12
Description-Content-Type: text/markdown

# rippling

Unofficial command-line client for [Rippling](https://www.rippling.com): log and review working
hours, request and cancel vacation, check balances and holidays, and look up colleagues from the
terminal.

## Install

```bash
uv tool install rippling
```

`rippling login` opens Rippling in a Chromium-based browser you already have (Chrome, Edge,
Brave, Chromium or Helium). Set `RIPPLING_BROWSER` to a browser executable to pick one.

## Use

```bash
rippling login                                   # browser window: log in once, ~30 days

rippling hours log today 09:00 18:00 --break 12:00-13:00
rippling hours week                              # this week: entries, breaks, missing days
rippling hours month 2026-10

rippling leave balance --on 2027-04-01           # today's balance plus a projection
rippling leave request 2026-12-21 2026-12-23 --reason "Winter break"
rippling leave list
rippling leave cancel 1a2b3c

rippling holidays 2027
rippling people search engineering
rippling whoami
```

Every command explains itself with `--help`. Read commands take `--json` for scripts and agents.

**Writes are dry-run by default.** `hours log`, `leave request` and `leave cancel` print exactly
what they would send and ask before sending. Without a terminal (scripts, agents) they stop
after the dry-run; pass `--yes` to send.

- `hours log` sets one day: it creates the entry or replaces that day's existing one completely
  (times and breaks). It can't delete entries, and it refuses to replace entries with job codes.
- `leave request` uses the Annual Leave Policy, end date inclusive, and runs Rippling's own
  validation first. Sending notifies your approver.

**Status: early.** Reads and `hours log` are verified against the live API. `leave request`
and `leave cancel` mirror what the web app's code sends but haven't been confirmed by a live
submission yet; check the result in the web app after first use.

## How auth works

There is no public API key for employees. `rippling login` opens your browser with a separate
profile just for this tool, you log in normally, and the CLI reads the session token from the
web app over the browser's local DevTools port and stores it in
`~/.config/rippling/credentials.json` (mode 0600; override the folder with
`RIPPLING_CONFIG_DIR`). The token lasts about 30 days. The browser profile keeps your session,
so later logins are usually instant.

## Agent skill

`skills/rippling/SKILL.md` teaches coding agents to use the CLI, including the rule that
every write needs your explicit yes.

## Development

```bash
uv sync
uv run pytest
uv run ruff check src tests
```

## License

MIT. See [LICENSE](LICENSE).

## Disclaimer

Unofficial and not affiliated with Rippling. It uses Rippling's undocumented web API, which
may break at any time, and using it may violate Rippling's terms or your employer's policies.
Use at your own risk.
