Metadata-Version: 2.3
Name: archil-api-types
Version: 0.0.109
Summary: Generated Python types and client for the Archil control-plane API and process protocol
Keywords: archil,openapi,protobuf
Author: Archil, Inc.
Author-email: Archil, Inc. <support@archil.com>
License: MIT License
         
         Copyright (c) 2026 Archil, Inc.
         
         Permission is hereby granted, free of charge, to any person obtaining a copy
         of this software and associated documentation files (the "Software"), to deal
         in the Software without restriction, including without limitation the rights
         to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         copies of the Software, and to permit persons to whom the Software is
         furnished to do so, subject to the following conditions:
         
         The above copyright notice and this permission notice shall be included in all
         copies or substantial portions of the Software.
         
         THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
         SOFTWARE.
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Typing :: Typed
Requires-Dist: attrs>=22.2.0
Requires-Dist: httpx>=0.23.0,<0.29.0
Requires-Dist: python-dateutil>=2.8.0,<3
Requires-Dist: protobuf>=5.28.3 ; extra == 'dev'
Requires-Dist: pytest>=8 ; extra == 'dev'
Requires-Dist: ruff>=0.14 ; extra == 'dev'
Requires-Dist: protobuf>=5.28.3 ; extra == 'process'
Requires-Python: >=3.10
Project-URL: Documentation, https://docs.archil.com
Project-URL: Homepage, https://archil.com
Provides-Extra: dev
Provides-Extra: process
Description-Content-Type: text/markdown

# archil-api-types

Generated Python types for Archil: a low-level client for the control-plane API,
and the messages of the sandbox process protocol. It is the Python counterpart of
the npm package [`@archildata/api-types`](https://www.npmjs.com/package/@archildata/api-types),
generated from the same files and released at the same version.

```sh
pip install archil-api-types            # control-plane API client
pip install 'archil-api-types[process]' # and the process protocol's messages
```

```python
from archil_api_types import AuthenticatedClient
from archil_api_types.api.disks import get_disk

client = AuthenticatedClient(
    base_url="https://api.archil.com",
    token="key-...",
)

disk = get_disk.sync(id="dsk-...", client=client)

async def fetch_disk():
    return await get_disk.asyncio(id="dsk-...", client=client)
```

```python
from archil_api_types import process_pb2

frame = process_pb2.ClientFrame(channel_id=1, start=process_pb2.Start(command="ls"))
```

The client is generated from `api/controlplane/openapi.yaml` and the process
messages from `api/process/process.proto` in this repository. Use the high-level
[`archil`](https://pypi.org/project/archil/) package for the recommended disk,
object, sandbox, and agent-tool APIs. Earlier releases were published as
`archil-openapi`, with the module `archil_openapi`.

## Publishing

Changes to either file generate and test this package on every pull request.
Every change to `main` that touches them, or this package or the npm one,
publishes `archil-api-types` and `@archildata/api-types` together from
`api-clients-release.yml`. The version is the next patch after the latest
`api-types/vX.Y.Z` tag, and the release tags its commit with it. Re-running a
release reuses the commit's tag and publishes only what is not yet on its
registry.

PyPI trusted publishing for `archil-api-types` must use repository
`archil-data/archil`, workflow `api-clients-release.yml`, and environment `pypi`.
