BrazilFiscalReport


NameBrazilFiscalReport JSON
Version 0.4.3 PyPI version JSON
download
home_pageNone
SummaryPython library for generating Brazilian auxiliary fiscal documents in PDF from XML documents.
upload_time2024-10-10 19:28:17
maintainerNone
docs_urlNone
authorEngenere
requires_python>=3.8
licenseGNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.
keywords nfe danfe xml pdf documento fiscal auxiliar converter generator cce dacce
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![image](https://github.com/engenere/BrazilFiscalReport/workflows/tests/badge.svg)](https://github.com/Engenere/BrazilFiscalReport/actions)
[![image](https://codecov.io/gh/engenere/BrazilFiscalReport/branch/main/graph/badge.svg)](https://app.codecov.io/gh/Engenere/BrazilFiscalReport)
[![image](https://img.shields.io/github/languages/top/Engenere/brazilfiscalreport)](https://pypi.org/project/BrazilFiscalReport/)
[![image](https://img.shields.io/pypi/v/brazilfiscalreport.svg)](https://pypi.org/project/BrazilFiscalReport/)
[![image](https://img.shields.io/pypi/l/brazilfiscalreport)](https://github.com/Engenere/BrazilFiscalReport/blob/main/LICENSE)
![beta](https://img.shields.io/badge/status-beta-orange)
# Brazil Fiscal Report

Python library for generating Brazilian auxiliary fiscal documents in PDF from XML documents.

## Supported Documents 📄

- DANFE - Documento Auxiliar da Nota Fiscal Eletrônica (NF-e)
- DACCe - Documento Auxiliar da Carta de Correção Eletrônica (CC-e )

## Beta Stage Notice 🚧

This library is currently in the beta stage of development. While it has many of the intended features implemented, it is still undergoing testing and improvements. Users should note that during this phase, functionality may change and some instability may occur. We welcome feedback on any issues or suggestions for enhancements. Use in production environments should be approached with caution.

## Dependencies 🛠️

- [FPDF2](https://github.com/py-pdf/fpdf2) - PDF creation library for Python
- phonenumbers
- python-barcode

## To install 🔧

```bash
pip install brazilfiscalreport
```

## Usage examples 🚀
### DANFE

```python
from brazilfiscalreport.danfe import Danfe

# Path to the XML file
xml_file_path = 'nfe.xml'

# Load XML Content
with open(xml_file_path, "r", encoding="utf8") as file:
    xml_content = file.read()

# Instantiate the DANFE object with the loaded XML content
danfe = Danfe(xml=xml_content)

# Save the generated PDF to a file
danfe.output('danfe.pdf')
```
### DACCe

```python
from brazilfiscalreport.dacce import DaCCe

# Path to the XML file
xml_file_path = 'cce.xml'

# Load XML Content
with open(xml_file_path, "r", encoding="utf8") as file:
    xml_content = file.read()

# Instantiate the CC-e PDF object with the loaded XML content
cce = DaCCe(xml=xml_content)

# Save the generated PDF to a file
cce.output('cce.pdf')
```

## Samples 📝

Some sample PDFs generated by our unit tests are available for viewing in the [tests/generated](https://github.com/Engenere/BrazilFiscalReport/tree/main/tests/generated) directory.

## Customizing DANFE 🎨

This section describes how to customize the PDF output of the DANFE using the ``DanfeConfig`` class. You can adjust various settings such as margins, fonts, and tax configurations according to your needs.

###  Configuration Options ⚙️

Here is a breakdown of all the configuration options available in ``DanfeConfig``:

1. **Logo**
   - **Type**: ``str``, ``BytesIO``, or ``bytes``
   - **Description**: Path to the logo file or binary image data to be included in the PDF. You can use a file path string or pass image data directly.
   - **Example**:
        ```python
       config.logo = "path/to/logo.jpg"  # Using a file path
      ```
   - **Default**: No logo.


2. **Margins**
   - **Type**: ``Margins``
   - **Fields**: ``top``, ``right``, ``bottom``, ``left`` (all of type ``Number``)
   - **Description**: Sets the page margins for the PDF document.
   - **Example**:
        ```python
        config.margins = Margins(top=5, right=5, bottom=5, left=5)
        ```
   - **Default**: top, right, bottom and left is 2 mm.

3. **Receipt Position**
   - **Type**: ``ReceiptPosition`` (Enum)
   - **Values**: ``TOP``, ``BOTTOM``, ``LEFT``
   - **Description**: Position of the receipt section in the DANFE.
   - **Example**:
        ```python
        config.receipt_pos = ReceiptPosition.BOTTOM
        ```
   - **Default**: ``TOP`` when portrait, ``LEFT`` when landscape orientation.
   - **Note**: In landscape orientation, the receipt position is far left; customization is not permitted.

4. **Decimal Configuration**
   - **Type**: ``DecimalConfig``
   - **Fields**: ``price_precision``, ``quantity_precision`` (both ``int``)
   - **Description**: Defines the number of decimal places for prices and quantities.
   - **Example**:
        ```python
       config.decimal_config = DecimalConfig(price_precision=2, quantity_precision=3)
        ```
   - **Default**: 4

5. **Tax Configuration**
   - **Type**: ``TaxConfiguration`` (Enum)
   - **Values**: ``STANDARD_ICMS_IPI``, ``ICMS_ST_ONLY``, ``WITHOUT_IPI``
   - **Description**: Specifies the tax fields to be displayed.
   - **Example**:
        ```python
        config.tax_configuration = TaxConfiguration.WITHOUT_IPI
        ```
   - **Default**: ``STANDARD_ICMS_IPI``
   - **WARNING: This feature is not yet implemented.**

6. **Invoice Display**
   - **Type**: ``InvoiceDisplay`` (Enum)
   - **Values**: ``DUPLICATES_ONLY``, ``FULL_DETAILS``
   - **Description**: Controls the detail level in the invoice section of the DANFE.
   - **Example**::
        ```python
       config.invoice_display = InvoiceDisplay.DUPLICATES_ONLY
        ```
   - **Default**: ``FULL_DETAILS``

7. **Font Type**
   - **Type**: ``FontType`` (Enum)
   - **Values**: ``COURIER``, ``TIMES``
   - **Description**: Font style used throughout the PDF document.
   - **Example**::
        ```python
       config.font_type = FontType.COURIER
        ```
   - **Default**: ``TIMES``

8. **Display PIS COFINS**
   - **Type**: ``Bool``
   - **Values**: ``True``, ``False``
   - **Description**: Displays PIS and COFINS taxes in the DANFE totals.
   - **Example**::
        ```python
       config.display_pis_cofins = True
        ```
   - **Default**: ``False``
### Usage Example with Customization

Here’s how to set up a ``DanfeConfig`` object with a full set of customizations::

```python
from brazilfiscalreport.danfe import (
    Danfe,
    DanfeConfig,
    DecimalConfig,
    FontType,
    InvoiceDisplay,
    Margins,
    ReceiptPosition,
    TaxConfiguration,
)

# Path to the XML file
xml_file_path = 'nfe.xml'

# Load XML Content
with open(xml_file_path, "r", encoding="utf8") as file:
    xml_content = file.read()

# Create a configuration instance
config = DanfeConfig(
    logo='path/to/logo.png',
    margins=Margins(top=10, right=10, bottom=10, left=10),
    receipt_pos=ReceiptPosition.BOTTOM,
    decimal_config=DecimalConfig(price_precision=2, quantity_precision=2),
    tax_configuration=TaxConfiguration.ICMS_ST,
    invoice_display=InvoiceDisplay.FULL_DETAILS,
    font_type=FontType.TIMES
)

# Use this config when creating a Danfe instance
danfe = Danfe(xml_content, config=config)
danfe.output('output_danfe.pdf')
```

## Credits 🙌
This is a fork of the [nfe_utils](https://github.com/edsonbernar/nfe_utils) project, originally created by [Edson Bernardino](https://github.com/edsonbernar).

## Maintainer 🛠️
[![Engenere](https://storage.googleapis.com/eng-imagens/logo-fundo-preto.webp)]([#](https://engenere.one/))

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "BrazilFiscalReport",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "nfe, danfe, xml, pdf, documento, fiscal, auxiliar, converter, generator, cce, dacce",
    "author": "Engenere",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/9f/5b/67bb2659ef1b3291896ed3040da51792ca423810eedf2e99fd03f0c3d870/brazilfiscalreport-0.4.3.tar.gz",
    "platform": null,
    "description": "[![image](https://github.com/engenere/BrazilFiscalReport/workflows/tests/badge.svg)](https://github.com/Engenere/BrazilFiscalReport/actions)\n[![image](https://codecov.io/gh/engenere/BrazilFiscalReport/branch/main/graph/badge.svg)](https://app.codecov.io/gh/Engenere/BrazilFiscalReport)\n[![image](https://img.shields.io/github/languages/top/Engenere/brazilfiscalreport)](https://pypi.org/project/BrazilFiscalReport/)\n[![image](https://img.shields.io/pypi/v/brazilfiscalreport.svg)](https://pypi.org/project/BrazilFiscalReport/)\n[![image](https://img.shields.io/pypi/l/brazilfiscalreport)](https://github.com/Engenere/BrazilFiscalReport/blob/main/LICENSE)\n![beta](https://img.shields.io/badge/status-beta-orange)\n# Brazil Fiscal Report\n\nPython library for generating Brazilian auxiliary fiscal documents in PDF from XML documents.\n\n## Supported Documents \ud83d\udcc4\n\n- DANFE - Documento Auxiliar da Nota Fiscal Eletr\u00f4nica (NF-e)\n- DACCe - Documento Auxiliar da Carta de Corre\u00e7\u00e3o Eletr\u00f4nica (CC-e )\n\n## Beta Stage Notice \ud83d\udea7\n\nThis library is currently in the beta stage of development. While it has many of the intended features implemented, it is still undergoing testing and improvements. Users should note that during this phase, functionality may change and some instability may occur. We welcome feedback on any issues or suggestions for enhancements. Use in production environments should be approached with caution.\n\n## Dependencies \ud83d\udee0\ufe0f\n\n- [FPDF2](https://github.com/py-pdf/fpdf2) - PDF creation library for Python\n- phonenumbers\n- python-barcode\n\n## To install \ud83d\udd27\n\n```bash\npip install brazilfiscalreport\n```\n\n## Usage examples \ud83d\ude80\n### DANFE\n\n```python\nfrom brazilfiscalreport.danfe import Danfe\n\n# Path to the XML file\nxml_file_path = 'nfe.xml'\n\n# Load XML Content\nwith open(xml_file_path, \"r\", encoding=\"utf8\") as file:\n    xml_content = file.read()\n\n# Instantiate the DANFE object with the loaded XML content\ndanfe = Danfe(xml=xml_content)\n\n# Save the generated PDF to a file\ndanfe.output('danfe.pdf')\n```\n### DACCe\n\n```python\nfrom brazilfiscalreport.dacce import DaCCe\n\n# Path to the XML file\nxml_file_path = 'cce.xml'\n\n# Load XML Content\nwith open(xml_file_path, \"r\", encoding=\"utf8\") as file:\n    xml_content = file.read()\n\n# Instantiate the CC-e PDF object with the loaded XML content\ncce = DaCCe(xml=xml_content)\n\n# Save the generated PDF to a file\ncce.output('cce.pdf')\n```\n\n## Samples \ud83d\udcdd\n\nSome sample PDFs generated by our unit tests are available for viewing in the [tests/generated](https://github.com/Engenere/BrazilFiscalReport/tree/main/tests/generated) directory.\n\n## Customizing DANFE \ud83c\udfa8\n\nThis section describes how to customize the PDF output of the DANFE using the ``DanfeConfig`` class. You can adjust various settings such as margins, fonts, and tax configurations according to your needs.\n\n###  Configuration Options \u2699\ufe0f\n\nHere is a breakdown of all the configuration options available in ``DanfeConfig``:\n\n1. **Logo**\n   - **Type**: ``str``, ``BytesIO``, or ``bytes``\n   - **Description**: Path to the logo file or binary image data to be included in the PDF. You can use a file path string or pass image data directly.\n   - **Example**:\n        ```python\n       config.logo = \"path/to/logo.jpg\"  # Using a file path\n      ```\n   - **Default**: No logo.\n\n\n2. **Margins**\n   - **Type**: ``Margins``\n   - **Fields**: ``top``, ``right``, ``bottom``, ``left`` (all of type ``Number``)\n   - **Description**: Sets the page margins for the PDF document.\n   - **Example**:\n        ```python\n        config.margins = Margins(top=5, right=5, bottom=5, left=5)\n        ```\n   - **Default**: top, right, bottom and left is 2 mm.\n\n3. **Receipt Position**\n   - **Type**: ``ReceiptPosition`` (Enum)\n   - **Values**: ``TOP``, ``BOTTOM``, ``LEFT``\n   - **Description**: Position of the receipt section in the DANFE.\n   - **Example**:\n        ```python\n        config.receipt_pos = ReceiptPosition.BOTTOM\n        ```\n   - **Default**: ``TOP`` when portrait, ``LEFT`` when landscape orientation.\n   - **Note**: In landscape orientation, the receipt position is far left; customization is not permitted.\n\n4. **Decimal Configuration**\n   - **Type**: ``DecimalConfig``\n   - **Fields**: ``price_precision``, ``quantity_precision`` (both ``int``)\n   - **Description**: Defines the number of decimal places for prices and quantities.\n   - **Example**:\n        ```python\n       config.decimal_config = DecimalConfig(price_precision=2, quantity_precision=3)\n        ```\n   - **Default**: 4\n\n5. **Tax Configuration**\n   - **Type**: ``TaxConfiguration`` (Enum)\n   - **Values**: ``STANDARD_ICMS_IPI``, ``ICMS_ST_ONLY``, ``WITHOUT_IPI``\n   - **Description**: Specifies the tax fields to be displayed.\n   - **Example**:\n        ```python\n        config.tax_configuration = TaxConfiguration.WITHOUT_IPI\n        ```\n   - **Default**: ``STANDARD_ICMS_IPI``\n   - **WARNING: This feature is not yet implemented.**\n\n6. **Invoice Display**\n   - **Type**: ``InvoiceDisplay`` (Enum)\n   - **Values**: ``DUPLICATES_ONLY``, ``FULL_DETAILS``\n   - **Description**: Controls the detail level in the invoice section of the DANFE.\n   - **Example**::\n        ```python\n       config.invoice_display = InvoiceDisplay.DUPLICATES_ONLY\n        ```\n   - **Default**: ``FULL_DETAILS``\n\n7. **Font Type**\n   - **Type**: ``FontType`` (Enum)\n   - **Values**: ``COURIER``, ``TIMES``\n   - **Description**: Font style used throughout the PDF document.\n   - **Example**::\n        ```python\n       config.font_type = FontType.COURIER\n        ```\n   - **Default**: ``TIMES``\n\n8. **Display PIS COFINS**\n   - **Type**: ``Bool``\n   - **Values**: ``True``, ``False``\n   - **Description**: Displays PIS and COFINS taxes in the DANFE totals.\n   - **Example**::\n        ```python\n       config.display_pis_cofins = True\n        ```\n   - **Default**: ``False``\n### Usage Example with Customization\n\nHere\u2019s how to set up a ``DanfeConfig`` object with a full set of customizations::\n\n```python\nfrom brazilfiscalreport.danfe import (\n    Danfe,\n    DanfeConfig,\n    DecimalConfig,\n    FontType,\n    InvoiceDisplay,\n    Margins,\n    ReceiptPosition,\n    TaxConfiguration,\n)\n\n# Path to the XML file\nxml_file_path = 'nfe.xml'\n\n# Load XML Content\nwith open(xml_file_path, \"r\", encoding=\"utf8\") as file:\n    xml_content = file.read()\n\n# Create a configuration instance\nconfig = DanfeConfig(\n    logo='path/to/logo.png',\n    margins=Margins(top=10, right=10, bottom=10, left=10),\n    receipt_pos=ReceiptPosition.BOTTOM,\n    decimal_config=DecimalConfig(price_precision=2, quantity_precision=2),\n    tax_configuration=TaxConfiguration.ICMS_ST,\n    invoice_display=InvoiceDisplay.FULL_DETAILS,\n    font_type=FontType.TIMES\n)\n\n# Use this config when creating a Danfe instance\ndanfe = Danfe(xml_content, config=config)\ndanfe.output('output_danfe.pdf')\n```\n\n## Credits \ud83d\ude4c\nThis is a fork of the [nfe_utils](https://github.com/edsonbernar/nfe_utils) project, originally created by [Edson Bernardino](https://github.com/edsonbernar).\n\n## Maintainer \ud83d\udee0\ufe0f\n[![Engenere](https://storage.googleapis.com/eng-imagens/logo-fundo-preto.webp)]([#](https://engenere.one/))\n",
    "bugtrack_url": null,
    "license": "GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007  Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.   This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below.  0. Additional Definitions.  As used herein, \"this License\" refers to version 3 of the GNU Lesser General Public License, and the \"GNU GPL\" refers to version 3 of the GNU General Public License.  \"The Library\" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below.  An \"Application\" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library.  A \"Combined Work\" is a work produced by combining or linking an Application with the Library.  The particular version of the Library with which the Combined Work was made is also called the \"Linked Version\".  The \"Minimal Corresponding Source\" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version.  The \"Corresponding Application Code\" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work.  1. Exception to Section 3 of the GNU GPL.  You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.  2. Conveying Modified Versions.  If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:  a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or  b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.  3. Object Code Incorporating Material from Library Header Files.  The object code form of an Application may incorporate material from a header file that is part of the Library.  You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:  a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.  b) Accompany the object code with a copy of the GNU GPL and this license document.  4. Combined Works.  You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:  a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.  b) Accompany the Combined Work with a copy of the GNU GPL and this license document.  c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.  d) Do one of the following:  0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.  1) Use a suitable shared library mechanism for linking with the Library.  A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.  e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)  5. Combined Libraries.  You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:  a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.  b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.  6. Revised Versions of the GNU Lesser General Public License.  The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.  Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License \"or any later version\" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.  If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library. ",
    "summary": "Python library for generating Brazilian auxiliary fiscal documents in PDF from XML documents.",
    "version": "0.4.3",
    "project_urls": {
        "homepage": "https://github.com/Engenere/BrazilFiscalReport"
    },
    "split_keywords": [
        "nfe",
        " danfe",
        " xml",
        " pdf",
        " documento",
        " fiscal",
        " auxiliar",
        " converter",
        " generator",
        " cce",
        " dacce"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f868f59c6d6e045b632f066fe5b835fc98cb6d51ec528b0d8f299d7aa2ff04c0",
                "md5": "eb6bb322753d0a238c6a806fe9844b8f",
                "sha256": "539269ac6b7f65d488c06a763a6d23fb07e297caad9674ca025919b79e33e0e3"
            },
            "downloads": -1,
            "filename": "BrazilFiscalReport-0.4.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "eb6bb322753d0a238c6a806fe9844b8f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 31320,
            "upload_time": "2024-10-10T19:28:16",
            "upload_time_iso_8601": "2024-10-10T19:28:16.110352Z",
            "url": "https://files.pythonhosted.org/packages/f8/68/f59c6d6e045b632f066fe5b835fc98cb6d51ec528b0d8f299d7aa2ff04c0/BrazilFiscalReport-0.4.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9f5b67bb2659ef1b3291896ed3040da51792ca423810eedf2e99fd03f0c3d870",
                "md5": "31faa9569b81a245ec2649d314fc9006",
                "sha256": "d18656a3bf220d60fe42ce807831d0339b5d90600b639e8cfd7faeb1e9efc319"
            },
            "downloads": -1,
            "filename": "brazilfiscalreport-0.4.3.tar.gz",
            "has_sig": false,
            "md5_digest": "31faa9569b81a245ec2649d314fc9006",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 29674,
            "upload_time": "2024-10-10T19:28:17",
            "upload_time_iso_8601": "2024-10-10T19:28:17.641955Z",
            "url": "https://files.pythonhosted.org/packages/9f/5b/67bb2659ef1b3291896ed3040da51792ca423810eedf2e99fd03f0c3d870/brazilfiscalreport-0.4.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-10 19:28:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Engenere",
    "github_project": "BrazilFiscalReport",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "brazilfiscalreport"
}
        
Elapsed time: 1.70443s