Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"cliVersion": "3.51.2",
"cliVersion": "3.70.1",
"generatorName": "fernapi/fern-python-sdk",
"generatorVersion": "4.51.1",
"generatorVersion": "4.55.1",
"generatorConfig": {
"client_class_name": "Lattice",
"package_name": "anduril"
},
"sdkVersion": "4.2.0"
"sdkVersion": "4.3.0"
}
25 changes: 8 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ Instantiate and use the client with the following:
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
client.entities.long_poll_entity_events(
session_token="sessionToken",
)
Expand All @@ -74,10 +71,7 @@ import asyncio

from anduril import AsyncLattice

client = AsyncLattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = AsyncLattice()


async def main() -> None:
Expand Down Expand Up @@ -111,10 +105,7 @@ The SDK supports streaming responses, as well, the response will be a generator
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
response = client.entities.stream_entities()
for chunk in response.data:
yield chunk
Expand All @@ -127,10 +118,7 @@ Paginated requests will return a `SyncPager` or `AsyncPager`, which can be used
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
response = client.objects.list_objects()
for item in response:
yield item
Expand Down Expand Up @@ -181,6 +169,7 @@ client = Lattice(
)
response = client.entities.with_raw_response.long_poll_entity_events(...)
print(response.headers) # access the response headers
print(response.status_code) # access the response status code
print(response.data) # access the underlying object
pager = client.objects.list_objects(...)
print(pager.response) # access the typed response for the first page
Expand All @@ -191,7 +180,9 @@ for page in pager.iter_pages():
for item in page:
print(item) # access the underlying object(s)
with client.entities.with_raw_response.stream_entities(...) as response:
print(response.headers) # access the response headers
print(
response.headers
) # access the response headersprint(response.status_code) # access the response status code
for chunk in response.data:
print(chunk) # access the underlying object(s)
```
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]

[tool.poetry]
name = "anduril-lattice-sdk"
version = "4.2.0"
version = "4.3.0"
description = "HTTP clients for the Anduril Lattice SDK"
readme = "README.md"
authors = [
Expand All @@ -24,6 +24,9 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Operating System :: OS Independent",
"Operating System :: POSIX",
"Operating System :: MacOS",
Expand Down
103 changes: 27 additions & 76 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ provenance.sourceUpdateTime is greater than the provenance.sourceUpdateTime of t
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
client.entities.publish_entity()

```
Expand Down Expand Up @@ -420,10 +417,7 @@ Describes an entity's security classification levels at an overall classificatio
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
client.entities.get_entity(
entity_id="entityId",
)
Expand Down Expand Up @@ -497,10 +491,7 @@ concurrently for the same field path, the last writer wins.
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
client.entities.override_entity(
entity_id="entityId",
field_path="mil_view.disposition",
Expand Down Expand Up @@ -596,10 +587,7 @@ This operation clears the override value from the specified field path on the en
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
client.entities.remove_entity_override(
entity_id="entityId",
field_path="mil_view.disposition",
Expand Down Expand Up @@ -684,10 +672,7 @@ In this case you must start a new session by sending a request with an empty ses
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
client.entities.long_poll_entity_events(
session_token="sessionToken",
)
Expand Down Expand Up @@ -783,10 +768,7 @@ this provides real-time updates with minimal latency and reduced server load.
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
response = client.entities.stream_entities()
for chunk in response.data:
yield chunk
Expand Down Expand Up @@ -878,10 +860,7 @@ through other Tasks API endpoints.
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
client.tasks.create_task()

```
Expand Down Expand Up @@ -1023,10 +1002,7 @@ perspective.
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
client.tasks.get_task(
task_id="taskId",
)
Expand Down Expand Up @@ -1104,10 +1080,7 @@ reaches these states, no further updates are allowed.
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
client.tasks.update_task_status(
task_id="taskId",
)
Expand Down Expand Up @@ -1218,10 +1191,7 @@ By default, this returns the latest task version for each matching task from the
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
client.tasks.query_tasks()

```
Expand Down Expand Up @@ -1320,10 +1290,7 @@ updates for task creation and status changes. Additionally, heartbeat messages a
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
response = client.tasks.stream_tasks()
for chunk in response.data:
yield chunk
Expand Down Expand Up @@ -1440,10 +1407,7 @@ period you will be expected to reinitiate a new request.
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
client.tasks.listen_as_agent()

```
Expand Down Expand Up @@ -1527,10 +1491,7 @@ to provide progress information back to Tasks API.
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
response = client.tasks.stream_as_agent()
for chunk in response.data:
yield chunk
Expand Down Expand Up @@ -1607,10 +1568,7 @@ Lists objects in your environment. You can define a prefix to list a subset of y
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
response = client.objects.list_objects()
for item in response:
yield item
Expand Down Expand Up @@ -1664,6 +1622,14 @@ for page in response.iter_pages():
<dl>
<dd>

**max_page_size:** `typing.Optional[int]` — Sets the maximum number of items that should be returned on a single page.

</dd>
</dl>

<dl>
<dd>

**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.

</dd>
Expand Down Expand Up @@ -1705,10 +1671,7 @@ Fetches an object from your environment using the objectPath path parameter.
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
client.objects.get_object(
object_path="objectPath",
)
Expand Down Expand Up @@ -1792,10 +1755,7 @@ Uploads an object. The object must be 1 GiB or smaller.
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
client.objects.upload_object()

```
Expand Down Expand Up @@ -1869,10 +1829,7 @@ Deletes an object from your environment given the objectPath path parameter.
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
client.objects.delete_object(
object_path="objectPath",
)
Expand Down Expand Up @@ -1940,10 +1897,7 @@ Returns metadata for a specified object path. Use this to fetch metadata such as
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
client.objects.get_object_metadata(
object_path="objectPath",
)
Expand Down Expand Up @@ -2012,10 +1966,7 @@ Gets a new short-lived token using the specified client credentials
```python
from anduril import Lattice

client = Lattice(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client = Lattice()
client.oauth.get_token()

```
Expand Down
Loading