Metadata-Version: 2.1
Name: ocaclient
Version: 0.7.0
Summary: A very simple client for OCA's web services.
Home-page: https://github.com/WhyNotHugo/ocaclient
Author: Hugo Osvaldo Barrera
Author-email: hugo@barrera.io
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: ISC License (ISCL)
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
License-File: LICENCE

OcaClient
=========

This library is a very simple client to OCA's Epak webservice. OCA's WS is very
SOAP-like, so this is really a very light wrapper around ``zeep``, manually
parsing responses that aren't entirely SOAP.

Usage example:

.. code-block:: python

    response = OcaClient().Tarifar_Envio_Corporativo(
        PesoTotal=0.5,  # kg
        VolumenTotal=0.125,  # m³
        CodigoPostalOrigen=1414,
        CodigoPostalDestino=1111,
        CantidadPaquetes=1,
        Cuit='20-12345678-0',
        Operativa=2712345,
        ValorDeclarado=120,
    )

The ``OcaClient`` class exposes the same methods as those in the official
documentation, with the same parameters. Responses are python dictionaries, eg:

.. code-block:: python

    {
        'tarifador': '15',
        'precio': '237.7900',
        'idtiposervicio': '1',
        'ambito': 'Local',
        'plazoentrega': '3',
        'adicional': '0.0000',
        'total': '237.7900',
    }

Licence
-------

This software is licensed under the ISC licence. See LICENCE for details.

Copyright (c) 2017-2021 Hugo Osvaldo Barrera <hugo@barrera.io>


