Metadata-Version: 2.5
Name: eapdk
Version: 0.1.1
Summary: Echelon Application Python Developer Kit — a typed, async-first SDK for writing Echelon apps.
Project-URL: Homepage, https://echelon-ai.space
Author-email: Echelon <info@echelon-ai.space>
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: agents,apps,automation,echelon,plugins,sdk
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Typing :: Typed
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# eapdk

**Alpha.** The Echelon Application Python Developer Kit — a typed, async-first Python SDK
for writing **Echelon Apps**. This is the SDK only: running an app needs a live
[Echelon](https://echelon-ai.space) server to load it, call it, and serve it to the rest of
the org. The SDK is not useful on its own, and its API may still change between alpha
releases.

## Install

```bash
pip install eapdk
```

At runtime inside Echelon itself, the matching source tree is embedded directly into the
`echelon` binary — there is no separate installed copy to drift out of sync. Installing this
package from PyPI is for developing an app *against* that SDK surface (editors, type
checking, the `eapdk` CLI) before handing the app folder to an Echelon server.

## Quickstart

```bash
eapdk new hello
cd hello
eapdk check                                    # catches mistakes before Echelon does
cp -r . <echelon workdir>/plugins/hello/       # Echelon loads it, no restart
```

## Writing an app

```python
from eapdk import App, HttpRequest, endpoint, tool
from eapdk.models import IssueCreate

class Standup(App):
    @tool(description="Count the words in a text")
    async def count_words(self, text: str) -> dict[str, int]:
        return {"words": len(text.split())}

    @endpoint("GET", "/hello")
    async def hello(self, req: HttpRequest) -> dict[str, object]:
        if req.employee is None:
            raise HttpError(401, "sign in first")
        me = self.api.as_employee(req.employee.id)
        issue = await me.issues.create(IssueCreate(title="From eapdk"))
        return {"issue_id": issue.id}
```

Every call reaches the host through exactly one of two Scope constructors —
`self.api.as_bot()` (this app's own seat, never audited) or `self.api.as_employee(id)` (runs
as a named person, audited in the App Manager's "Acting for people"). There is no
`self.api.<namespace>` shortcut.

## What's not here yet

Per-app environments/lockfiles, a local dev server with a fake org, and packaging/signing/
publishing are later stages — `eapdk dev`/`test`/`build`/`sign`/`publish` each print a
one-line "coming in stage N" and exit 3.
