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๏ƒ

word_join(
  iterable: Iterable[str],
  use_repr: bool = False,
  oxford: bool = False,
  delimiter: str = ',',
  connective: str = 'and',
  ) -> str

Join the given list of strings in a natural manner, with โ€˜andโ€™ to join the last two elements.

See more in domdf_python_tools.words.

strtobool(
  val: Union[str, int],
  ) -> bool

Convert a string representation of truth to True or False.

See more in domdf_python_tools.utils.

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.

head(
  obj: Union[Tuple, List, DataFrame, Series, String, HasHead],
  n: int = 10,
  ) -> Optional[str]

Returns the head of the given object.

See more in domdf_python_tools.utils.

Contents๏ƒ

View the Function Index or browse the Source Code.

Browse the GitHub Repository