PyKX Execution Classes
          pykx.Q
pykx.Q()
    See Also
Abstract base class for all interfaces between Python and q.
_register
_register(name=None, path=None)
    Obtain the definitions from a q/k script.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
name | 
          
                Optional[str]
           | 
          Name of the context to be loaded. If   | 
          
                None
           | 
        
path | 
          
                Optional[Union[Path, str]]
           | 
          Path to the script to load. If   | 
          
                None
           | 
        
Returns:
| Type | Description | 
|---|---|
                str
           | 
          The attribute name for the newly loaded module.  | 
        
          pykx.EmbeddedQ
pykx.EmbeddedQ()
    
          Bases: Q
Interface for q within the current process; can be called to execute q code.
__call__
__call__(query, *args, wait=None, sync=None)
    Run code in the q instance.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
query | 
          
                Union[str, bytes, wrappers.CharVector]
           | 
          The code to run in the q instance.  | 
          required | 
*args | 
          
                Any
           | 
          Arguments to the q query. Each argument will be converted into a   | 
          
                ()
           | 
        
wait | 
          
                Optional[bool]
           | 
          Keyword argument provided solely for conformity with   | 
          
                None
           | 
        
Returns:
| Type | Description | 
|---|---|
                wrappers.K
           | 
          The value obtained by evaluating the   | 
        
Raises:
| Type | Description | 
|---|---|
                LicensedException
           | 
          Attempted to execute q code outside of licensed mode.  | 
        
                TypeError
           | 
          Too many arguments were provided - q queries cannot have more than 8 parameters.  |