fastapi-lsp 0.1.5__py3-none-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,155 @@
1
+ Metadata-Version: 2.4
2
+ Name: fastapi-lsp
3
+ Version: 0.1.5
4
+ Classifier: Development Status :: 3 - Alpha
5
+ Classifier: Intended Audience :: Developers
6
+ Classifier: License :: OSI Approved :: MIT License
7
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
8
+ License-File: LICENSE
9
+ Summary: Language server for FastAPI and Starlette
10
+ Keywords: fastapi,starlette,lsp,language-server
11
+ License: MIT
12
+ Requires-Python: >=3.8
13
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
14
+
15
+ # fastapi-lsp
16
+
17
+ [![CI](https://github.com/alex-oleshkevich/fastapi-lsp/actions/workflows/ci.yml/badge.svg)](https://github.com/alex-oleshkevich/fastapi-lsp/actions/workflows/ci.yml)
18
+ [![Release](https://github.com/alex-oleshkevich/fastapi-lsp/actions/workflows/release.yml/badge.svg)](https://github.com/alex-oleshkevich/fastapi-lsp/releases)
19
+
20
+ Language server for FastAPI and Starlette — routes, `Depends()` graph, `url_for`, Jinja templates, env/settings. One Rust binary, any LSP-capable editor. Static analysis only.
21
+
22
+ ## Features
23
+
24
+ | | |
25
+ |---|---|
26
+ | **Diagnostics** | param mismatches, shadowed routes, unincluded routers, `Depends(fn())`, dep cycles, broken `url_for`, missing templates, undefined env keys |
27
+ | **Navigation** | test call → handler, `Depends()` chains both ways, template files, `.env` lines |
28
+ | **Hover** | route card: resolved path, router chain, response model, deps, middleware |
29
+ | **Completions** | route paths, `url_for` names, template paths, env keys |
30
+ | **Symbols** | `GET /api/books/{book_id}` in the symbol picker |
31
+ | **Code lenses** | test count, dep usage, override count per handler |
32
+ | **`check` CLI** | same diagnostics as a linter — `fastapi-lsp check .` |
33
+
34
+ ## Installation
35
+
36
+ ```bash
37
+ uv tool install fastapi-lsp
38
+ ```
39
+
40
+ Or with pip:
41
+
42
+ ```bash
43
+ pip install fastapi-lsp
44
+ ```
45
+
46
+ Or download a pre-built binary from the [releases page](https://github.com/alex-oleshkevich/fastapi-lsp/releases).
47
+
48
+ ## Editor setup
49
+
50
+ ### Neovim
51
+
52
+ ```lua
53
+ vim.lsp.config('fastapi_lsp', {
54
+ cmd = { 'fastapi-lsp', '--stdio' },
55
+ filetypes = { 'python', 'html', 'htmldjango' },
56
+ root_markers = { 'pyproject.toml', '.git' },
57
+ })
58
+ vim.lsp.enable('fastapi_lsp')
59
+ ```
60
+
61
+ ### Helix
62
+
63
+ ```toml
64
+ # ~/.config/helix/languages.toml
65
+ [language-server.fastapi-lsp]
66
+ command = "fastapi-lsp"
67
+ args = ["--stdio"]
68
+
69
+ [[language]]
70
+ name = "python"
71
+ language-servers = ["pyright", "fastapi-lsp"]
72
+
73
+ [[language]]
74
+ name = "html"
75
+ language-servers = ["vscode-html-language-server", "fastapi-lsp"]
76
+
77
+ [[language]]
78
+ name = "jinja"
79
+ language-servers = ["fastapi-lsp"]
80
+ ```
81
+
82
+ ### Zed
83
+
84
+ ```jsonc
85
+ // ~/.config/zed/settings.json
86
+ {
87
+ "languages": { "Python": { "language_servers": ["fastapi-lsp", "..."] } },
88
+ "lsp": { "fastapi-lsp": { "initialization_options": { "templates": ["app/templates"] } } }
89
+ }
90
+ ```
91
+
92
+ ## Configuration
93
+
94
+ Zero config for standard projects. Priority: `InitializationOptions` › `fastapi-lsp.toml` › `[tool.fastapi-lsp]` in `pyproject.toml`.
95
+
96
+ | Option | Default | |
97
+ |---|---|---|
98
+ | `entrypoint` | _(auto-detected)_ | main app file |
99
+ | `templates` | `[]` | Jinja template directories |
100
+ | `source_roots` | `[]` | extra import resolution roots |
101
+ | `env_files` | `[".env", ".env.example"]` | env key definitions |
102
+ | `settings_env_files` | `[".env", ".env.example", ".env.unittest"]` | env files checked for `BaseSettings` coverage |
103
+ | `process_env` | `false` | include server process env |
104
+ | `process_env_show_values` | `false` | show process-env values in hover |
105
+ | `client_fixtures` | `["client", "async_client"]` | pytest HTTP client fixture names |
106
+ | `env.ignore` | `[]` | env keys to suppress from diagnostics |
107
+
108
+ Feature toggles — all `true` by default except `test_unknown_paths`:
109
+
110
+ | Toggle | Default |
111
+ |---|---|
112
+ | `diagnostics` | `true` |
113
+ | `completion` | `true` |
114
+ | `hover` | `true` |
115
+ | `navigation` | `true` |
116
+ | `code_actions` | `true` |
117
+ | `code_lens` | `true` |
118
+ | `symbols` | `true` |
119
+ | `inlay_hints` | `true` |
120
+ | `document_links` | `true` |
121
+ | `test_unknown_paths` | `false` |
122
+
123
+ ```toml
124
+ # fastapi-lsp.toml
125
+ entrypoint = "app/main.py"
126
+ templates = ["app/templates"]
127
+
128
+ [features]
129
+ code_lens = false
130
+
131
+ [check]
132
+ only = []
133
+ ignore = ["env/undefined-key"]
134
+ ```
135
+
136
+ ## CLI
137
+
138
+ ```
139
+ fastapi-lsp lsp [--stdio | --tcp --address 127.0.0.1 --port 9257]
140
+ fastapi-lsp check PATH [--only CODES] [--ignore CODES] [--format text|json] [--fix]
141
+ fastapi-lsp routes [PATH] [--format text|json]
142
+ ```
143
+
144
+ ## Development
145
+
146
+ ```bash
147
+ cargo build
148
+ cargo test
149
+ uv run --group dev pytest e2e/ -v
150
+ ```
151
+
152
+ ## License
153
+
154
+ MIT
155
+
@@ -0,0 +1,6 @@
1
+ fastapi_lsp-0.1.5.data/scripts/fastapi-lsp.exe,sha256=hIRPsP_ntvOw2GS0PgJQczJnXG5e9W76g_hADp-N4-8,7367680
2
+ fastapi_lsp-0.1.5.dist-info/METADATA,sha256=qKmfIuRDbuvq-8EW5k17W2pwf28T83_gzz9shWSsfAI,4575
3
+ fastapi_lsp-0.1.5.dist-info/WHEEL,sha256=2zDlIYIdD4m4N3p5DVEG3iJhGLdhsBQgdH-FqVkAur8,94
4
+ fastapi_lsp-0.1.5.dist-info/licenses/LICENSE,sha256=yY_G-0POt8mK7mprAX3N9tCefYGJXrfAYsu2VJXYX3E,1094
5
+ fastapi_lsp-0.1.5.dist-info/sboms/fastapi-lsp.cyclonedx.json,sha256=tw5jUSgaJwHTaT3KIl9iJRmFrpRKtb65TM5XbH_zfKM,126740
6
+ fastapi_lsp-0.1.5.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.14.1)
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alex Oleshkevich
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.