Skip to main content

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>

Release files for ocaclient 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ocaclient 0.2.0
File Size Uploaded
ocaclient-0.2.0.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ocaclient 0.2.0
File Interpreter ABI Platform
ocaclient-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / ocaclient-0.2.0.tar.gz

Download URL ocaclient-0.2.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
58d0bef7ef2ca0c74a9cfd81565ff0df22c832bb7eba657fd2ed840468fce6cb
BLAKE2b-256 checksum
How to use checksums
5f69ae8c304f0a3b8e6f65003ff01eedf622697e86ee3e8bb1112ed12e37e342
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ocaclient-0.2.0-py3-none-any.whl

Download URL ocaclient-0.2.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7f658df03c83576f449931c68ce8356204522b1d25c501bab96bbb7530cb898
BLAKE2b-256 checksum
How to use checksums
dfeafd09570d68199d3509a9773b653adc2a851fb2bbaf0e657e01d9edbcda0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page