Comparison
pytest-datadir vs pytest-datafiles
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
pytest plugin for test data directories and files
Maintained. Last release 4 weeks ago, commits in 2 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install pytest-datadirpy.test plugin to create a 'tmp_path' containing predefined files/directories.
Maintained. Last release 11 months ago, commits in 12 of the last 26 weeks. Weaker on release cadence and security practices.
$
pip install pytest-datafilesIn short
- pytest-datadir is the most used: 1.9M downloads a month, 30× more than pytest-datafiles.
- pytest-datafiles is better maintained: Pythie’s Index 63 against 49.
Side by side
| Metric | pytest-datadir | pytest-datafiles |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 49 | 63 |