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-2023 Hugo Osvaldo Barrera <hugo@barrera.io>
Metadata
Release files for ocaclient 0.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ocaclient-0.8.1.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ocaclient-0.8.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / ocaclient-0.8.1.tar.gz
| Download URL | ocaclient-0.8.1.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f231cf30d7144c938583d35626280ff22525f0fafa0bbb6228d43a910802107
|
|
BLAKE2b-256 checksum How to use checksums |
a41540a565c76f8e46e28066bf5fc384fe2957ffa4bc1056a8d826643cbbdab0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / ocaclient-0.8.1-py3-none-any.whl
| Download URL | ocaclient-0.8.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f609121afd62460474d468e04f4ed0cca6c2a5623859221f8e403ee95424a809
|
|
BLAKE2b-256 checksum How to use checksums |
292613664b7ed6dc926a9373d0cee0e9bb49f6448a92b723853fec6992435954
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|