Metadata-Version: 2.5
Name: claviron
Version: 0.1.0
Summary: Typing surface for the claviron module provided by the Claviron runtime
Project-URL: Homepage, https://github.com/claviron
Author-email: Claviron <code@claviron.org>
License-File: LICENSE
Keywords: asgi,claviron,runtime,rust,stubs
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Rust
Classifier: Typing :: Typed
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# claviron

Typing surface for the `claviron` module that the Claviron runtime installs
into the interpreter running your ASGI application.

That module is built into the server binary. It is never installed from an
index and never appears in your virtual environment, so `import claviron`
resolves at runtime but not in your editor. Installing this package gives the
editor and the type checker something to read:

```python
import claviron

response = await claviron.invoke("claviron.ping.v1", {"echo": "app"})
```

It does nothing at runtime. Inside a Claviron process it is shadowed — the
injected module is in `sys.modules` before your application is imported, so
the import never reaches this package. Outside one, `invoke` raises
`NotRunningUnderClaviron` instead of failing quietly further along.

Install it as a development dependency:

```sh
uv add --dev claviron
```
