# Netvisor: Python API client
Project description
Netvisor: Python API client
Python client for the Netvisor API.
Installation
You can install netvisor with pip::
$ pip install netvisor-api-client
Usage example
from netvisor_api_client import Netvisor
from datetime import date, timedelta
# Create a client
client = Netvisor(
host="https://isvapi.netvisor.fi",
sender="Test client",
partner_id="x",
partner_key="x",
customer_id="x",
customer_key="x",
organization_id="1967543-8",
language="EN"
)
# Get a list of sales invoices for last 14 days
invoices = client.sales_invoices.list(start_date=date.today() - timedelta(days=14), end_date=date.today())
# Get detailed information for the first invoice
invoice_details = client.sales_invoices.get(invoices[0]['netvisor_key'])
Known issues
Language
Using language other than EN
can cause failures when parsing responses containing localised boolean like values.
Example: "Yes"
and "No"
parsed to bool True
and False
fails when language is FI
from netvisor_api_client.schemas.fields import Boolean
# Current schema
match_partial_payments_by_default = Boolean(true="Yes", false="No")
# i.e. for FI this should be
match_partial_payments_by_default = Boolean(true="Kyllä", false="Ei")
Resources
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
netvisor-api-client-0.9.4.tar.gz
(43.1 kB
view hashes)
Built Distribution
Close
Hashes for netvisor-api-client-0.9.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83ef75758e7e870eaaffec64214ca92d6bad86fad2661dd69ae231d06ee20c3a |
|
MD5 | 0874a6607b4a214f9450bd27d2fada3b |
|
BLAKE2b-256 | 9e27fdf6b3a3b425fe3d0e30be56ef34716dc1577e2636983646fa5c1be75bf2 |
Close
Hashes for netvisor_api_client-0.9.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8edf91ccb10a45ebb2f6d410fab9ed71cc5c8a219c2ec36add668673e8a8e4d6 |
|
MD5 | b4102656888e541daaeaf4af5cead8bb |
|
BLAKE2b-256 | 64c76bcb7fadf6227644f03fd128853920588f457526e04fc59cf84852f20cc7 |