{ "info": { "author": "Jarsa Sistemas, S.A. de C.V.", "author_email": "info@jarsa.com.mx", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Build Tools" ], "description": ".. image:: https://travis-ci.org/Jarsa/cfdi.svg?branch=master\n :target: https://travis-ci.org/Jarsa/cfdi\n.. image:: https://coveralls.io/repos/github/Jarsa/cfdi/badge.svg?branch=master\n :target: https://coveralls.io/github/Jarsa/cfdi?branch=master\n.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg\n :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n :alt: License: AGPL-3\n.. image:: https://img.shields.io/pypi/v/cfdi.svg\n :target: https://pypi.python.org/pypi/cfdi\n.. image:: https://img.shields.io/pypi/dm/cfdi.svg\n :target: https://pypi.python.org/pypi/cfdi\n\nCFDI Python Library\n===================\n\nThis library helps to make Mexico CFDI invoice.\n\nIs in early stage.\n\nInstallation\n------------\n\nFrom PyPI\n\n.. code-block::\n\n pip install cfdi\n\nFrom local source\n\n.. code-block::\n\n git clone https://github.com/Jarsa/cfdi.git\n cd cfdi\n pip install .\n\nFrom remote source\n\n.. code-block::\n\n pip install git+https://github.com/Jarsa/cfdi.git\n\nHow to use it?\n--------------\n\nTo generate XML you only need to call create method.\n\n.. code-block:: python\n\n import cfdi\n invoice = cfdi.invoice()\n xml = invoice.create(data)\n\nFirst you need to make a dictionary with invoice data like this:\n\n .. code-block:: python\n\n data = {\n 'Atributos': {\n 'serie': 'A', # Optional\n 'folio': '12345', # Optional\n 'fecha': 'aaaa-mm-ddThh:mm:ss', # ISO 8601\n 'sello': '', # Generated with this lib.\n 'formaDePago': 'Pago en una sola exhibicion', # Pago en una sola exhibici\u00f3n o n\u00famero de parcialidad pagada contra el total de parcialidades, Parcialidad 1 de X.\n 'noCertificado': '', # Generated with this lib.\n 'certificado': '', # Generated with tis lib.\n 'condicionesDePago': '', # Optional\n 'subTotal': '100.00',\n 'descuento': '0.0', # Optional\n 'motivoDescuento': '', # Optional\n 'TipoCambio': '1.0', # Optional\n 'Moneda': 'MXN', # Optional\n 'total': '116.00',\n 'tipoDeComprobante': 'ingreso', # ingreso egreso traslado\n 'metodoDePago': 'NA', # See catalog in SAT.\n 'LugarExpedicion': 'Torreon Coahuila, Mexico',\n 'NumCtaPago': '1234', # Optional\n 'FolioFiscalOrig': '', # Optional\n 'SerieFolioFiscalOrig': '', # Optional\n 'FechaFolioFiscalOrig': 'aaaa-mm-ddThh:mm:ss', # Optional ISO 8601\n 'MontoFolioFiscalOrig': '0.00', # Optional\n },\n 'Emisor': {\n 'rfc': 'JSI140527TS9',\n 'nombre': 'Jarsa Sistemas, S.A. de C.V.', # Optional\n 'DomicilioFiscal': {\n 'calle': 'Calle',\n 'noExterior': '49', # Optional\n 'noInterior': '', # Optional\n 'colonia': 'Colonia', # Optional\n 'localidad': 'Torreon', # Optional\n 'referencia': 'Referencia', # Optional\n 'municipio': 'Torreon',\n 'estado': 'Coahuila',\n 'pais': 'Mexico',\n 'codigoPostal': '27200',\n },\n 'ExpedidoEn': {\n 'calle': 'Calle', # Optional\n 'noExterior': '49', # Optional\n 'noInterior': '', # Optional\n 'colonia': 'Colonia', # Optional\n 'localidad': 'Torreon', # Optional\n 'referencia': 'Referencia', # Optional\n 'municipio': 'Torreon', # Optional\n 'estado': 'Coahuila', # Optional\n 'pais': 'Mexico', # Optional\n 'codigoPostal': '27200', # Optional\n },\n 'RegimenFiscal': 'Parsona Fisica con Actividad Empresarial',\n },\n 'Receptor': {\n 'rfc': 'XAXX010101000',\n 'nombre': 'Cliente', # Optional\n 'Domicilio': {\n 'calle': 'Calle', # Optional\n 'noExterior': '50', # Optional\n 'noInterior': '', # Optional\n 'colonia': 'Colonia', # Optional\n 'localidad': 'Torreon', # Optional\n 'referencia': 'Referencia', # Optional\n 'municipio': 'Torreon', # Optional\n 'estado': 'Coahuila', # Optional\n 'pais': 'Mexico', # Optional\n 'codigoPostal': '27200', # Optional\n },\n },\n 'Conceptos': [\n {\n 'cantidad': '1.0',\n 'unidad': 'pieza',\n 'noIdentificacion': 'A123', # Reference or serial no. Optional\n 'descripcion': '', # Optional\n 'valorUnitario': '100.00',\n 'importe': '100.00',\n 'InformacionAduanera': {\n 'numero': '',\n 'fecha': '',\n 'aduana': '', # Optional\n },\n 'CuentaPredial': {\n 'numero': '',\n },\n 'Parte': [\n {\n 'cantidad': '1.0',\n 'unidad': 'pieza', # Optional\n 'noIdentificacion': '', # Optional\n 'descripcion': '',\n 'valorUnitario': '0.0', # Optional\n 'importe': '0.0', # Optional\n 'InformacionAduanera': {\n 'numero': '',\n 'fecha': '',\n 'aduana': '', # Optional\n }\n\n },\n ],\n },\n ],\n 'Impuestos': {\n 'totalImpuestosRetenidos': '0.0', # Optional\n 'totalImpuestosTrasladados': '16.0', # Optional\n 'Retenciones': [\n {\n 'impuesto': '', # IVA ISR\n 'importe': '0.00',\n\n },\n ],\n 'Traslados': [\n {\n 'impuesto': 'IVA', # IVA IEPS\n 'tasa': '16.00',\n 'importe': '16.00',\n },\n ],\n },\n\n }\n\nKnown issues / Roadmap\n----------------------\n\n* Sign the XML.\n* Generate drivers framework to allow different PAC's.\n* Hability to create Addendas.\n* Test & document everything.\n* Compatibility to CFDI v3.3.\n\nBug Tracker\n-----------\n\nBugs are tracked on `GitHub Issues `_.\nIn case of trouble, please check there if your issue has already been reported.\nIf you spotted it first, help us smashing it by providing a detailed and welcomed feedback `here `_.\n\nCredits\n=======\n\nContributors\n------------\n\n* Alan Ramos \n\nMaintainer\n----------\n\n.. image:: http://www.jarsa.com.mx/logo.png\n :alt: Jarsa Sistemas, S.A. de C.V.\n :target: http://www.jarsa.com.mx\n\nThis package is maintained by Jarsa Sistemas, S.A. de C.V.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jarsa/cfdi", "keywords": "cfdi mexico invoice einvoice", "license": "APGLv3", "maintainer": "", "maintainer_email": "", "name": "cfdi", "package_url": "https://pypi.org/project/cfdi/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cfdi/", "project_urls": { "Homepage": "https://github.com/jarsa/cfdi" }, "release_url": "https://pypi.org/project/cfdi/1.0.0.dev1/", "requires_dist": null, "requires_python": "", "summary": "A Python library to generate CFDI for Mexico", "version": "1.0.0.dev1" }, "last_serial": 2168962, "releases": { "1.0.0.dev1": [] }, "urls": [] }