multisched

Een lichtgewicht schroefdraadplanner voor Python-functies
Download nu

multisched Rangschikking & Samenvatting

Advertentie

  • Rating:
  • Vergunning:
  • AGPL v3
  • Prijs:
  • FREE
  • Naam uitgever:
  • Adam Tauber
  • Uitgever website:
  • https://github.com/asciimoo/

multisched Tags


multisched Beschrijving

Multisched is een lichtgewicht functiescheduler module voor Python.usage```phonfrom multisched importscheduleriMport times = planner () Def timestamp (en): print '% .2f:% S'% (Time.time (), S) Klasse Action (): Def __init __ (zelf, naam): zelf .__ Name__ = naam zelf.call_counter = 0 Def __call __ (zelf): self.call_counter + = 1 print 'I AM% S (% D)'% (Zelf .__ Name__, self.call_counter) # ------------------------------------. # | # Taak Params: | # | # LoopLay: Float, Vereist | # initDelay: float, standaard = 0 | # threads: int, standaard = 0 | # | # ----------------------- ----------- `@ S.ADDTASK (LOOGDELAY = 1.3) DEF TAKKEN1 (): TIMESTAMP ('TASK1') @ S.ADDTASK (LUSDELAY = 1.0, INITDELAY = 3) DEF TAAK2 (): Tijdstip ('Task2') Time.Sleep (1.6) Tijdstempel ('Task2') @ S.ADDTASK (LoopDelay = 1.1, Threads = 4) Def Task3 (): Timestamp ('Task3') Time.Sleep (4.4) Tijdstempel ('Task3 NEER') S.ADDTASKS ({'ACTIE': ACTIE ('Agent D'% N), 'LoopLay': 0.6, 'InitDelay': 1.1, 'Threads': 0} voor n in Xrange (42 )) PRINT S.Startalltasks () Probeer: Raw_Input () E xcept: passs.stopalltasks () de startpagina van het product


multisched Gerelateerde software

xworkflows

Een bibliotheek implementeren van workflows (of state-machines) voor Python-projecten ...

80

Downloaden