> This page is for NeMo Fabric, version v0.4.0.
> For other versions, use one of these documentation indexes:
> - Latest (v0.4.0) (default): https://docs.nvidia.com/nemo/fabric/latest/llms.txt
> - dev: https://docs.nvidia.com/nemo/fabric/dev/llms.txt
> - v0.5.0: https://docs.nvidia.com/nemo/fabric/v0.5.0/llms.txt
> - v0.4.0: https://docs.nvidia.com/nemo/fabric/v0.4.0/llms.txt
> - v0.3.0: https://docs.nvidia.com/nemo/fabric/v0.3.0/llms.txt
> - v0.2.0: https://docs.nvidia.com/nemo/fabric/v0.2.0/llms.txt
> - v0.1.1: https://docs.nvidia.com/nemo/fabric/v0.1.1/llms.txt
> - v0.1.0: https://docs.nvidia.com/nemo/fabric/v0.1.0/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/fabric/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/fabric/_mcp/server.

# Service

> Prepare, attach, share, and release long-lived adapter services.

# <kbd>module</kbd> `nemo_fabric.service`

Long-lived service lifecycle support for the NeMo Fabric Python SDK.



---


## <kbd>class</kbd> `ServiceStatus`

Lifecycle state of a prepared or attached service.






### Inheritance

Direct bases: `str`, `Enum`.

### Values

The enum defines the following values:

| Name | Value |
| --- | --- |
| `ACTIVE` | `active` |
| `RELEASING` | `releasing` |
| `RELEASED` | `released` |
| `FAILED` | `failed` |

---


## <kbd>class</kbd> `Service`

One prepared or attached long-lived adapter service.

Create services with ``Fabric.prepare_service()`` or ``Fabric.attach_service()``. Use the object as an asynchronous context manager to guarantee release or detach.


---

### <kbd>property</kbd> handle

Return a detached snapshot of the service handle.

---

### <kbd>property</kbd> service_id

Return the unique identifier for this process-local service.

---

### <kbd>property</kbd> status

Return the current service lifecycle state.



---


### <kbd>method</kbd> `release`

```python
async def release() -> None
```

Stop an owned service or detach from a caller-owned service.

Release fails while active runtimes still reference the service. Repeated calls after a successful release are no-ops.




---

_This file was automatically generated via [lazydocs](https://github.com/ml-tooling/lazydocs)._