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.5.1.tar.gz (11.0 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.5.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ocaclient-0.5.1.tar.gz
Algorithm Hash digest
SHA256 18ed1f9f2bcf11160d2052367c04a6857277c19e8a132b0e15f3fd142abc4d84
MD5 1b891e26afc392cf7e257ca594fb0d4f
BLAKE2b-256 a2c8795ef3b22be810767143a2b6edca2f606422ffbedf2c7242e81f444448e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ocaclient-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8825c0daf6f6c06eb56d6d183c4dddcd738e2a994d1c47eb844d46d72ab23ac3
MD5 582ff484e3ef672d57e5c244802ed52b
BLAKE2b-256 c4d354ecc19e53924a705d0faf65cd4be4835af0fc8d3cbb5419908c11155b74

See more details on using hashes here.

Supported by

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