Skip to content
A client library for Brazilian Correios APIs and services (SIGEP & SRO).
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
correios Remove incorrectly returned fields by Correios WS for each package ty… Jun 13, 2019
docs Add black (#158) May 15, 2019
documentation Add black (#158) May 15, 2019
samples Add black (#158) May 15, 2019
tests Remove incorrectly returned fields by Correios WS for each package ty… Jun 13, 2019
.bumpversion.cfg Bump version: 6.1.14 → 6.1.15 Jun 13, 2019
.editorconfig create editorconfig file Aug 29, 2017
.gitignore Handle errors in _call method (#114) Feb 21, 2018
.isort.cfg
.pre-commit-config.yaml Add black (#158) May 15, 2019
.travis.yml update python versions used in travis (#156) Apr 18, 2019
LICENSE Initial commit May 20, 2016
MANIFEST.in Refactor contributions (#109) Nov 29, 2017
Makefile Add black (#158) May 15, 2019
README.rst Add a method to update the local WSDL files (#105) Nov 4, 2017
pyproject.toml Add black (#158) May 15, 2019
pytest.ini Add pytest.ini May 15, 2018
requirements-dev.txt Implements dev commands for makefile Nov 1, 2017
requirements-test.txt Add black (#158) May 15, 2019
requirements.txt use zeep instead of suds Aug 15, 2017
setup.py Bump version: 6.1.14 → 6.1.15 Jun 13, 2019
tox.ini update python versions used in travis (#156) Apr 18, 2019

README.rst

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!

You can’t perform that action at this time.