Skip to content

Conversation

@OlivierDupre
Copy link

  1. Added capability to sort based on the number of badges per page, so the first badge is on top of the second (on top of the 3rd and so on) instead of having them all on the same page.

  2. Added capability to generate QRCodes on the fly, instead of giving a list of images to insert

- generating QRCodes on the fly
- include emails in the QRCodes
- sorted badges effectively, with 4 A6 badges per A4 page (eg: the first badge is on top of the second, on top the third and so on, not on the same page.)
- generating QRCodes on the fly
- include emails in the QRCodes
- sorted badges effectively, with 4 A6 badges per A4 page (eg: the first badge is on top of the second, on top the third and so on, not on the same page.)
@toffan
Copy link
Collaborator

toffan commented Oct 5, 2025

Hello and thank you for contributing to pybadges.

This PR brings in some interesting features to the project! However, it also steers the project in a specific use case while we’d like to keep the project as generic and flexible as possible. That said, here are a few things we’d need to change before we can merge it:

  • The current implementation fixes the layout to a 2x2 grid per page, regardless of badge size. One of pybadges' key features is its flexibility in fitting as many badges as possible on a single page.
  • QR code generation is currently always enabled. It would be great to make this an optional (opt-in) feature via the CLI, since not all users may need QR codes.
  • The new sorting algorithm is enforced by default. We’d like to preserve the ability to print badges in the same order as they appear in the input CSV file.
  • There are a few leftover debug comments and scaffolding pieces to clean up, and it looks like the new poetry.lock file is invalid.

As a general recommendation, I’d also suggest building on top of existing features rather than replacing them entirely, to help keep the codebase consistent and maintainable. As such, I would recommand to make these new features more modular.

Thank you again for your contribution! With deeper refactoring, these features could integrate really well in the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants