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>

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.2.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ocaclient-0.2.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file ocaclient-0.2.0.tar.gz.

File metadata

  • Download URL: ocaclient-0.2.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ocaclient-0.2.0.tar.gz
Algorithm Hash digest
SHA256 58d0bef7ef2ca0c74a9cfd81565ff0df22c832bb7eba657fd2ed840468fce6cb
MD5 8f98db803aefc44e62b585d05cf73a3b
BLAKE2b-256 5f69ae8c304f0a3b8e6f65003ff01eedf622697e86ee3e8bb1112ed12e37e342

See more details on using hashes here.

File details

Details for the file ocaclient-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ocaclient-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7f658df03c83576f449931c68ce8356204522b1d25c501bab96bbb7530cb898
MD5 47624b2286ff36f828b8bf82047f3506
BLAKE2b-256 dfeafd09570d68199d3509a9773b653adc2a851fb2bbaf0e657e01d9edbcda0f

See more details on using hashes here.

Release history Release notifications | RSS feed

0.8.1

2 files

0.8.0

2 files

0.7.0

2 files

0.6.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

This release

0.2.0 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page