by olist

olist /correios

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

144 Stars 40 Forks Last release: about 2 months ago (6.4.3) Apache License 2.0 500 Commits 91 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


.. image:: :target: :alt: Latest PyPI version

.. image:: :target: :alt: Latest Travis CI build status

.. image:: :target: :alt: Latest coverage status

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


.. code-block::

$ 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 without 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

.. code-block::

$ 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 'CORREIOSWSDLPATH'

Or you can use the method update_wsdl to do it.

.. code-block::

from correios.updatewsdl import updatewsdl



Fork this repository, make changes and send us a pull request. We will review your changes and apply them. Before sending us your pull request please check if you wrote and ran tests:

.. code-block::

$ make test

Also, remember to update the WSDL files:

.. code-block::

$ make update-wsdl

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.