forked from olist/correios
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
135 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
@ECHO OFF | ||
|
||
pushd %~dp0 | ||
|
||
REM Command file for Sphinx documentation | ||
|
||
if "%SPHINXBUILD%" == "" ( | ||
set SPHINXBUILD=python -msphinx | ||
) | ||
set SOURCEDIR=. | ||
set BUILDDIR=_build | ||
set SPHINXPROJ=correios | ||
|
||
if "%1" == "" goto help | ||
|
||
%SPHINXBUILD% >NUL 2>NUL | ||
if errorlevel 9009 ( | ||
echo. | ||
echo.The Sphinx module was not found. Make sure you have Sphinx installed, | ||
echo.then set the SPHINXBUILD environment variable to point to the full | ||
echo.path of the 'sphinx-build' executable. Alternatively you may add the | ||
echo.Sphinx directory to PATH. | ||
echo. | ||
echo.If you don't have Sphinx installed, grab it from | ||
echo.http://sphinx-doc.org/ | ||
exit /b 1 | ||
) | ||
|
||
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% | ||
goto end | ||
|
||
:help | ||
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% | ||
|
||
:end | ||
popd | ||
@ECHO OFF | ||
|
||
pushd %~dp0 | ||
|
||
REM Command file for Sphinx documentation | ||
|
||
if "%SPHINXBUILD%" == "" ( | ||
set SPHINXBUILD=sphinx-build | ||
) | ||
set SOURCEDIR=source | ||
set BUILDDIR=build | ||
set SPHINXPROJ=correios | ||
|
||
if "%1" == "" goto help | ||
|
||
%SPHINXBUILD% >NUL 2>NUL | ||
if errorlevel 9009 ( | ||
echo. | ||
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx | ||
echo.installed, then set the SPHINXBUILD environment variable to point | ||
echo.to the full path of the 'sphinx-build' executable. Alternatively you | ||
echo.may add the Sphinx directory to PATH. | ||
echo. | ||
echo.If you don't have Sphinx installed, grab it from | ||
echo.http://sphinx-doc.org/ | ||
exit /b 1 | ||
) | ||
|
||
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% | ||
goto end | ||
|
||
:help | ||
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% | ||
|
||
:end | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
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 | ||
|
||
A client library for Brazilian Correios APIs (SIGEP and SRO) and services. | ||
|
||
|
||
Installation | ||
------------ | ||
|
||
.. code-block:: shell | ||
$ 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 and withou 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:: 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. | ||
|
||
.. code-block:: python | ||
from correios.update_wsdl import update_wsdl | ||
update_wsdl(path='/path/to/your/custom/wsdl/folder') | ||
That's it! | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
:caption: Contents: | ||
|
||
|
||
|
||
Indices and tables | ||
================== | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` |