Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

agutil 4.1.0

Latest
Compare
Choose a tag to compare
@agraubert agraubert released this 29 Mar 16:14
· 21 commits to master since this release
99a6d99
  • Added 3 new classes to serve as argparse argument type helpers when dealing with files and directories:
    • agutil.FileType accepts filenames while checking for valid file extensions and optional compression extensions
    • agutil.DirType accepts directory names
    • agutil.FOFNType accepts files containing file names (FOFN) while checking that the listed files have valid extensions and optional compression extensions
  • Callback objects returned by agutil.parallel.ThreadWorker and agutil.parallel.ProcessWorker now have the following new attributes
    • func : The function executed
    • args : The positional arguments given
    • kwargs : The keyword arguments given
    • poll() : A function which returns True when the background function has completed execution and is ready to return a result