domdf_python_tools๏
Helpful functions for Pythonโ๐โ๐ ๏ธ
Docs |
|
---|---|
Tests |
|
PyPI |
|
Anaconda |
|
Activity |
|
QA |
|
Other |
Note
Before version 3 domdf_python_tools
was licensed under the LGPLv3+.
Version 3 and later are licensed under the MIT License.
Installation๏
python3 -m pip install domdf_python_tools --user
First add the required channels
conda config --add channels https://conda.anaconda.org/conda-forge
conda config --add channels https://conda.anaconda.org/domdfcoding
Then install
conda install domdf_python_tools
python3 -m pip install git+https://github.com/domdfcoding/domdf_python_tools@master --user
Highlights๏
StringList( iterable:Iterable
[String
] =()
, convert_indents:bool
=False
, )
A list of strings that represent lines in a multiline string.
See more in domdf_python_tools.stringlist
.
TemporaryPathPlus( suffix:Optional
[str
] =None
, prefix:Optional
[str
] =None
, dir:Union
[str
,Path
,PathLike
,None
] =None
, )
Securely creates a temporary directory using the same rules as tempfile.mkdtemp()
.
The resulting object can be used as a context manager.
On completion of the context or destruction of the object
the newly created temporary directory and all its contents are removed from the filesystem.
See more in domdf_python_tools.paths
.
PathPlus(*args, **kwargs)
Subclass of pathlib.Path
with additional methods and a default encoding of UTF-8.
See more in domdf_python_tools.paths
.