Skip to main content

Add your description here

Project description

Rotate

A CLI tool for mob programming rotations.

Usage

Create a rotation file template

5:00 / 5:00
Typing: Alice
Talking: Bob
Next: Charlie
Diana
Eva

Parse a rotation file to JSON

uv run parse.py < rotation.template

Convert JSON back to rotation file format

uv run parse.py < rotation.template | uv run parse.py format

Rotate the team

Move each team member up one position in the rotation, with the first person becoming last:

uv run rotate.py < rotation.template

You can chain multiple rotations:

uv run rotate.py < rotation.template | uv run rotate.py | uv run rotate.py

File Format

The rotation file format consists of:

  1. First line: Timer in format elapsed / total where both values are in MM:SS format
  2. Subsequent lines with colon: Position assignments in format Position: Name
  3. Remaining lines: Team members without assigned positions

Requirements

  • Python 3.12+
  • uv package manager

Hooks

The rotate tool supports hooks that are executed when specific events occur:

  1. Create a directory called .rotate/hooks/ in your project
  2. Place executable scripts in this directory with names matching the event you want to hook into
  3. Currently supported hooks:
    • expire: Executed when the timer expires or the daemon stops

Example hook script (.rotate/hooks/expire):

#!/bin/sh
# This hook opens the rotation file when the timer expires
echo "Opening rotation file..."
open rotation

Make sure to make your hook script executable:

chmod +x .rotate/hooks/expire

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

rotate_mob-0.1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

rotate_mob-0.1.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file rotate_mob-0.1.0.tar.gz.

File metadata

  • Download URL: rotate_mob-0.1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for rotate_mob-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0f445c8ee4543ac4838521c9d837ee1d6ece6efa9cd6daf722c45646c9dc828a
MD5 f3c9e104a2b9a9e36d256bc9c69a8411
BLAKE2b-256 6e1f740ad6927d8b635a13ebb9ce4096ae832759b6ef8e2b215797e0da4b8bf8

See more details on using hashes here.

File details

Details for the file rotate_mob-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rotate_mob-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d7b62b2e8b05b0785ce08722848db6b2b57b9e71f055da48c1649810d36478a
MD5 fa382ad7d924ab7111f1772cd0b1c296
BLAKE2b-256 b16b90bb48622eed180224a721d115611abaf2fb223756873944b929f1ee830c

See more details on using hashes here.

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