provide-dir
Provides a directory with all its parent directories, if it does not yet exist
What it is and what it does
provide_dir is a minimal utility that wraps directory creation with a reporting mechanism. It takes a Path object and a sink function (typically print), then creates the directory and all parent directories if needed, writing a message to the sink to indicate whether the directory was newly created or already existed.
The package is straightforward: it solves the common task of ensuring a directory exists before writing to it, while also providing visibility into whether that directory was freshly made. It requires Python 3.9 or later and depends on colorama for output formatting.
Use it for:
- Ensure a log directory exists before writing application logs, with confirmation output.
- Set up nested configuration directories during application initialization.
- Create output directories in build or test scripts with visibility into what was created.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Creates a directory and all its parent directories if they don't exist, reporting the outcome to a provided sink function like print.
Yes, if you need simple directory creation with reporting. The package is abandoned but stable, carries no vulnerabilities, and has low install friction. Use it for straightforward mkdir-with-parents tasks where you want to know whether the directory was newly created. If you need active maintenance or complex filesystem operations, consider using pathlib.Path.mkdir directly.
Install
provide-dir on PyPI
pip
pip install provide-diruv
uv add provide-dirpoetry
poetry add provide-dirInstalling provide-dir
Before you install
Low friction to install. The package is abandoned (last commit 2022-04-13, 1584 days old) but carries no known vulnerabilities and depends only on colorama.
License in practice
Licensed under MIT (permissive), so you can use it freely in commercial and open-source projects without restriction.
Quickstart
from pathlib import Path
from provide_dir import provide_dir
needed_path = Path("/path/to/directory/with/subdirectories")
provide_dir(needed_path, print)
Requires Python 3.9 or later.
Verify before relying
- Whether colorama is actually used at runtime or only in development/testing.
- Whether the package handles edge cases like permission errors or symlinks gracefully.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — colorama |
| Maintenance | abandoned — 1,584 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 306,358/month — #7,787 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: provide_dir-0.1.2-py3-none-any.whl
Keywords: mkdir, make dir, make directory, recursive
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
fatfs-ngfatfs-ng wraps ChaN's FatFS library to create,…
permissive · top 5,000 on PyPI
rclone-pythonA Python wrapper that exposes rclone's cloud…
permissive · top 15,000 on PyPI
dirhashComputes a single hash value for an entire…
permissive · top 5,000 on PyPI
pathlib-mateExtends Python's pathlib.Path with convenience…
permissive · top 5,000 on PyPI
pathyPathy provides a pathlib-compatible interface…
permissive · top 5,000 on PyPI
scandirProvides faster directory iteration and…
permissive · top 5,000 on PyPI
pathlibProvides object-oriented filesystem path…
permissive · top 5,000 on PyPI
watchdogWatchdog monitors file system events across…
permissive · top 1,000 on PyPI
checksumdirComputes a single hash digest of all file…
permissive · top 15,000 on PyPI
pyrootutilsFinds your project root directory and…
permissive · top 5,000 on PyPI