Skip to main content
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:

```python
from pycorreios import Correios

# with a dictionary paramenter - the field order doesn't matter
fields = {"cod": Correios().SEDEX,
"GOCEP": "44001535",
"HERECEP": "03971010",
"peso": "2",
"formato": "1", # caixa/pacote
"comprimento": "18",
"altura": "8",
"largura": "24",
"diametro": "12"}

test = Correios().frete(**fields) # remember to call with **

# or with positional parameters - same result as above
test = Correios().frete(Correios().SEDEX,'44001535','03971010',2,1,18,8,24,12)

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


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

Metadata

Release files for pycorreios 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycorreios 0.1.2
File Size Uploaded Provenance
pycorreios-0.1.2.tar.gz 5.3 kB Without provenance Details

Release files / pycorreios-0.1.2.tar.gz

Download URL pycorreios-0.1.2.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
71776aa87ea7e1a2e2f175cccf5765dc6d10f48a10ad0b0b6b5d9228a0ce748e
BLAKE2b-256 checksum
How to use checksums
1cbd91b7207a807fe16ceb7c3f631cb5e0f0fde8a3f9d0bd3e8720f1c8bf4699
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pycorreios 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page