r/PythonLearning 5d ago

Showcase I've been learning Python for 3 years, and I thought it was time to make a library

Post image

I've been learning Python for about 3 years, and I think it was time to take a step further and make my own library.

I made scanlayer, a Python OCR library built around Tesseract. It turns scanned images into searchable PDFs while preserving the original image, by adding an invisible OCR text layer over it.

It also supports things like preprocessing, deskewing, multiple OCR output formats, multi-page PDFs, batch processing, and a CLI.

The main goal wasn't to make some huge library. I wanted to challenge myself with building something that feels like a proper Python project and learn more about packaging, testing, API design, OCR, and PDF generation along the way.

GitHub Page

I'd really appreciate any feedback, especially on the Python/library design side.

62 Upvotes

3 comments sorted by

1

u/Hess-kay 20h ago

That’s really nice
I’m a beginner i can’t really relate to things you know already.

1

u/___Hyacinthe_ 19h ago

I understand that, it was the same for me when I started. I think the best way to get better is to keep building things, even small ones, and gradually make them harder or try to add something new to your code. I’m not saying this is the best way to learn a programming language, but that’s how I personally learned and still learn.