fastapi-voyager 0.13.2__py3-none-any.whl → 0.13.3__py3-none-any.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.
fastapi_voyager/type.py CHANGED
@@ -16,6 +16,7 @@ class FieldInfo:
16
16
  from_base: bool = False
17
17
  is_object: bool = False
18
18
  is_exclude: bool = False
19
+ desc: str = ''
19
20
 
20
21
  @dataclass
21
22
  class Tag(NodeBase):
@@ -182,7 +182,8 @@ def get_pydantic_fields(schema: type[BaseModel], bases_fields: set[str]) -> list
182
182
  name=k,
183
183
  from_base=k in bases_fields,
184
184
  type_name=get_type_name(anno),
185
- is_exclude=bool(v.exclude)
185
+ is_exclude=bool(v.exclude),
186
+ desc=v.description or ''
186
187
  ))
187
188
  return fields
188
189
 
@@ -1,2 +1,2 @@
1
1
  __all__ = ["__version__"]
2
- __version__ = "0.13.2"
2
+ __version__ = "0.13.3"
@@ -179,6 +179,7 @@ export default defineComponent({
179
179
  <tr>
180
180
  <th style="text-align:left; border-bottom:1px solid #ddd; padding:4px 6px;">Field</th>
181
181
  <th style="text-align:left; border-bottom:1px solid #ddd; padding:4px 6px;">Type</th>
182
+ <th style="text-align:left; border-bottom:1px solid #ddd; padding:4px 6px;">Description</th>
182
183
  <th style="text-align:left; border-bottom:1px solid #ddd; padding:4px 6px;">Inherited</th>
183
184
  </tr>
184
185
  </thead>
@@ -186,6 +187,7 @@ export default defineComponent({
186
187
  <tr v-for="f in fields" :key="f.name">
187
188
  <td style="padding:4px 6px; border-bottom:1px solid #f0f0f0;">{{ f.name }}</td>
188
189
  <td style="padding:4px 6px; border-bottom:1px solid #f0f0f0; white-space:nowrap;">{{ f.type_name }}</td>
190
+ <td style="padding:4px 6px; border-bottom:1px solid #f0f0f0; max-width: 200px;">{{ f.desc }}</td>
189
191
  <td style="padding:4px 6px; border-bottom:1px solid #f0f0f0; text-align:left;">{{ f.from_base ? '✔︎' : '' }}</td>
190
192
  </tr>
191
193
  <tr v-if="!fields.length">
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastapi-voyager
3
- Version: 0.13.2
3
+ Version: 0.13.3
4
4
  Summary: Visualize FastAPI application's routing tree and dependencies
5
5
  Project-URL: Homepage, https://github.com/allmonday/fastapi-voyager
6
6
  Project-URL: Source, https://github.com/allmonday/fastapi-voyager
@@ -5,9 +5,9 @@ fastapi_voyager/filter.py,sha256=AN_HIu8-DtKisIq5mFt7CnqRHtxKewedNGyyaI82hSY,115
5
5
  fastapi_voyager/module.py,sha256=h9YR3BpS-CAcJW9WCdVkF4opqwY32w9T67g9GfdLytk,3425
6
6
  fastapi_voyager/render.py,sha256=O_HR8ypOrFhjejkBpKIH_8foB78DgzH0hvO-CWeYt0w,9976
7
7
  fastapi_voyager/server.py,sha256=UZi-VdsurjDnqDgf3l5LfgWfZ4OxzilC_A_Ju6x9jQc,8592
8
- fastapi_voyager/type.py,sha256=asNHhkYoTMnAqz9_d-BS1Vz9EEfGaRDMpYR1aiOH1kM,1808
9
- fastapi_voyager/type_helper.py,sha256=UTCFWluFeGdGkJX3wiE_bZ2EgZsu4JkmqHjsJVdG81Q,9953
10
- fastapi_voyager/version.py,sha256=-vDCciVkW5QNe8J14nbt6lxBenezXsExPxuBwiH26tQ,49
8
+ fastapi_voyager/type.py,sha256=SPKEe0CrD4B4iB-lFQ9-wP6jXrO4rSMoU4p5uxbGcU4,1827
9
+ fastapi_voyager/type_helper.py,sha256=hRk1ssjimZwETQ-rRII1-4ReJO_vpsnQtamcZKOA2Gg,9991
10
+ fastapi_voyager/version.py,sha256=G1nfVjtIW-gYs-xjE2TKGW-IoBvxU-80bK_VtkMtqE8,49
11
11
  fastapi_voyager/voyager.py,sha256=iWt-_QsoKavhb9ZawhU3W8gv3vTwn8PWTevg8BooyV8,13923
12
12
  fastapi_voyager/web/graph-ui.js,sha256=hTsZO1Ly1JuoRg0kZWQ62jeLiD2kbnzACfbSPd0F95U,6634
13
13
  fastapi_voyager/web/graphviz.svg.css,sha256=zDCjjpT0Idufu5YOiZI76PL70-avP3vTyzGPh9M85Do,1563
@@ -20,7 +20,7 @@ fastapi_voyager/web/vue-main.js,sha256=BqFfjKRj1b2_nmR0Jmd2pL59Zk6qesrTNjRPpDRYM
20
20
  fastapi_voyager/web/component/demo.js,sha256=bQb16Un4XZ3Mf8qL6gvyrXe_mmA3V3mSIRMQAWg2MNk,352
21
21
  fastapi_voyager/web/component/render-graph.js,sha256=e8Xgh2Kl-nYU0P1gstEmAepCgFnk2J6UdxW8TlMafGs,2322
22
22
  fastapi_voyager/web/component/route-code-display.js,sha256=8NJPPjNRUC21gjpY8XYEQs4RBbhX1pCiqEhJp39ku6k,3678
23
- fastapi_voyager/web/component/schema-code-display.js,sha256=qKUMV2RFQzR8deof2iC4vyp65UaWadtVsDAXjY-i3vE,7042
23
+ fastapi_voyager/web/component/schema-code-display.js,sha256=E4XiX0ahPxQhvPhZxe_uAbm5FdZYJiml3UAfvIRyrBw,7269
24
24
  fastapi_voyager/web/icon/android-chrome-192x192.png,sha256=35sBy6jmUFJCcquStaafHH1qClZIbd-X3PIKSeLkrNo,37285
25
25
  fastapi_voyager/web/icon/android-chrome-512x512.png,sha256=eb2eDjCwIruc05029_0L9hcrkVkv8KceLn1DJMYU0zY,210789
26
26
  fastapi_voyager/web/icon/apple-touch-icon.png,sha256=gnWK46tPnvSw1-oYZjgI02wpoO4OrIzsVzGHC5oKWO0,33187
@@ -28,8 +28,8 @@ fastapi_voyager/web/icon/favicon-16x16.png,sha256=JC07jEzfIYxBIoQn_FHXvyHuxESdhW
28
28
  fastapi_voyager/web/icon/favicon-32x32.png,sha256=C7v1h58cfWOsiLp9yOIZtlx-dLasBcq3NqpHVGRmpt4,1859
29
29
  fastapi_voyager/web/icon/favicon.ico,sha256=tZolYIXkkBcFiYl1A8ksaXN2VjGamzcSdes838dLvNc,15406
30
30
  fastapi_voyager/web/icon/site.webmanifest,sha256=ep4Hzh9zhmiZF2At3Fp1dQrYQuYF_3ZPZxc1KcGBvwQ,263
31
- fastapi_voyager-0.13.2.dist-info/METADATA,sha256=5eGuPGvTPfSymMO8ZAmk-w55w4kytbCD0pK-uCuG5hQ,7777
32
- fastapi_voyager-0.13.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
33
- fastapi_voyager-0.13.2.dist-info/entry_points.txt,sha256=pEIKoUnIDXEtdMBq8EmXm70m16vELIu1VPz9-TBUFWM,53
34
- fastapi_voyager-0.13.2.dist-info/licenses/LICENSE,sha256=lNVRR3y_bFVoFKuK2JM8N4sFaj3m-7j29kvL3olFi5Y,1067
35
- fastapi_voyager-0.13.2.dist-info/RECORD,,
31
+ fastapi_voyager-0.13.3.dist-info/METADATA,sha256=1jDBavGvAX72SPLnwkZKTlf9G0rv-gkN6J5bCVImAWQ,7777
32
+ fastapi_voyager-0.13.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
33
+ fastapi_voyager-0.13.3.dist-info/entry_points.txt,sha256=pEIKoUnIDXEtdMBq8EmXm70m16vELIu1VPz9-TBUFWM,53
34
+ fastapi_voyager-0.13.3.dist-info/licenses/LICENSE,sha256=lNVRR3y_bFVoFKuK2JM8N4sFaj3m-7j29kvL3olFi5Y,1067
35
+ fastapi_voyager-0.13.3.dist-info/RECORD,,