Releases: camptocamp/anthem
Releases · camptocamp/anthem
0.7.0
0.6.0
0.4.0
0.3.0
0.2.0
Features
- Ability to log descriptions and timings in songs with the
context managerContext.log
and the decoratoranthem.log
.
from anthem import log
@log
def setup_company(ctx):
""" Setup company """
# do stuff
with ctx.log('other stuff'):
# do other stuff
@log
def load_data(ctx):
""" Load data """
# load
@log
def main(ctx):
setup_company(ctx)
load_data(ctx)
If we run anthem on main
, we will get:
running... main
running... Setup company
running... other stuff
other stuff: 0.850s
Setup company: 1.100s
running... Load data
Load data: 2.900s
main: 4.000s