Correios
A client library for Brazilian Correios APIs and services (SIGEP & SRO).
Install / Use
/learn @olist/CorreiosREADME
correios
.. image:: https://img.shields.io/pypi/v/correios.svg :target: https://pypi.python.org/pypi/correios :alt: Latest PyPI version
.. image:: https://travis-ci.org/olist/correios.png :target: https://travis-ci.org/olist/correios :alt: Latest Travis CI build status
.. image:: https://codecov.io/gh/olist/correios/branch/master/graph/badge.svg :target: https://codecov.io/gh/olist/correios :alt: Latest coverage status
.. image:: https://app.fossa.com/api/projects/git%2Bgithub.com%2Folist%2Fcorreios.svg?type=shield :target: https://app.fossa.com/projects/git%2Bgithub.com%2Folist%2Fcorreios?ref=badge_shield :alt: FOSSA Status
A client library for Brazilian Correios APIs (SIGEP and SRO) and services.
Installation
.. 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 'CORREIOS_WSDL_PATH'
Or you can use the method update_wsdl to do it.
.. code-block::
from correios.update_wsdl import update_wsdl
update_wsdl(path='/path/to/your/custom/wsdl/folder')
Contributing
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
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
109.5kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
349.2kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
