{ "info": { "author": "vitormazzi", "author_email": "vitormazzi@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Topic :: Software Development" ], "description": "=============\npython-emites\n=============\n\nSobre o Emites\n--------------\n\nO Emites \u00e9 uma aplica\u00e7\u00e3o para emiss\u00e3o de notas fiscais eletr\u00f4nicas de servi\u00e7o sob demanda.\nEsta biblioteca implementa um cliente para a `vers\u00e3o 1 de sua API `_\n\n.. image:: https://travis-ci.org/myfreecomm/python-emites.png?branch=master\n :target: https://travis-ci.org/myfreecomm/python-emites\n\nInstala\u00e7\u00e3o\n----------\n\n.. code-block:: sh\n\n pip install python-emites\n\n\nExemplo de utiliza\u00e7\u00e3o\n---------------------\n\n.. code-block:: python\n\n from emites_api.main import Emites\n\n api_client = Emites(\n host='https://sandbox.emites.com.br',\n token='DD00027F4A76E4B79209ACBFBC72F68E'\n )\n\n # Cadastrar um emitente\n emitter_data = {\n 'email': 'financeiro@python-emites.test',\n 'cnpj': '91762868000184',\n 'fancy_name': 'Empresa de Testes',\n 'social_reason': 'Empresa de Testes Ltda ME',\n 'state_inscription': 'ISENTO',\n 'city_inscription': '00000000',\n 'state': 'RJ',\n 'city': 'Rio de Janeiro',\n 'neighborhood': 'Centro',\n 'street_type': 'RUA',\n 'street': 'dos testes',\n 'number': 42,\n 'zip_code': '20011020',\n 'phone': '21000000000',\n 'certificate': ****,\n 'password': ****,\n }\n new_emitter = api_client.emitters.create(**emitter_data)\n\n # Cadastrar um tomador\n taker_data = {\n 'cnpj': '91762868000184',\n 'fancy_name': 'Empresa de Testes',\n 'social_reason': 'Empresa de Testes Ltda ME',\n 'city_inscription': '00000000',\n 'state_inscription': 'ISENTO',\n 'address': {\n 'state': 'RJ',\n 'city_code': 3304557,\n 'city': 'Rio de Janeiro',\n 'street_type': 'RUA',\n 'street': 'dos testes',\n 'number': 42,\n 'neighborhood_type': 'COM',\n 'neighborhood': 'Centro',\n 'zip_code': '20011020',\n 'country_code': '01058',\n 'country': 'Brasil',\n 'country_abbreviation': 'BR',\n },\n 'contact': {\n 'phone': '21000000000',\n 'email': 'financeiro@python-emites.test',\n }\n }\n new_taker = api_client.takers.create(**taker_data)\n\n # Cadastrar um modelo de valores e servi\u00e7o\n service_values_data = {\n 'emitter_id': new_emitter.id,\n 'name': u'Desenvolvimento de programas de computador',\n 'city_code': 3304557,\n 'service_item_code': '0105',\n 'city_tax_code': '010501',\n 'cnae_code': '6201-5',\n 'iss_percentage': '5.00',\n }\n new_service_values = api_client.service_values.create(**service_values_data)\n\n # Emitir uma nota fiscal de servi\u00e7o\n nfse_data = {\n 'emitter_id': new_emitter.id,\n 'taker_id': new_taker.id,\n 'serie': 'TESTE',\n 'emission_date': '2014-11-12T18:16:56Z',\n 'service_values': {\n 'id': new_service_values.id,\n 'service_amount': '99.99',\n 'deduction_amount': '0.00',\n 'discount_conditioning_amount': '0.00',\n 'calculation_base': '99.99',\n 'nfse_liquid_amount': '99.99',\n 'description': u'Testes da api do emites',\n }\n }\n new_nfse = api_client.nfse.create(**nfse_data)\n\n # Adicionar uma nota fiscal de servi\u00e7o a um novo lote\n second_nfse_data = {\n 'batch_name': u'Notas do dia 12 de Novembro de 2014',\n 'emitter_id': new_emitter.id,\n 'taker_id': new_taker.id,\n 'serie': 'TESTE',\n 'emission_date': '2014-11-12T18:20:18Z',\n 'service_values': {\n 'id': new_service_values.id,\n 'service_amount': '99.99',\n 'deduction_amount': '0.00',\n 'discount_conditioning_amount': '0.00',\n 'calculation_base': '99.99',\n 'nfse_liquid_amount': '99.99',\n 'description': u'Cliente python para a api do emites',\n }\n }\n second_nfse = api_client.nfse.create(**second_nfse_data)\n\n # Obter lote\n new_batch = api_client.batches.all(name=second_nfse_data['batch_name'])[0]\n\n # Adicionar nova nfse ao lote\n third_nfse_data = {\n 'batch_id': new_batch.id,\n 'emitter_id': new_emitter.id,\n 'taker_id': new_taker.id,\n 'serie': 'TESTE',\n 'emission_date': '2014-11-12T18:22:34Z',\n 'service_values': {\n 'id': new_service_values.id,\n 'service_amount': '99.99',\n 'deduction_amount': '0.00',\n 'discount_conditioning_amount': '0.00',\n 'calculation_base': '99.99',\n 'nfse_liquid_amount': '99.99',\n 'description': u'Teste da manipula\u00e7\u00e3o de lotes',\n }\n }\n third_nfse = api_client.nfse.create(**third_nfse_data)\n\n # Enviar lote\n new_batch.send()", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/myfreecomm/emites", "keywords": "python emites", "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "python-emites", "package_url": "https://pypi.org/project/python-emites/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-emites/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/myfreecomm/emites" }, "release_url": "https://pypi.org/project/python-emites/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Python client app for Emites (api v1).", "version": "0.1.0" }, "last_serial": 1320640, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "06bc938f9d34b252e645ad2110fed5c6", "sha256": "8e66e3192d8b85444ae0fe9ef0452a0e9941d6e71cbf345de867778013206004" }, "downloads": -1, "filename": "python-emites-0.0.1.tar.gz", "has_sig": false, "md5_digest": "06bc938f9d34b252e645ad2110fed5c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4935, "upload_time": "2014-11-12T20:34:08", "url": "https://files.pythonhosted.org/packages/22/73/5dfe94cf8a94aac021a1001a3cfef3dcfb8579f01a92246eb46edab1c23f/python-emites-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "0155794a1a73994211a6f1e20bbd73c4", "sha256": "37c876987bf9e2d9412fada82634b716a0eec2374436ce74d77c4a9fa5609ec2" }, "downloads": -1, "filename": "python-emites-0.0.2.tar.gz", "has_sig": false, "md5_digest": "0155794a1a73994211a6f1e20bbd73c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4993, "upload_time": "2014-11-12T21:06:29", "url": "https://files.pythonhosted.org/packages/68/97/cd5083df619ac7cbbd1a563cd9906112ce54601c36b4e359c1403aaa5f05/python-emites-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "0e8c89acc1a477ef3f133f0098f2f22e", "sha256": "7b59fa454308c27d5d1ee4c2135ed51c0d368030c649b6f85d5392f909983b38" }, "downloads": -1, "filename": "python-emites-0.0.3.tar.gz", "has_sig": false, "md5_digest": "0e8c89acc1a477ef3f133f0098f2f22e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 45827, "upload_time": "2014-11-18T19:43:44", "url": "https://files.pythonhosted.org/packages/09/38/8a0df3ae4b43df81582da8fb9c5b651cbce0e4f2932f389fad26d85d4eb6/python-emites-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "96741b36994aca8f54abd1ad4e6db648", "sha256": "c26bd11ddde9ec27e77414d1ded54d5930df622b7968451d40465f865fa5ae4d" }, "downloads": -1, "filename": "python-emites-0.0.4.tar.gz", "has_sig": false, "md5_digest": "96741b36994aca8f54abd1ad4e6db648", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 50784, "upload_time": "2014-11-18T19:47:01", "url": "https://files.pythonhosted.org/packages/c9/42/9d6f897c8b459ba164f2d23bae97f65f63ba2e2b24c8d51afa5e94938487/python-emites-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "57aa92f875815f8f584844929fc9aff8", "sha256": "f5df051998e5d593fec1c7575fec23bd4be6f4a7422b01001295ddcb082ea6bc" }, "downloads": -1, "filename": "python-emites-0.0.5.tar.gz", "has_sig": false, "md5_digest": "57aa92f875815f8f584844929fc9aff8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 50350, "upload_time": "2014-11-19T15:25:47", "url": "https://files.pythonhosted.org/packages/37/7f/265c575913ba4831cc5211b88a30d4f08efc6fc594e192b48cbd6a37a82f/python-emites-0.0.5.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "6f12c991b2c9e2ca75a55ad60711c267", "sha256": "f623f3b1c533ac2da98a8630e79b340fdbc427649038fd1630ad17ba42adeb76" }, "downloads": -1, "filename": "python-emites-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6f12c991b2c9e2ca75a55ad60711c267", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 52317, "upload_time": "2014-11-25T17:30:23", "url": "https://files.pythonhosted.org/packages/74/9a/6c9ca4ec8b192710f228fcbce56b9eeb79abf437b32ef77469d7d72ba69d/python-emites-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6f12c991b2c9e2ca75a55ad60711c267", "sha256": "f623f3b1c533ac2da98a8630e79b340fdbc427649038fd1630ad17ba42adeb76" }, "downloads": -1, "filename": "python-emites-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6f12c991b2c9e2ca75a55ad60711c267", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 52317, "upload_time": "2014-11-25T17:30:23", "url": "https://files.pythonhosted.org/packages/74/9a/6c9ca4ec8b192710f228fcbce56b9eeb79abf437b32ef77469d7d72ba69d/python-emites-0.1.0.tar.gz" } ] }