Skip to main content

A client library for Brazilian Correios APIs and services

Project description

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

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

correios-6.4.2.tar.gz (184.4 kB view details)

Uploaded Source

File details

Details for the file correios-6.4.2.tar.gz.

File metadata

  • Download URL: correios-6.4.2.tar.gz
  • Upload date:
  • Size: 184.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.8

File hashes

Hashes for correios-6.4.2.tar.gz
Algorithm Hash digest
SHA256 11fe555380f8e8d24257c24bace309efdf0cc48b8cf500725565440484f5ae50
MD5 35e3448cd748d12dae96c5e6618e3742
BLAKE2b-256 48b5fe9c2b2561a81d42d2f45daef66f95c37e9e37e0b9e7535363d117e7b2e4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page