Metadata-Version: 2.1
Name: Jaspion
Version: 0.2
Summary: FreeSwitch Event Handler based in Flask.
Home-page: https://github.com/Otoru/Jaspion
Author: Vitor Hugo de Oliveira Vargas
Author-email: vitor.hugo@sippulse.com
License: MIT
Project-URL: Bug Reports, https://github.com/Otoru/Jaspion/issues
Project-URL: Source, https://github.com/Otoru/Jaspion
Description: # Jaspion
        
        Python module developed to work with ESL (FreeSwitch).
        
        ## Installation Instructions
        
        You can install the package in two ways:
        ```bash
        $ pip install jaspion                           # From pypi
        $ pip install https://github.com/Otoru/jaspion  # From source code
        ```
        
        ## Example
        This is a simple example:
        
        ```python 
        from jaspion import Jaspion
        
        
        app = Jaspion(__name__)
        
        @app.handle('sofia::register')
        @app.filtrate('from-user', '1000')
        @app.haskey('from-host')
        def register(event):
            domain = event['from-host']
            username = event['from-user']
            date = event['Event-Date-Local']
        
            print(f'[{date}] {username}@{domain} - Registred.')
        
        @app.handle('sofia::unregister')
        @app.filtrate('from-user', '1000')
        @app.haskey('from-host')
        def unregister(event):
            domain = event['from-host']
            username = event['from-user']
            date = event['Event-Date-Local']
        
            print(f'[{date}] {username}@{domain} - Unregistred.')
        
        
        if __name__ == "__main__":
            app.run('127.0.0.1', 8021, 'ClueCon')
        ```
        
        ## To-Do List
        - [X] Create the decorator to handle events.
        - [ ] Create a CLI to run projects.
        - [ ] Create filter to request only the marked events.
        - [ ] Create the Documentation.
        
Keywords: ESL,FreeSwitch
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: Telecommunications Industry
Classifier: Natural Language :: Portuguese (Brazilian)
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Topic :: System :: Networking
Description-Content-Type: text/markdown
Provides-Extra: dev
