# Phi Python SDK

Submit work, read results, and manage your organization from Python.

## Install and sign in

```bash
pip install dyno-phi
phi auth login
```

```python
from phi import PhiClient

with PhiClient() as phi:
    print(phi.quota.get())
```

The examples use a signed-in `PhiClient` named `phi`. Each call shows its required arguments, and the table under it lists every parameter.

## Resources

- [phi.artifacts](https://dynophi.com/docs/md/sdk/artifacts): List and download the files a run produced.
- [phi.billing](https://dynophi.com/docs/md/sdk/billing): Read credits and manage payments and auto-reload.
- [phi.datasets](https://dynophi.com/docs/md/sdk/datasets): Organize sequences into datasets within a project.
- [phi.designs](https://dynophi.com/docs/md/sdk/designs): Read and export the designs in a project.
- [phi.files](https://dynophi.com/docs/md/sdk/files): Upload a local file for use as a model input.
- [phi.job_types](https://dynophi.com/docs/md/sdk/job_types): Find models and validate their inputs and parameters.
- [phi.jobs](https://dynophi.com/docs/md/sdk/jobs): Submit a model job, follow its progress and wait for results.
- [phi.logs](https://dynophi.com/docs/md/sdk/logs): Read or follow a run's logs.
- [phi.projects](https://dynophi.com/docs/md/sdk/projects): Create projects and find the work they contain.
- [phi.quota](https://dynophi.com/docs/md/sdk/quota): Read credit usage and its history.
- [phi.run_admin](https://dynophi.com/docs/md/sdk/run_admin): Delete or restore runs as an organization admin.
- [phi.runs](https://dynophi.com/docs/md/sdk/runs): Read runs, follow their stages and resume a failed run.
- [phi.sequences](https://dynophi.com/docs/md/sdk/sequences): Read sequences, export scores and download structures.

## Client and error imports

Import these from `phi`. `AsyncPhiClient` has the same methods for use with `await`.

AsyncPhiClient, JobTypeSchema, PhiAuthError, PhiClient, PhiConfigError, PhiConflictError, PhiError, PhiInsufficientCreditsError, PhiNotFoundError, PhiRateLimitError, PhiServerError, PhiSignedOutError, PhiTimeoutError, PhiValidationError


---
Source: https://dynophi.com/docs/sdk. From the installed client, phi 0.4.2, 2026-11-23.
