File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ frameworks:
30
30
- [ Flask] ( https://docs.apitally.io/frameworks/flask )
31
31
- [ Django Ninja] ( https://docs.apitally.io/frameworks/django-ninja )
32
32
- [ Django REST Framework] ( https://docs.apitally.io/frameworks/django-rest-framework )
33
+ - [ Litestar] ( https://docs.apitally.io/frameworks/litestar )
33
34
34
35
Learn more about Apitally on our 🌎 [ website] ( https://apitally.io ) or check out
35
36
the 📚 [ documentation] ( https://docs.apitally.io ) .
@@ -50,7 +51,8 @@ example:
50
51
pip install apitally[fastapi]
51
52
```
52
53
53
- The available extras are: ` fastapi ` , ` starlette ` , ` flask ` and ` django ` .
54
+ The available extras are: ` fastapi ` , ` starlette ` , ` flask ` , ` django ` and
55
+ ` litestar ` .
54
56
55
57
## Usage
56
58
@@ -112,6 +114,27 @@ APITALLY_MIDDLEWARE = {
112
114
}
113
115
```
114
116
117
+ ### Litestar
118
+
119
+ This is an example of how to add the Apitally plugin to a Litestar application.
120
+ For further instructions, see our
121
+ [ setup guide for Litestar] ( https://docs.apitally.io/frameworks/litestar ) .
122
+
123
+ ``` python
124
+ from litestar import Litestar
125
+ from apitally.litestar import ApitallyPlugin
126
+
127
+ app = Litestar(
128
+ route_handlers = [... ],
129
+ plugins = [
130
+ ApitallyPlugin(
131
+ client_id = " your-client-id" ,
132
+ env = " dev" , # or "prod" etc.
133
+ ),
134
+ ]
135
+ )
136
+ ```
137
+
115
138
## Getting help
116
139
117
140
If you need help please
You can’t perform that action at this time.
0 commit comments