Skip to main content

A python wrapper around the lexoffice api.

Project description

lexoffice_py

lexoffice_py is a python wrapper around the Lexoffice API. The goals is to provide an easy to use interface for all Lexoffice API endpoints. It handles pagination, rate limiting, errors. Most information needed is available via docstrings, for further details please refer to the Lexoffice API docs.

>>> from client import Lexoffice
>>> Lex = Lexoffice(client_secret='***')
>>> voucherlist = Lexoffice.get_voucherlist(voucher_type='invoice', voucher_status='open', voucher_date_from='2024-01-01')
>>> len(voucherlist)
1204
>>> voucherlist[0]
{
  "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "voucherType": "invoice",
  "voucherStatus": "open",
  "voucherNumber": "INV1234",
  "voucherDate": "2024-09-05T00:00:00.000+02:00",
  "createdDate": "2024-09-05T09:20:09.000+02:00",
  "updatedDate": "2024-09-05T09:32:59.000+02:00",
  "dueDate": "2024-09-15T00:00:00.000+02:00",
  "contactName": "COMPANY NAME",
  "totalAmount": 10000.0,
  "openAmount": 10000.0,
  "currency": "EUR",
  "archived": false
}

If something appears to be broken, please have a look at the open issues and vote for an existing issue or create a new one, if you can't find an issue that describes your problem.

Features

  • Aims to cover all functions of the Lexoffice API (work in progress)
  • Allows you to get detailed information for all of your invoices (including line item information) at once. If you have you have a very large amount of invoices, you made want to solve this differently since each invoice results in one api call.
  • Python function wrappers for all API endpoints as part of the Lexoffice class
  • Support for type hints

API Functions

lexoffice_py currently only implements a subset of all available API features. This section gives an overview over which API endpoints are accessible through lexoffice_py.

Available

  • GET Voucherlist
  • GET Articles
  • GET Contacts
  • GET Invoices

Not yet (fully) implemented

  • Contacts

  • Countries

  • Credit Notes

  • Delivery Notes

  • Dunnings

  • Down Payment Invoices

  • Event Subscriptions

  • Files

  • Invoices

  • Order Confirmations

  • Payments

  • Payment Conditions

  • Posting Categories

  • Print Layouts

  • Profile

  • Quotations

  • Recurring Templates

  • Voucherlist

  • Vouchers

  • POST Endpoints in general

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

lexoffice_py-0.0.2.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.

lexoffice_py-0.0.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file lexoffice_py-0.0.2.tar.gz.

File metadata

  • Download URL: lexoffice_py-0.0.2.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for lexoffice_py-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6e256138b5d471a2c77eafcaba5c7b9ba35f9d0e686fcf16ec06911da0d7f2dc
MD5 5d7ac14fb8c09bd93ed56cc0463877af
BLAKE2b-256 2ef4d3263144fcc52053e29117bda4f7a9cb785e3a7d89f730d70d363cbc4f60

See more details on using hashes here.

File details

Details for the file lexoffice_py-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: lexoffice_py-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for lexoffice_py-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4e2ba3b3c61d3ebcbfb2df1335c8419fbae13ff029d4e1f0d67a877dcd1067e4
MD5 c06c3e9f6edbdfe240e7770f086f54df
BLAKE2b-256 aa7b57f68eecd99f7e9dd9603ccddfb9587a224345fba3a6053199214b49ed0b

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