Skip to main content

API for correios in Python

Project description

API Correios
============

Installation
============
If you have _setuptools_ you can use
$ easy_install -U pycorreios
Otherwise, you can download the source from [GitHub][git] and run
$ python setup.py install

[git]: https://github.com/avelino/pycorreios "PyCorreios"

Examples
========
Some simple examples of what pyCorreios code looks like:
# -*- coding: utf-8 -*-
from pycorreios import Correios

test = Correios().frete(Correios().SEDEX,'44001535','03971010',10,18,8)
if test['Erro'] != '0':
print 'Deu erro! :('
print test['Erro']
print test['MsgErro']
else:
print "Valor: R$%s\nPrazo de Entrega: %s" % (test['Valor'],test['PrazoEntrega'])

print

other_test = Correios().cep('03971010')
for tag_name in other_test.keys():
print tag_name + ': ' + other_test[tag_name]

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pycorreios-0.1.1-py2.7.egg (7.2 kB view details)

Uploaded Source

File details

Details for the file pycorreios-0.1.1-py2.7.egg.

File metadata

File hashes

Hashes for pycorreios-0.1.1-py2.7.egg
Algorithm Hash digest
SHA256 65553617d95b6621e2de296a666f49ab3dc566a214bd5f1bbfcbd430881d8c57
MD5 e3fbea2f9dd6718b1732b846ac13d26d
BLAKE2b-256 10e940fc26d1da1cb5eda44ed1522396dc6a426dc9cbffeb1962cd4addc15b4c

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