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

Uploaded Source

Built Distribution

ocaclient-0.3.4-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ocaclient-0.3.4.tar.gz
Algorithm Hash digest
SHA256 58b905f52094a86ad0ab1c7309210fd5105f4994e0229cd0f0b322aabbe34818
MD5 5cb1a5fc0402f8c9b9c14df5b63257bc
BLAKE2b-256 e22780c80ff7fa0f514e266b3232b00f79f46a17f5f3cbed79befeb963425e70

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ocaclient-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e88aef15bd27755d877c52f50c80d20c11ecf39cbff184961e469dbf723e99c1
MD5 7a55cdf5557167acc0b0dcdf9af0e5b2
BLAKE2b-256 8d7007c870fe04ff2dc03366d7e2bf5f882d5829f00fd4060fce3ba37237b4dc

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