semvec/pypi-packages huggingface dataset:
inference-interface 0.0.3
Functions to read, convert and handle toyMC simulations, fit results and templates used by the XENONnT inference codes
Requires Python: >=3.8

# inference_interface
Common format and handlers for inference toyMC, templates and fit results

[![PyPI version shields.io](https://img.shields.io/pypi/v/inference_interface.svg)](https://pypi.python.org/pypi/inference_interface/)


0.0.3 / 2024-08-27
------------------
* Enable returning metadata by @hammannr in https://github.com/XENONnT/inference_interface/pull/7
* Fix typos by @yuema137 in https://github.com/XENONnT/inference_interface/pull/10
* Better metadata loading for toyfiles by @hammannr in https://github.com/XENONnT/inference_interface/pull/8
* Fix hist1d interface by @yuema137 in https://github.com/XENONnT/inference_interface/pull/9
* Better treatment of empty dicts by @hammannr in https://github.com/XENONnT/inference_interface/pull/11

New Contributors
* @hammannr made their first contribution in https://github.com/XENONnT/inference_interface/pull/7
* @yuema137 made their first contribution in https://github.com/XENONnT/inference_interface/pull/10

**Full Changelog**: https://github.com/XENONnT/inference_interface/compare/v0.0.2...v0.0.3
n8n-py 0.0.6
Python SDK for n8n-nodes-python-function
Requires Python: >=3.8

# n8n_py

The n8n_py SDK connects the [n8n-nodes-python-function](https://www.npmjs.com/package/n8n-nodes-python-function) custom node with your python functions.

## Examples

### Hello World

Returns a hello world json response

```python
from n8n_py import expose_function, String
from n8n_py.handler import handle

@expose_function("Hello World", "returns a friendly greeting", {
	"name": String(friendly_name="Name", description="Name of person to greet", required=True, default="Alice")
})
def hello_world(name: str): dict[str, str]: # Exposed functions must return a JSON serializable dictionary
	return {
		"greeting": f"Hello {name}!"
	}

handle() # Starts the n8n_py server and exposes the function declared above
```

### Multi-File Projects

n8n_py can handle functions from anywhere as long as they are imported into the handler, and have the @expose_function decorator

#### File Structure

```
multi-file/
	mapping.py
	hello_world.py
```

_hello_world.py_

```python
from n8n_py import expose_function, String

@expose_function("Hello World", "returns a friendly greeting", {
	"name": String(friendly_name="Name", description="Name of person to greet", required=True, default="Alice")
})
def hello_world(name: str): dict[str, str]: # Exposed functions must return a JSON serializable dictionary
	return {
		"greeting": f"Hello {name}!"
	}
```

_mapping.py_

```python
from n8n_py.handler import handle
import hello_world as _ # Includes the exposed function.

handle() # Starts the n8n_py server and exposes all imported functions
```