Skip to main content

Python client for the Kleer (PE Accounting) API

Project description

kleer-python

Python client for the Kleer (PE Accounting) API.

Kleer (formerly PE Accounting) is a Swedish accounting and invoicing platform for businesses. This library provides a convenient Python interface to their REST API.

Installation

pip install kleer-python

Usage

from kleer import KleerClient

kleer_client = KleerClient(token="your-api-token", company_id=12345)

# List clients
clients = kleer_client.clients.list()

# Get a specific client
c = kleer_client.clients.get(1)

# Create a client
new = kleer_client.clients.create({"name": "Acme Corp"})

# Update a client
kleer_client.clients.update(1, {"name": "Acme Inc"})

# Delete a client
kleer_client.clients.delete(1)

Available resources

companies, users, clients, suppliers, projects, client_projects, client_invoices, events, activities, expenses, dimensions, products, accounts, bank_accounts, bank_transactions

Development

pip install -e ".[dev]"
pytest
ruff check src/

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

kleer_python-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

kleer_python-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kleer_python-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for kleer_python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7ba4d86f4f6b7c078e32ccc97a4041d6522a35c03b9b5d0919dacbe97d15c530
MD5 1bd45eafc5222f4334e9017eb42d0d07
BLAKE2b-256 3e4b434abd8c1d49987c11f9cf9dd9542e5aeb7e7713a91316f401870999434a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kleer_python-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for kleer_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62b637849cb83b93ca2159dd720aea43560d02fe4f1734acbf1c5d99c26647c3
MD5 e93d1ff99ec747ebaefb9710c1e0d4ce
BLAKE2b-256 aa600d19f9a879bb2e83669443b42fdceef04a965ffaa1eeaa17816b33b5dc73

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