provide_directory
Function to create the given path, including potential parent directories. Writes to the provided sink (e.g. print) whether the directory was created or whether it already existed.
Dependencies
None
Usage
from pathlib import Path
from provide_dir import provide_dir
needed_path = Path("/path/to/directory/with/subdirectories")
provide_dir(needed_path, print)
Installation
Pip
pip install provide_dir
Developer's Installation
You can clone the repository and install it with pip install -e /path/to/local/repository.
Test dependencies
To run the tests you will need
Metadata
Release files for provide-dir 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| provide_dir-0.1.2.tar.gz | 4.0 kB | Without provenance | Details for provide_dir-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| provide_dir-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for provide_dir-0.1.2-py3-none-any.whl |
Total release size: 7.8 kB
Release files / provide_dir-0.1.2.tar.gz
| Download URL | provide_dir-0.1.2.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74756777bfa2d794bc9df4f3630797e03844a1612f0f00e0d98567e34674e146
|
|
BLAKE2b-256 checksum How to use checksums |
b8c0b7bec1a9bbb6f7a1843359509427c429152a6ea37db5cd4bbcb4e818d414
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
|
Release files / provide_dir-0.1.2-py3-none-any.whl
| Download URL | provide_dir-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
214f7c00d3962aa41fa2e8b36451197823d5ea2a0526c085376fb3687bdc5fa1
|
|
BLAKE2b-256 checksum How to use checksums |
4981d7ebfd2aab814108fa67676bf8277f4c2861b4ff63cd07e46f9e9125069d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
|
Security for provide-dir 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.