You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
	
		
			630 B
		
	
	
	
			
		
		
	
	
			630 B
		
	
	
	
Build plugins
A plugin is a basic python function that takes positional arguments i.e one being request and the other config. We allow the function to have access to the request object (if data were submitted) and to QCMS configuration if any configuration data is needed.
<div class="source-code editor">
    <span class="keyword">import</span> numpy as np
    <span class="keyword">def</span> demo(**_args):
        req = _args['request']
        conf= _args['config']
        <span class="keyword">return</span> {"name":"foo","age":np.random.randint(0,100)}
</div>