Python wrapper for the Netvisor API
Project description
Netvisor: Python API wrapper
============================
.. image:: https://secure.travis-ci.org/fastmonkeys/netvisor.py.png?branch=master
:target: http://travis-ci.org/fastmonkeys/netvisor.py
This is a Python wrapper for the Netvisor API.
Installation
------------
You can install netvisor with pip::
$ pip install netvisor
Usage
-----
Creating a Netvisor client::
>>> netvisor = Netvisor(
... host='http://koulutus.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 <http://github.com/fastmonkeys/netvisor.py/issues>`_
* `Code <http://github.com/fastmonkeys/netvisor.py>`_
* `Development Version <http://github.com/fastmonkeys/netvisor.py/zipball/master#egg=netvisor-dev>`_
Changelog
---------
Here you can see the full list of changes between each Unistorage release.
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.
============================
.. image:: https://secure.travis-ci.org/fastmonkeys/netvisor.py.png?branch=master
:target: http://travis-ci.org/fastmonkeys/netvisor.py
This is a Python wrapper for the Netvisor API.
Installation
------------
You can install netvisor with pip::
$ pip install netvisor
Usage
-----
Creating a Netvisor client::
>>> netvisor = Netvisor(
... host='http://koulutus.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 <http://github.com/fastmonkeys/netvisor.py/issues>`_
* `Code <http://github.com/fastmonkeys/netvisor.py>`_
* `Development Version <http://github.com/fastmonkeys/netvisor.py/zipball/master#egg=netvisor-dev>`_
Changelog
---------
Here you can see the full list of changes between each Unistorage release.
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.
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-0.3.4.tar.gz
(26.8 kB
view details)
File details
Details for the file netvisor-0.3.4.tar.gz
.
File metadata
- Download URL: netvisor-0.3.4.tar.gz
- Upload date:
- Size: 26.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86bbadd61c55c424fac2c2f03c7f0007ae2bc1a46552dcec0af7c5032fecf4a2 |
|
MD5 | ac047f8b4e10d6cf90d94edd827ff7c4 |
|
BLAKE2b-256 | 0f78c15b05b006cae89ecd757dfb2ff072e0daef35f6c7945f44038ab1cb6dc9 |