A Python CLI tool for automating Woffu API interactions to manage flexible work schedules.
-
Setup - No Dependencies Required:
# Clone the repository git clone <repository-url> cd WoffuAutomatizer # Create and activate a virtual environment (recommended) python3 -m venv venv source venv/bin/activate # Make script executable chmod +x woffu_api_cli_v2.py
-
Usage:
./woffu_api_cli_v2.py --token "your_jwt_token" [options]
Option | Description |
---|---|
--token , -t |
Required. JWT Bearer token for authentication |
--year , -y |
Year to check (defaults to current) |
--month , -m |
Month to check (defaults to current) |
--execute , -e |
Execute the generated HTTP requests |
--verbose , -v |
Enable verbose logging |
- Authenticates with Woffu API using JWT token
- Identifies flexible schedule days for the specified month
- Creates HTTP request files for each day
- Optionally executes requests to update schedules