Skip to main content

Python client for the Netvisor API

Project description

Copyright (c) 2019- Heltti Oy
Copyright (c) 2013-2016 Fast Monkeys Oy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Description-Content-Type: UNKNOWN
Description: Netvisor: Python API client
============================

This is a Python client for the Netvisor API.

Installation
------------

You can install netvisor with pip::

$ pip install netvisor-api-client

Usage
-----

Creating a Netvisor client::

>>> netvisor = Netvisor(
... host='https://isvapi.netvisor.fi'
... sender='Test client',
... partner_id='xxx_yyy',
... partner_key='E2CEBB1966C7016730C70CA92CBB93DD',
... customer_id='xx_yyyy_zz',
... customer_key='7767899D6F5FB333784A2520771E5871',
... organization_id='1967543-8',
... language='EN'
... )


Resources
---------

* `Bug Tracker <https://github.com/Heltti/netvisor-api-client/issues>`_
* `Code <https://github.com/Heltti/netvisor-api-client>`_

Changelog
---------

Here you can see the full list of changes between each Netvisor.py release.


0.8.0 (February 7th, 2019)
^^^^^^^^^^^^^^^^^^^^^^^^^^
- Added support for Invoice attachments
-


0.7.0 (September 19th, 2016)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

- Added support for getting accounting data.

0.6.0 (August 16th, 2016)
^^^^^^^^^^^^^^^^^^^^^^^^^

- Fixed compatibility with the latest version of xmltodict. Netvisor.py now
requires xmltodict >= 0.10.1.
- Added support for customer's email invoicing address.
- Fixed case problem with product's unit price type.
- Added official Python 3.5 support.

0.5.0 (November 5th, 2015)
^^^^^^^^^^^^^^^^^^^^^^^^^^

- Added support for invoice line free text field when creating a sales invoice.

0.4.0 (September 28th, 2015)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

- Updated Marshmallow requirement to >= 2.0.0.
- Added support for additional address line when creating/updating a customer.

0.3.4 (September 10th, 2015)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

- Fixed UnicodeEncodeError when making a request containing non-ASCII
characters.

0.3.3 (May 29th, 2015)
^^^^^^^^^^^^^^^^^^^^^^

- Fixed too strict validation for payment term fields returned by Netvisor API
in ``netvisor.sales_invoices.get()``.

0.3.2 (April 30th, 2015)
^^^^^^^^^^^^^^^^^^^^^^^^

- Fixed ``netvisor.sales_invoices.get()`` crashing when the
``<SalesInvoiceAmount>`` element had attributes in the XML response.
- Fixed ``netvisor.sales_invoices.get()`` crashing when any of the following
elements were empty in the XML response:

- seller identifier
- invoicing customer address line
- invoicing customer post number
- invoicing customer town
- delivery address name
- delivery address line
- delivery address post number
- delivery address town
- delivery address country code
- accounting account suggestion

- Fixed ``netvisor.sales_invoices.list()`` crashing when customer code was empty
in the XML response.
- Fixed ``netvisor.sales_invoices.list()`` crashing when invoice status had no
substatus in the XML response.

0.3.1 (April 29th, 2015)
^^^^^^^^^^^^^^^^^^^^^^^^

- Fixed ``netvisor.schemas`` package missing from the source distribution.

0.3.0 (April 29th, 2015)
^^^^^^^^^^^^^^^^^^^^^^^^

- Added official Python 3.4 support.
- Added creating and updating of customers and sales invoices.
- Changed response parsing not to rename and restructure the responses to keep
the Python API implementation simpler and more consistent with the Netvisor
API's XML responses.
- Changed response parsing to use Marshmallow.
- Changed ``Request`` to take ``params`` as a single keyword argument instead of
as named variable-length arguments.
- Fixed tests to work with responses 0.3.0.

0.2.0 (April 8th, 2014)
^^^^^^^^^^^^^^^^^^^^^^^

- Added support for InvoiceNumber and InvoicesAboveNetvisorKey parameters to
sales invoice listing.
- Changed xmltodict's dict constructor from ``OrderedDict`` to to ``dict``.
- Fixed parsing of sales invoice with multiple lines.

0.1.0 (March 26th, 2014)
^^^^^^^^^^^^^^^^^^^^^^^^

- Initial public release.

Platform: any
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Software Development :: Libraries :: Python Modules

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

netvisor-api-client-0.8.4.tar.gz (29.4 kB view details)

Uploaded Source

Built Distribution

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

netvisor_api_client-0.8.4-py3-none-any.whl (47.8 kB view details)

Uploaded Python 3

File details

Details for the file netvisor-api-client-0.8.4.tar.gz.

File metadata

  • Download URL: netvisor-api-client-0.8.4.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/36.4.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.3

File hashes

Hashes for netvisor-api-client-0.8.4.tar.gz
Algorithm Hash digest
SHA256 61f1a82e853bcd2836eaf61561eec1b8c11936c700fe27650b71294687aa6fc1
MD5 a46d5906b4c201319a93653acf9d7ff3
BLAKE2b-256 784c782d574f03b1b1c3a6de48b7f7cfa2845dca43440f6f06bd5ed167fda95c

See more details on using hashes here.

File details

Details for the file netvisor_api_client-0.8.4-py3-none-any.whl.

File metadata

  • Download URL: netvisor_api_client-0.8.4-py3-none-any.whl
  • Upload date:
  • Size: 47.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/36.4.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.3

File hashes

Hashes for netvisor_api_client-0.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e9175afa41f168677ca7132ff307a0b236b21b6fadcd864cd159792be2ed46a7
MD5 4f2e11c3a5bec5ac27b6580abb8117c9
BLAKE2b-256 8d27dfd1bb8a36d599bd4f8138e987920dca8574390884ea58611ecefcf19bc9

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