{ "info": { "author": "Thiago Avelino", "author_email": "thiagoavelinoster@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "API Correios\n============\n\nInstallation\n------------\nIf you have _setuptools_ you can use \n\n $ easy_install -U pycorreios\n\nOtherwise, you can download the source from [GitHub][git] and run \n\n $ python setup.py install\n\n[git]: https://github.com/avelino/pycorreios \"PyCorreios\"\n\nExamples\n--------\nSome simple examples of what pyCorreios code looks like:\n\n```python\nfrom pycorreios import Correios\n\n# with a dictionary paramenter - the field order doesn't matter\nfields = {\"cod\": Correios().SEDEX, \n \"GOCEP\": \"44001535\",\n \"HERECEP\": \"03971010\",\n \"peso\": \"2\",\n \"formato\": \"1\", # caixa/pacote\n \"comprimento\": \"18\",\n \"altura\": \"8\",\n \"largura\": \"24\",\n \"diametro\": \"12\"}\n\ntest = Correios().frete(**fields) # remember to call with **\n\n# or with positional parameters - same result as above\ntest = Correios().frete(Correios().SEDEX,'44001535','03971010',2,1,18,8,24,12)\n\nif test['Erro'] != '0':\n print 'Deu erro! :('\n print test['Erro']\n print test['MsgErro']\nelse:\n print \"Valor: R$%s\\nPrazo de Entrega: %s\" % (test['Valor'],test['PrazoEntrega'])\n\n\nother_test = Correios().cep('03971010')\nfor tag_name in other_test.keys():\n print tag_name + ': ' + other_test[tag_name]\n```", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/avelino/pycorreios/", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "pycorreios", "package_url": "https://pypi.org/project/pycorreios/", "platform": "any", "project_url": "https://pypi.org/project/pycorreios/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/avelino/pycorreios/" }, "release_url": "https://pypi.org/project/pycorreios/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "API for correios in Python", "version": "0.1.2" }, "last_serial": 2074267, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "90d05cfd9ab1d524aabdb0927f52d2f2", "sha256": "79cb66eb62d068f8110fecd8683aacbb3e426b02d78aecdc496ac5c39c2439ac" }, "downloads": -1, "filename": "pycorreios-0.1-py2.6.egg", "has_sig": false, "md5_digest": "90d05cfd9ab1d524aabdb0927f52d2f2", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 4754, "upload_time": "2010-12-28T20:04:18", "url": "https://files.pythonhosted.org/packages/9a/e3/2e13ecbff1566f14634fddb755c7e12309f4c50d37f89b7cfe2f1e6e76c3/pycorreios-0.1-py2.6.egg" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e3fbea2f9dd6718b1732b846ac13d26d", "sha256": "65553617d95b6621e2de296a666f49ab3dc566a214bd5f1bbfcbd430881d8c57" }, "downloads": -1, "filename": "pycorreios-0.1.1-py2.7.egg", "has_sig": false, "md5_digest": "e3fbea2f9dd6718b1732b846ac13d26d", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 7211, "upload_time": "2011-11-03T15:43:49", "url": "https://files.pythonhosted.org/packages/10/e9/40fc26d1da1cb5eda44ed1522396dc6a426dc9cbffeb1962cd4addc15b4c/pycorreios-0.1.1-py2.7.egg" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "57db48d357b0b9d8c5128f17bf6cf9f9", "sha256": "71776aa87ea7e1a2e2f175cccf5765dc6d10f48a10ad0b0b6b5d9228a0ce748e" }, "downloads": -1, "filename": "pycorreios-0.1.2.tar.gz", "has_sig": false, "md5_digest": "57db48d357b0b9d8c5128f17bf6cf9f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5283, "upload_time": "2016-04-20T14:42:54", "url": "https://files.pythonhosted.org/packages/1c/bd/91b7207a807fe16ceb7c3f631cb5e0f0fde8a3f9d0bd3e8720f1c8bf4699/pycorreios-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "57db48d357b0b9d8c5128f17bf6cf9f9", "sha256": "71776aa87ea7e1a2e2f175cccf5765dc6d10f48a10ad0b0b6b5d9228a0ce748e" }, "downloads": -1, "filename": "pycorreios-0.1.2.tar.gz", "has_sig": false, "md5_digest": "57db48d357b0b9d8c5128f17bf6cf9f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5283, "upload_time": "2016-04-20T14:42:54", "url": "https://files.pythonhosted.org/packages/1c/bd/91b7207a807fe16ceb7c3f631cb5e0f0fde8a3f9d0bd3e8720f1c8bf4699/pycorreios-0.1.2.tar.gz" } ] }