pyfpdf
pyfpdf copied to clipboard
Maintenance: Is this project dead?
I see a couple of indicators, that this project might be dead:
- Last commit is from January 2018 - that is more than 5 years ago!
- Broken links https://pypi.org/project/fpdf/ links via "Homepage" to a google code page
- Python 2.5 to 3.4 support: Python 2 can probably be dropped, but Python 3.11 should be added
I've created the github organization https://github.com/py-pdf for Python projects around PDF. While I would very much prefer it this project came back to live by itself, it might be an option for you to move the project there / give me permission to merge PRs / update the package on PyPI.
https://github.com/jazzband would be another option
There is also https://pypi.org/project/fpdf2/ (history). I'm not sure if anybody has attempted to merge fpdf2 back into fpdf.
I just saw https://github.com/reingart/pyfpdf/issues/171
@reingart It would be nice to have an official note that fpdf2 is the way to go forward. I suggest to do the following:
- Merge https://github.com/reingart/pyfpdf/pull/208
- Release one last patch update to PyPI so that those changes become visible
- Archive this repository: It's still visible, but clear to everybody that it's no longer under development.
It seems like this project is no longer maintained and has been forked as fpdf2. fpdf2 uses the same import fpdf statement as this one does, which is really confusing and causes issues due to API changes between the two.
Consider for example seeing this python script:
from fpdf import FPDF
pdf = FPDF()
pdf.add_page(format=(100, 100))
content.set_fill_color(0,0,0)
content.rect(0, 0, 100, 100, 'F')
content.output('result.pdf')
Based on what you see, you'd want to run pip install fpdf in order to use the script, which succeeds. However that results in the following error, as the API has been changed in fpdf2.
$ python example.py
Traceback (most recent call last):
File "/home/user/example.py", line 4, in <module>
pdf.add_page(format=(100, 100))
TypeError: add_page() got an unexpected keyword argument 'format'
Looking up the error, you can see other people are having similar issues [1, 2, 3, 4].
It seems to me that the best solution would be to have pip install fpdf install fpdf2, but that requires permission from @reingart.
If not, there should be clear distinction between the two projects, e.g. use import fpdf2, so it is clear which one of the two a Python script was based on.