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

Uploaded Source

Built Distribution

ocaclient-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ocaclient-0.1.0.tar.gz
Algorithm Hash digest
SHA256 800ab0d3779022a0479a1f7b9ae8930889270fdc9bab19edeff6182f03bd6b85
MD5 69783844c58191bdb33afd056ce06c7a
BLAKE2b-256 d6a5fe4812bc5ebd1c14a566e7fdb270d55f4d38483eb66df25c685d63a2ea23

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ocaclient-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a261bcc8a75587438c465e8a828cd7e0355da5e06fa672ff1fc903ea16d4afdf
MD5 852e8e709e1d5a16dc95f53846e020eb
BLAKE2b-256 12f90867cc7ceb914f3ab9512f3f80a9e8916da3460a6a126fa96703159e27cb

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