CLI wrapper for Collmex accounting API - LLM-friendly interface
Project description
collmex-cli
LLM-friendly CLI wrapper for the Collmex accounting API (Buchhaltung Pro).
Installation
# From PyPI (recommended)
uv tool install collmex-cli
# From source (development)
uv pip install -e .
Configuration
Set environment variables (or use a .env file):
export COLLMEX_CUSTOMER_ID="your_customer_id"
export COLLMEX_COMPANY_ID="1" # usually 1
export COLLMEX_USERNAME="your_username"
export COLLMEX_PASSWORD="your_password"
Usage
Test Connection
collmex test
Vendors (Lieferanten)
# List all vendors
collmex vendors
# Search vendors
collmex vendors --search "Amazon"
# Output as JSON (LLM-friendly)
collmex vendors --json
# Create a vendor
collmex vendor-create --company "New Supplier GmbH" --city "Berlin" --email "info@supplier.de"
Open Items (Offene Posten)
# List vendor open items (unpaid vendor invoices)
collmex open-items --vendor
# List customer open items
collmex open-items --customer
# Output as JSON
collmex open-items --vendor --json
Bookings (Buchungen)
# List all bookings
collmex bookings
# Filter by account
collmex bookings --account 1200
# Filter by date range
collmex bookings --from 2024-01-01 --to 2024-12-31
# Search in booking text
collmex bookings --search "Amazon"
Unmatched Bank Transactions
# Find bank transactions without matching invoices/receipts
collmex unmatched
# For a specific bank account
collmex unmatched --account 1200
# Output as JSON
collmex unmatched --json
Vendor Invoices (Lieferantenrechnungen)
# Create a vendor invoice
collmex vendor-invoice \
--vendor-id 123 \
--invoice "INV-2024-001" \
--date 2024-01-15 \
--net 100.00 \
--text "Office supplies"
LLM Integration
All commands support --json output for easy parsing by LLMs:
collmex vendors --json | jq '.[] | select(.city == "Berlin")'
Workflow: Matching Bank Transactions
- Import bank statement (MT940) via Collmex Web UI
- Find unmatched transactions:
collmex unmatched --json
- For each unmatched transaction, create vendor invoice:
collmex vendor-invoice --vendor-id 123 --invoice "INV-001" --date 2024-01-15 --net 50.00
API Coverage
Currently supported Collmex record types:
VENDOR_GET/CMXLIF- Query and create vendorsCMXLRN- Create vendor invoicesOPEN_ITEMS_GET/OPEN_ITEM- Query open itemsACCDOC_GET/ACCDOC- Query accounting documents/bookings
Development
# Install with dev dependencies
uv sync --dev
# Run tests
uv run pytest
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 collmex_cli-2026.3.8.tar.gz.
File metadata
- Download URL: collmex_cli-2026.3.8.tar.gz
- Upload date:
- Size: 84.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e70091f26dd57ae1276dbbd7a556cdafc3b865044309117d7c5986938f03cbe
|
|
| MD5 |
91028ef282d1237b62bca8f525c0e984
|
|
| BLAKE2b-256 |
a03fb164b6b5bf276a761accaf4956515d0bebc54e0e4f58b0238a421b23c055
|
Provenance
The following attestation bundles were made for collmex_cli-2026.3.8.tar.gz:
Publisher:
release.yml on cognovis/collmex-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
collmex_cli-2026.3.8.tar.gz -
Subject digest:
7e70091f26dd57ae1276dbbd7a556cdafc3b865044309117d7c5986938f03cbe - Sigstore transparency entry: 1047481872
- Sigstore integration time:
-
Permalink:
cognovis/collmex-cli@fa097bfce558b8b7fb342f880ec63badb3ac1ebb -
Branch / Tag:
refs/tags/v2026.03.8 - Owner: https://github.com/cognovis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fa097bfce558b8b7fb342f880ec63badb3ac1ebb -
Trigger Event:
push
-
Statement type:
File details
Details for the file collmex_cli-2026.3.8-py3-none-any.whl.
File metadata
- Download URL: collmex_cli-2026.3.8-py3-none-any.whl
- Upload date:
- Size: 42.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c2c4663cd3a8596bb4c18fe0e73e3cf9e98f82d4f57afaa64a3d0cb72d5a690
|
|
| MD5 |
7a9d3cfb5e31513520ce5c7d14ac73c1
|
|
| BLAKE2b-256 |
aefede1a8c46f28a2c246d6e325a9893ed45bf04c8e32aa38d75161c6876eabf
|
Provenance
The following attestation bundles were made for collmex_cli-2026.3.8-py3-none-any.whl:
Publisher:
release.yml on cognovis/collmex-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
collmex_cli-2026.3.8-py3-none-any.whl -
Subject digest:
3c2c4663cd3a8596bb4c18fe0e73e3cf9e98f82d4f57afaa64a3d0cb72d5a690 - Sigstore transparency entry: 1047481877
- Sigstore integration time:
-
Permalink:
cognovis/collmex-cli@fa097bfce558b8b7fb342f880ec63badb3ac1ebb -
Branch / Tag:
refs/tags/v2026.03.8 - Owner: https://github.com/cognovis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fa097bfce558b8b7fb342f880ec63badb3ac1ebb -
Trigger Event:
push
-
Statement type: