Skip to main content

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


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

Uploaded Source

Built Distribution

ocaclient-0.4.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ocaclient-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8e958cf2053824dc5f69d41dc06197e15a0f3b2310a35f4432e4b1cb788506b2
MD5 8e39e9a9791a1348b5234b87d91ca95f
BLAKE2b-256 7e4ffe25fbd0f8182cbc3af1bdf84460b9d1a06f9c4c25c9658636b4f8ef38a0

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ocaclient-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1a1ed66ee58a8c63ef796c3cfe525da48ed17eb54653a2ac4a2203faf13082a
MD5 91e3b9f46f65c768ac32885a3249e51b
BLAKE2b-256 c92130e0b67f3e0b507f780ba43f8206e70363361c50dcf0e752cd21b63c44c7

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page