JCelento / correios

A client library for Brazilian Correios APIs and services (SIGEP & SRO).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

correios

Latest PyPI version

Latest Travis CI build status

Latest coverage status

A client library for Brazilian Correios APIs (SIGEP and SRO) and services.

Installation

$ pip install correios  # basic model support
$ pip install correios[pdf]  # label and posting list pdf generation support
$ pip install correios[api]  # support for SIGEP/SRO API client
$ pip install correios[pdf,api]  # full installation

Update Local WSDL Files

Local WSDL files are used to increase performance on SOAP requests. Enventually you'll want to update them and withou having to update this lib.

If you want to maintain this files on a custom path you can pass the 'path' option with the custom path. Don't use relative paths.

Just run on shell

$ update-correios-wsdl -p /path/to/your/custom/wsdl/folder

Arguments: -p, --path : Custom path where wsdl files will be saved, note that this option will have higher priority than the value of the envvar 'CORREIOS_WSDL_PATH'

Or you can use the method update_wsdl to do it.

from correios.update_wsdl import update_wsdl

update_wsdl(path='/path/to/your/custom/wsdl/folder')

That's it!

About

A client library for Brazilian Correios APIs and services (SIGEP & SRO).

License:Apache License 2.0


Languages

Language:Python 82.6%Language:ASP 17.0%Language:Makefile 0.3%