Skip to content

mbiemann/python-simple-toolbelt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-simple-toolbelt

A growing collection of simple utilities functions for Python

Installation

pip install simple-toolbelt

Functions


path.ensure_dir

Create the directories, include subs, if don't exist.

from simple_toolbath.path import ensure_dir

with open(ensure_dir('this/path/to/file.txt'), 'w') as f:
    ...