Coder Social home page Coder Social logo

olist / correios Goto Github PK

View Code? Open in Web Editor NEW
171.0 116.0 44.0 21.41 MB

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

License: Apache License 2.0

Python 79.92% Makefile 0.28% ASP.NET 19.80%
correios brazil apache python python-3 sigep client sro freight

correios's Introduction

correios

Latest PyPI version Latest Travis CI build status Latest coverage status FOSSA 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.