Skip to content
forked from olist/correios

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

License

Notifications You must be signed in to change notification settings

nichmorgan/correios

 
 

Repository files navigation

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

Update:
A bug in the freight calculation has been solved, until the pull resquest is accepted and initial installation by git is recommended.
$ pip install git+https://github.com/nichmorgan/correios.git  # installation of the required repaired version

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

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

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:

$ make test

Also, remember to update the WSDL files:

$ make update-wsdl

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 79.5%
  • Classic ASP 20.2%
  • Makefile 0.3%