Metadata-Version: 2.1
Name: argparsedirs
Version: 0.2.0
Summary: A simple extension for argparse to allow readable/writeable dir types
License: GPLv3
Author: Martin Baláž
Author-email: martin.balaz@trojsten.sk
Requires-Python: >=3.11,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Description-Content-Type: text/markdown

This is a very simple action for argparse that allows
you to specify a readable or a writeable directory as an `argparse` action.
I found it on StackOverflow years ago and used it since then,
unfortunately I cannot find the original source now.

I guess it would be best to have this added directly into `argparse` anyway.

### Usage
Just import and use as an action:

    import argparse
    import argparsedirs

    argparser = argparse.ArgumentParser()

    argparser.add_argument('indir', type=argparsedirs.ReadableDirType)
    argparser.add_argument('outdir', type=argparsedirs.WriteableDirType)

    args = argparser.parse_args()

