Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Project + Update README #4

Merged
merged 2 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ jobs:
python -m pip install --upgrade pip setuptools fpdf2
- name: Test
run: |
python3 -m unittest test/test_PyFiscalReport.py
python3 -m unittest test/test_brazil_fiscal_report.py
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# PyFiscalReport
# BrazilFiscalReport

Library to generate DANFE PDFs (portrait and landscape), DACCe from xml's.
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 )

Dependencies:

Expand Down
8 changes: 4 additions & 4 deletions PyFiscalReport/pdf_docs.py → brazilfiscalreport/pdf_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

import re
import xml.etree.ElementTree as ET
from PyFiscalReport.xfpdf import xFPDF
from brazilfiscalreport.xfpdf import xFPDF


def getdateUTC(date_utc):
Expand Down Expand Up @@ -613,9 +613,9 @@ def __init__(self, xmls=None, image=None, cfg_layout="ICMS_ST", receipt_pos="top
def recibo_p(self):
if self.receipt_pos == "top":
lin = 10
self.dashed_line(
10, lin + 19, 200, lin + 19, dash_length=0.5, space_length=1
)
self.set_line_width(0.5)
self.line(10, 10, 100, 10)
self.set_line_width(width=0.2)
else:
lin = self.lin_adic + self.height_adic + 2
self.dashed_line(10, lin, 200, lin, dash_length=0.5, space_length=1)
Expand Down
File renamed without changes.
9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
from setuptools import setup

setup(
name="PyFiscalReport",
name="BrazilFiscalReport",
version="0.0.1",
description="Python converter for Brazilian Electronic Invoice",
long_description="""
Python converter for Brazilian Electronic Invoice (NFe)
XMLs to Brazilian Auxiliary Electronic Invoice Document (DANFE)
Python library for generating Brazilian auxiliary
fiscal documents in PDF from XML documents.
""",
url="https://github.com/Engenere/PyFiscalReport",
url="https://github.com/Engenere/BrazilFiscalReport",
author="Cristiano Mafra Junior",
license="AGPL-3.0",
)
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import os
import unittest

from PyFiscalReport import pdf_docs
from brazilfiscalreport import pdf_docs


class TestPynfedance(unittest.TestCase):
class TestBrazilFiscalReport(unittest.TestCase):
def setUp(self):
super().setUp()

Expand Down
Loading