Create a random file/directory tree/structure in python fortesting purposes.
Project description
Description
Create a random file and directory tree/structure for testing purposes.
Installation
AnkiPandas can be installed with the python package manager:
pip3 install randomfiletree
For a local installation, you might want to use the --user switch of pip. You can also update your current installation with pip3 install --upgrade ankipandas.
For the latest development version you can also work from a cloned version of this repository:
git clone https://github.com/klieret/randomfiletree/
cd randomfiletree
pip3 install --user .
Usage
Command line interface:
randomfiletree <folder> -f <file creation probability> -d <directory creation probability> -r <repeat>
Type randomfiletree -h to see all supported arguments.
If the executable is not in your path after installation, you can also use python3 -m randomfiletree <arguments as above>.
import randomfiletree
randomfiletree.create_random_tree("/path/to/basedir", nfiles=2.0, nfolders=0.5, maxdepth=5, repeat=4)
Randomfiletree will now crawl through all directories in /path/to/basedir and create new files with a probability
Take a look at the documentation to find out more about the additional functionality provided.
License
This software is lienced under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for RandomFileTree-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8b4842635ae75d37ee7e0d640a44b0d0bd8b395bc6e1ab20df7e405aeb23283 |
|
MD5 | 56942e1b642fd49bd3056c8d0df16698 |
|
BLAKE2b-256 | 681692e4b12a7af8e7f3954ce2f496fbce4d2b9099af7a55eb0026afda58b2a8 |