Command-line interface for Kolay IK (https://apidocs.kolayik.com)
Project description
kolay-cli
+************
+*+ **+
+*+ +*+ %% #%%
+*+ +*+ %% *#* #%%# #%% #%%#*#*+** **+
+**+ +*+ %% #%%* %%%##%%% #%% %%%#*%%%% %%# #%%
**+ +**+ %%%%# %%# %%##%%#%% %%% %%##%%#
+*+ +*++*+ %%#%%# %%% %%##%%*%% #%% %%%%#
+*+ ** +*+ %% #%% *%%%%%%# #%% #%%%%%%%% *%%%
+*+** **+ #%%
+************ #%%%
A command-line interface for the Kolay IK API. Manage employees, leaves, transactions, calendar events, and more — from your terminal.
Installation
pipx install kolay-cli
Or with pip:
pip install kolay-cli
Recommended: Use
pipxto install CLI tools in isolated environments.
Getting Started
kolay auth login
You will be prompted to enter your Kolay API token. The token is stored at ~/.config/kolay/config.json with 0600 permissions (read/write for owner only).
Verify your session at any time:
kolay auth status
kolay auth me
Commands
auth
| Command | Description |
|---|---|
kolay auth login |
Save and verify your API token |
kolay auth status |
Show current login status and user name |
kolay auth me |
Show your full profile |
person
| Command | Description |
|---|---|
kolay person list |
List employees (default: active) |
kolay person list --status inactive |
List terminated employees |
kolay person list --search "ali" |
Search by name or email |
kolay person view <id> |
View full profile of an employee |
kolay person summary <id> |
View summary of an employee |
kolay person leave-status <id> |
View leave balances |
kolay person update <id> |
Update employee profile fields |
kolay person terminate <id> |
Terminate an employee with reason code |
leave
| Command | Description |
|---|---|
kolay leave list |
List approved leaves for this year |
kolay leave list --status waiting |
List pending leave requests |
kolay leave list --person-id <id> |
Filter by employee |
kolay leave view <id> |
View a specific leave record |
kolay leave create |
Create a new leave request (interactive) |
transaction
| Command | Description |
|---|---|
kolay transaction list |
List all transactions |
kolay transaction list --type bonus |
Filter by type |
kolay transaction list --status waiting |
Filter by approval status |
kolay transaction view <id> |
View a specific transaction |
kolay transaction create |
Create a new transaction |
kolay transaction delete <id> |
Delete a transaction (with confirmation) |
Supported transaction types: advancePayment, overtime, bonus, premium, otherCut, militaryBenefit, nationalHolidayBenefit, fuelAllowanceBenefit
calendar
| Command | Description |
|---|---|
kolay calendar list |
List events for the next 30 days |
kolay calendar list --start 2026-01-01 --end 2026-12-31 |
List events in a date range |
kolay calendar list --search "meeting" |
Search events by title |
kolay calendar view <id> |
View a specific event |
kolay calendar create |
Create a new event (interactive) |
kolay calendar update <id> |
Update an event (prefills current values) |
kolay calendar delete <id> |
Delete an event (with confirmation) |
Configuration
API Token
Set via interactive login:
kolay auth login
Or via environment variable (takes precedence over the config file):
export KOLAY_API_TOKEN=your_token_here
Base URL
The default API base URL is https://api.kolayik.com. Override if needed:
export KOLAY_BASE_URL=https://custom.domain.com
The base URL must use HTTPS. HTTP is rejected to prevent credential exposure.
Config File
Tokens are stored at:
~/.config/kolay/config.json
File permissions are set to 0600 on creation (owner read/write only).
Security
- All API communication uses HTTPS with a verified TLS connection.
- The API token is stored with restricted file permissions (
0600). - The
KOLAY_API_TOKENenvironment variable overrides the file and is never written to disk. - All requests include a 30-second timeout.
- Error messages from the API are translated to English and sanitised before display.
Development
git clone https://github.com/ezapmar/kolay-cli
cd kolay-cli
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
kolay --version
Run security audit:
pip install bandit
bandit -r src/
License
MIT — see LICENSE.
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kolay_cli-0.6.0.tar.gz.
File metadata
- Download URL: kolay_cli-0.6.0.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
400cc7e80f002575e935dc996936aba84f5d525c933642826fe80b684739169a
|
|
| MD5 |
7f7ae57102192c8dd22e3a173eb8eb92
|
|
| BLAKE2b-256 |
3fcb8808a4c6854d95b9e70e993e8c45a7d410bcd1f4a1c367d6c05a1f4df347
|
File details
Details for the file kolay_cli-0.6.0-py3-none-any.whl.
File metadata
- Download URL: kolay_cli-0.6.0-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20a964d76e69538211573e3e4653818c5b32ba09840c6b228bf71e72f0d23062
|
|
| MD5 |
10c7366ced55c77828c2bc14f478c310
|
|
| BLAKE2b-256 |
8259c9ef37a24767b12edf40c38af6ef72ea710bb0276e901b4e8f00665bc67d
|