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.1.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.1-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netvisor-api-client-0.8.1.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.1.tar.gz
Algorithm Hash digest
SHA256 e532322ba1f25739911a91ad5060709a2b4fe3fd86c21b072e440fe86f8409c7
MD5 5f458e9c191571f130b0cd92e14a7328
BLAKE2b-256 0452cd5bca88a75398d8715b418b7234b4c146dd1ceeacbe933ae119d25fb032

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netvisor_api_client-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 47.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 303a4c5a0f46ac2b566f000cbf2048f88aeebc48066630fd47e5ae7c57d49134
MD5 bf929ab6016af37ee055424fa69a1d4d
BLAKE2b-256 b7adb01247257bff8cab91c887ed01127298a253db73fef1012d276b9fb9e3b1

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