taukit/persistence.py
def inc(self, num=1, print_num=True, msg="\rPersisting {item_name} no. {n}", **kwds):
        """Increment counter of processed items.

        Parameters
        ----------
        num : int
            Number of items add.
        print_num : bool
            Should number of processed items be printed to *stdout*.
        item_name : str
            Optional item name to overwrite instance level configuration.
        msg : str
            Formattable string with a message.
            It needs to have at least two interpolated parts with named
            `item_name` and `n`. More named interpolated parts may be used
            adn they can be supplied via `**kwds`.
        **kwds :
            Optional keyword arguments used to format the message string.
        """
        self.counter += num
        if print_num and self.counter > 1:
            safe_print(msg.format(
                item_name=self.item_name,
                n=self.counter,
                **kwds
            ), nl=False)
        return self.counter
Increment counter of processed items.

        Parameters
        ----------
        num : int
            Number of items add.
        print_num : bool
            Should number of processed items be printed to *stdout*.
        item_name : str
            Optional item name to overwrite instance level configuration.
        msg : str
            Formattable string with a message.
            It needs to have at least two interpolated parts with named
            `item_name` and `n`. More named interpolated parts may be used
            adn they can be supplied via `**kwds`.
        **kwds :
            Optional keyword arguments used to format the message string.
        
Increment counter of processed items.
Parameters

num : int
Number of items add.
print_num : bool
Should number of processed items be printed to *stdout*.
item_name : str
Optional item name to overwrite instance level configuration.
msg : str
Formattable string with a message.
It needs to have at least two interpolated parts with named
`item_name` and `n`. More named interpolated parts may be used
adn they can be supplied via `**kwds`.
kwds :
Optional keyword arguments used to format the message string.
Increment counter of processed items . Parameters num : int Number of items add . print_num : bool Should number of processed items be printed to * stdout * . item_name : str Optional item name to overwrite instance level configuration . msg : str Formattable string with a message . It needs to have at least two interpolated parts with named ` item_name ` and ` n ` . More named interpolated parts may be used adn they can be supplied via ` ** kwds ` . kwds : Optional keyword arguments used to format the message string .
def inc(self, num=1, print_num=True, msg="\rPersisting {item_name} no. {n}", **kwds):
        self.counter += num
        if print_num and self.counter > 1:
            safe_print(msg.format(
                item_name=self.item_name,
                n=self.counter,
                **kwds
            ), nl=False)
        return self.counter
def inc ( self , num = 1 , print_num = True , msg = "\rPersisting {item_name} no. {n}" , ** kwds ) : self . counter += num if print_num and self . counter > 1 : safe_print ( msg . format ( item_name = self . item_name , n = self . counter , ** kwds ) , nl = False ) return self . counter
Increment counter of processed items.
Increment counter of processed items .
"""Increment counter of processed items.

        Parameters
        ----------
        num : int
            Number of items add.
        print_num : bool
            Should number of processed items be printed to *stdout*.
        item_name : str
            Optional item name to overwrite instance level configuration.
        msg : str
            Formattable string with a message.
            It needs to have at least two interpolated parts with named
            `item_name` and `n`. More named interpolated parts may be used
            adn they can be supplied via `**kwds`.
        **kwds :
            Optional keyword arguments used to format the message string.
        """
self
num
print_num
msg