Metadata-Version: 2.1
Name: easy-events
Version: 1.4.1
Summary: An universal wrapper (and useful tool) to make event / commands in python
Home-page: https://github.com/ThePhoenix78/Commands
Author: ThePhoenix78
Author-email: thephoenix788@gmail.com
License: MIT
Download-URL: https://github.com/ThePhoenix78/Commands/tarball/master
Description: # easy-events
        
        **A library that help you to manage events**
        
        ## Getting started
        
        1. [**Installation**](#installation)
        2. [**Usages**](#usages)
        3. [**Code example**](#code-example)
        4. [**Documentation**](#documentation)
        
        ## Installation
        
        `pip install easy-events`
        
        GitHub : [Github](https://github.com/ThePhoenix78/Commands)
        
        
        ## Usages
        
        text
        
        ## Code example
        
        ```py
        from easy_events import Commands
        
        # create an event or use it in a class
        client = Commands()
        
        # create an event
        @client.event("event_name")
        def test1(data):
        	do_action_here
        
        
        # trigger the event
        client.process_data("event_name")
        
        # create another event
        # you can put as much parameters as you want
        @client.event("second_event")
        def test1(data, arg1, arg2, *, arg3):
        	# data is the default parameter, it contain some basic informations that you can format as you want
        	do_action_here
        
        
        # trigger the event
        client.process_data({"command": "second_event", "parameters": ["arg1", "arg2", "arg3", "arg4"]})
        # here the parameters will be :
        # arg1 = arg1
        # arg2 = arg2
        # arg3 = [arg3, arg4]
        
        ```
        
Keywords: wrapper,event,commands,command
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
