domdf_python_tools๏ƒ

Helpful functions for Pythonโ€‚๐Ÿโ€‚๐Ÿ› ๏ธ

Docs

Documentation Build Status Docs Check Status

Tests

Linux Test Status Windows Test Status macOS Test Status Coverage

PyPI

PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel

Anaconda

Conda - Package Version Conda - Platform

Activity

GitHub last commit GitHub commits since tagged version Maintenance PyPI - Downloads

QA

CodeFactor Grade Flake8 Status mypy status

Other

License GitHub top language Requirements Status

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

Highlights๏ƒ

Plural(singular: str, plural: str)

Represents a word as its singular and plural.

See more in domdf_python_tools.words.

count(
  start: ~AnyNum = 0,
  step: ~AnyNum = 1,
  ) -> Iterator[~AnyNum]

Make an iterator which returns evenly spaced values starting with number start.

See more in domdf_python_tools.iterative.

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.