# SPX-PYTHON

**SPX-PYTHON**

`spx-python` is the officially supported client wrapper for the SPX Server API v3. It turns the REST surface into a Pythonic, dictionary-like interface and ships with helper utilities tailored for automated tests, CI pipelines, and exploratory notebooks.

Use this section to:

* Configure the wrapper against local or remote SPX deployments.
* Reuse the helpers that load models, create instances, and wait for state transitions.
* Capture unit-test assertions and test case results into SPX instances using `unittest` mixins and `pytest` plugins.
* Understand how the client surfaces faults and correlation IDs so automation can react intelligently.
* Extend the transport layer (e.g., plug in FastAPI `TestClient` or custom mocks) without rewriting call sites.

The section is split into three guides:

* [Overview & Installation](/spx-development-guide/spx-python-client-wrapper/overview-and-installation.md) — how to install the package, initialize the client, and understand the available configuration toggles.
* [Usage & Examples](/spx-development-guide/spx-python-client-wrapper/usage-and-examples.md) — practical snippets covering attribute access, model/instance management, transparent mode, and the helper toolkit used across the `spx-examples` test suite.
* [Testing Helpers & Logging Integration](/spx-development-guide/spx-python-client-wrapper/testing-helpers-and-logging.md) — how to integrate the helper toolkit with `unittest` and `pytest` to log test runs into SPX attributes.
* [Advanced & Best Practices](/spx-development-guide/spx-python-client-wrapper/advanced-and-best-practices.md) — deeper coverage of error handling, fault introspection, custom transports, and strategies for reliable integration tests.

Each page references real code from `spx_python.client`, `spx_python.helpers`, and the regression tests found in the `spx-python` and `spx-examples` repositories so you can cross-check behaviour quickly.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.simplephysx.com/spx-development-guide/spx-python-client-wrapper.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
