Skip to main content

Python client for Merit Aktiva API

Project description

merit-api

Python SDK for the Merit Aktiva API.

Installation

pip install merit-api

Usage

from merit_api import MeritAPI

client = MeritAPI(api_id="YOUR_API_ID", api_key="YOUR_API_KEY")

customers = client.customers.get_list()
invoices = client.sales.get_invoices(
    PeriodStart="2024-01-01",
    PeriodEnd="2024-01-31",
)

Features

  • deterministic request-body serialization for signing
  • configurable timeout and retry handling
  • request and response logging hooks with secret redaction
  • optional idempotency header generation
  • API-level business error parsing from HTTP 200 responses

Testing and method coverage report

Run tests:

pytest -q

Regenerate the method-level read/write coverage report:

python scripts_report_method_test_coverage.py

The report is written to reports/method_test_coverage.md and CI checks that this file stays up to date.

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

merit_api-0.4.4.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

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

merit_api-0.4.4-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file merit_api-0.4.4.tar.gz.

File metadata

  • Download URL: merit_api-0.4.4.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for merit_api-0.4.4.tar.gz
Algorithm Hash digest
SHA256 8a1e9258f9097d763f0604473ea19c555280483df62b29bc23877dff1c94351b
MD5 56bc02c6ae3c77fa9d4f5170791b798c
BLAKE2b-256 49336bf9d32b8b699748e57969b16f4297f4a12afd6a7689b1b9dd7d1070337c

See more details on using hashes here.

File details

Details for the file merit_api-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: merit_api-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for merit_api-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1c950f5bdd4948b682d88449ff2bf8ed6de6b5f6bd1ac9419e67ff58a820c81c
MD5 bc91886a6522cbb34c5eb5361784297c
BLAKE2b-256 55fb005e798766ec42cd3e9ad95708f27c8136ff1fd8baa6725ad06a9a12ad94

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