A very simple client for OCA's web services.
Project description
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:
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:
{
'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 Hugo Osvaldo Barrera <hugo@barrera.io>
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
ocaclient-0.3.1.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for ocaclient-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c9a3cc55dfc223ac8f07328f78a638d403d391038f7793ad93206ed2c839546 |
|
MD5 | d73cb9f88bd9407384a8063bd1a3fa54 |
|
BLAKE2b-256 | 8705f1cc41b9dc8d310aaa49ccd6f9eb8ae1b4b6d62ab5da99c7e320905137f1 |