Metadata-Version: 2.1
Name: Akatosh
Version: 1.5.1
Summary: A simple implement for discrete events simulation.
Author-email: Yifei Ren <ryf0510@live.com>
Project-URL: Homepage, https://github.com/ulfaric/Akatosh
Project-URL: Bug Tracker, https://github.com/ulfaric/Akatosh/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# Akatosh
This is a light weighted disceret event simulation library. The name is from the Dragon God of Time in Elder Scroll. :)

# Install
    pip install --upgrade Akatosh
  
## How to use
Import modules:

    from Akatosh import Mundus, Actor
    
create actors, aka event:

There are serveral ways that you can create an event:
1. Create an event with lambda expression
    
        Actor(action = lambda: print("All hail dragonborn!"))
        
2. Create an event with defined functions:

        #funtion without arguments
        def hail():
            print("All hail dragonborn!")
        Actor(action = hail)
        
        #function with arguments
        def hail(message: str):
            print(message)
        Actor(action = hail, message = "All hail dragonborn!")
 
 3. Create an event by subclass:
 
         class Myevent(Actor):

            def action(self):
                print("All hail dragonborn!")

         Myevent()
         
 To start the simulation,
 
        Mundus.simulate(till=inf)
