Skip to content

Commit 5aa63ac

Browse files
committed
feat: initial public SDK release
0 parents  commit 5aa63ac

28 files changed

+6217
-0
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @anduril/lattice-sdk-maintainers

.github/workflows/commit-lint.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "Lint commit"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
- reopened
10+
permissions:
11+
pull-requests: read
12+
jobs:
13+
main:
14+
name: Validate PR title
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: amannn/action-semantic-pull-request@v5
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
requireScope: false

.github/workflows/release.yml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write # to be able to publish a GitHub release
16+
issues: write # to be able to comment on released issues
17+
pull-requests: write # to be able to comment on released pull requests
18+
id-token: write # to enable use of OIDC for npm provenance
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
- name: Set up Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: '3.x'
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install hatch
32+
- name: Semantic Release
33+
uses: cycjimmy/semantic-release-action@v4
34+
with:
35+
semantic_version: 24.2.0
36+
extra_plugins: |
37+
@semantic-release/[email protected]
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
- name: Build package
41+
run: hatch build
42+
- name: Store the distribution packages
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: python-package-distributions
46+
path: dist/
47+
48+
publish:
49+
name: Publish distribution to PyPI
50+
needs:
51+
- release
52+
runs-on: ubuntu-latest
53+
environment:
54+
name: pypi
55+
url: https://pypi.org/p/anduril-lattice-sdk # Replace <package-name> with your PyPI project name
56+
permissions:
57+
id-token: write
58+
steps:
59+
- name: Download all the dists
60+
uses: actions/download-artifact@v4
61+
with:
62+
name: python-package-distributions
63+
path: dist/
64+
- name: Publish distribution to PyPI
65+
uses: pypa/gh-action-pypi-publish@release/v1

.releaserc.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
plugins: [
2+
"@semantic-release/commit-analyzer",
3+
'@semantic-release/release-notes-generator',
4+
"@semantic-release/github",
5+
[
6+
"@semantic-release/exec", {
7+
"prepareCmd": "hatch version ${nextRelease.version}"
8+
},
9+
]
10+
]

LICENSE.md

+188
Large diffs are not rendered by default.

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Lattice SDK Python
2+
3+
[![Version](https://img.shields.io/pypi/v/anduril-lattice-sdk.svg)](https://pypi.org/project/anduril-lattice-sdk)
4+
5+
The official [Anduril](https://www.anduril.com/) Lattice SDK for Python.
6+
7+
## Documentation
8+
9+
See the documentation for [Lattice Python SDK](https://docs.anduril.com/sdks/python).
10+
11+
## Requirements
12+
13+
To use the SDK please ensure you have the following installed:
14+
15+
* [Python 3](https://www.python.org/doc/versions)
16+
17+
## Installation
18+
19+
Install the Lattice SDK package with:
20+
21+
```
22+
pip install anduril-lattice-sdk
23+
```
24+
25+
## Support
26+
27+
For support with this library please [file an issue](https://github.com/anduril/lattice-sdk-python/issues/new) or reach out to your Anduril representative.

SECURITY.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Security Policy
2+
3+
## Reporting a Vulnerability
4+
5+
Please report any security issues to the Anduril Information Security team using the email [email protected]. Additional information including our pgp key can be found in the [security.txt page](https://www.anduril.com/.well-known/security.txt) of our website.

pyproject.toml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[project]
2+
name = "anduril-lattice-sdk"
3+
dynamic = [
4+
"version",
5+
]
6+
dependencies = [
7+
"betterproto>=2.0.0b7",
8+
"grpcio",
9+
"grpclib",
10+
"protobuf"
11+
]
12+
license = {file = "LICENSE.md"}
13+
requires-python = ">=3.8"
14+
authors = [
15+
{name = "Anduril Industries Inc."},
16+
]
17+
maintainers = [
18+
{name = "Anduril Industries Inc."}
19+
]
20+
description = "Anduril Lattice SDK in Python"
21+
readme = "README.md"
22+
keywords = ["anduril", "lattice", "sdk"]
23+
24+
[project.urls]
25+
Homepage = "https://anduril.com"
26+
Documentation = "https://docs.anduril.com"
27+
Repository = "https://github.com/anduril/lattice-sdk-python"
28+
29+
[build-system]
30+
requires = ["hatchling"]
31+
build-backend = "hatchling.build"
32+
33+
[tool.hatch.version]
34+
path = "src/__about__.py"
35+
36+
[tool.hatch.build.targets.wheel]
37+
packages = ["src/anduril"]
38+
39+
[tool.hatch.build.targets.sdist]
40+
exclude = ['.github']

src/__init__.py

Whitespace-only changes.

src/anduril/__init__.py

Whitespace-only changes.

src/anduril/entitymanager/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)