bunbuttnofex4695/ccparser — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a small Python library called ccparser that helps people work with credit card numbers safely and cleanly. I want it to take messy text, find card numbers inside it, clean up spaces or separators, detect the likely card provider, and tell me if the number passes the Luhn check.

It should also format card numbers in a few useful ways, like grouped digits, masked numbers for display, and full numbers when the caller explicitly asks for that. Please handle masked card numbers too, so strings like only the last 4 digits are still useful for display or parsing where possible.

Keep the API simple for another developer to use, with clear function names, helpful errors, and short examples. Add tests for valid cards, invalid cards, provider detection, formatting, and text extraction. Include basic project files, documentation, and a quick usage example. Don’t build anything that stores cards or talks to payment processors.

Want more depth? Deep Reverse