Time

Inheritance diagram of musify.processors.time

Processor that converts representations of time units to python time objects.

Classes:

TimeMapper(func)

Map of time character representation to it unit conversion from seconds

class musify.processors.time.TimeMapper(func)

Bases: DynamicProcessor, PrettyPrinter

Map of time character representation to it unit conversion from seconds

Methods:

map(value)

Run the mapping function

seconds(**kwargs)

Call self as a function.

minutes(**kwargs)

Call self as a function.

hours(**kwargs)

Call self as a function.

days(**kwargs)

Call self as a function.

weeks(**kwargs)

Call self as a function.

months(**kwargs)

Call self as a function.

as_dict()

Return a dictionary representation of the key attributes of this object.

map(value)

Run the mapping function

seconds(**kwargs)

Call self as a function.

Return type:

Any

minutes(**kwargs)

Call self as a function.

Return type:

Any

hours(**kwargs)

Call self as a function.

Return type:

Any

days(**kwargs)

Call self as a function.

Return type:

Any

weeks(**kwargs)

Call self as a function.

Return type:

Any

months(**kwargs)

Call self as a function.

Return type:

Any

as_dict()

Return a dictionary representation of the key attributes of this object.

Return type:

dict[str, Any]

The results of this function are used to produce the following:
  • A JSON representation of the object when calling json()

  • The string representation of the object when calling str() on the object

  • The representation of the object when calling repr() on the object