Here is a module to handle bank statements which come as CAMT053 single daily statements, packed into zip archives - see Trytoncommunity.
I do not see the point of posting about such a low-quality module.
This repository is only 40 minutes old, the package has no release, it contains a copy of a cookiecutter template, and it has 0 tests.
I cannot see why someone would want to install such a sloppy module (probably AI generated).
I do not think the message board should be your personal blog; it should be about content that may be interesting to a large audience.
I’m wondering if it won’t be better to just have a tool on statement import to detect if files are a zip file containing multiple files and support such feature in base.
It will allow users to import multiple files at once.
I absolutely agree. But we had this argument, so things did not proceed.
NB: This little module solves a real world problem, so I actually see a point in publishing it.
Well nobody has invested in implementing the proper and safe solution (instead of burning tokens).
But it has a security issue because zipfile is not safe against ZIP bomb.
So it should not be used for any serious production deployment.
Well. IMHO - if your bank does not provide safe files, and if your staff cannot make sure that only safe data are fed into Tryton - you’re really in trouble anyway.
I guess you do not understand how to secure a software if you rely on the user to use only safe input.
A post was merged into an existing topic: Import multiple CAMT-Files in one step
A practical middle ground: the zip handling could reject archives with too many entries or an excessive total uncompressed size using ZipInfo.file_size, and read each CAMT member directly rather than extracting to disk. Nested archives, encrypted members and path traversal would also need rejection. That addresses the ZIP-bomb concern without requiring the base import to change first.
The data is delivered in encrypted form (there’s also a Python library) … and it’s then a ZIP file