pycode-kg 0.16.0__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.
Files changed (63) hide show
  1. pycode_kg/.DS_Store +0 -0
  2. pycode_kg/__init__.py +91 -0
  3. pycode_kg/__main__.py +11 -0
  4. pycode_kg/analysis/__init__.py +15 -0
  5. pycode_kg/analysis/bridge.py +108 -0
  6. pycode_kg/analysis/centrality.py +412 -0
  7. pycode_kg/analysis/framework_detector.py +103 -0
  8. pycode_kg/analysis/hybrid_rank.py +53 -0
  9. pycode_kg/app.py +1335 -0
  10. pycode_kg/architecture.py +624 -0
  11. pycode_kg/build_pycodekg_lancedb.py +15 -0
  12. pycode_kg/build_pycodekg_sqlite.py +15 -0
  13. pycode_kg/cli/__init__.py +29 -0
  14. pycode_kg/cli/cmd_analyze.py +96 -0
  15. pycode_kg/cli/cmd_architecture.py +150 -0
  16. pycode_kg/cli/cmd_bridges.py +26 -0
  17. pycode_kg/cli/cmd_build.py +154 -0
  18. pycode_kg/cli/cmd_build_full.py +242 -0
  19. pycode_kg/cli/cmd_centrality.py +131 -0
  20. pycode_kg/cli/cmd_explain.py +180 -0
  21. pycode_kg/cli/cmd_framework_nodes.py +18 -0
  22. pycode_kg/cli/cmd_hooks.py +137 -0
  23. pycode_kg/cli/cmd_init.py +312 -0
  24. pycode_kg/cli/cmd_mcp.py +71 -0
  25. pycode_kg/cli/cmd_model.py +53 -0
  26. pycode_kg/cli/cmd_query.py +211 -0
  27. pycode_kg/cli/cmd_snapshot.py +421 -0
  28. pycode_kg/cli/cmd_viz.py +180 -0
  29. pycode_kg/cli/main.py +23 -0
  30. pycode_kg/cli/options.py +63 -0
  31. pycode_kg/config.py +78 -0
  32. pycode_kg/graph.py +125 -0
  33. pycode_kg/index.py +542 -0
  34. pycode_kg/kg.py +220 -0
  35. pycode_kg/layout3d.py +470 -0
  36. pycode_kg/mcp/bridge_tools.py +19 -0
  37. pycode_kg/mcp/framework_tools.py +18 -0
  38. pycode_kg/mcp_server.py +1965 -0
  39. pycode_kg/module/__init__.py +83 -0
  40. pycode_kg/module/base.py +720 -0
  41. pycode_kg/module/extractor.py +276 -0
  42. pycode_kg/module/types.py +532 -0
  43. pycode_kg/pycodekg.py +543 -0
  44. pycode_kg/pycodekg_query.py +1 -0
  45. pycode_kg/pycodekg_snippet_packer.py +1 -0
  46. pycode_kg/pycodekg_thorough_analysis.py +2751 -0
  47. pycode_kg/pycodekg_viz.py +1 -0
  48. pycode_kg/pycodekg_viz3d.py +1 -0
  49. pycode_kg/ranking/__init__.py +1 -0
  50. pycode_kg/ranking/cli_rank.py +92 -0
  51. pycode_kg/ranking/coderank.py +555 -0
  52. pycode_kg/snapshots.py +612 -0
  53. pycode_kg/sql/004_add_centrality_table.sql +12 -0
  54. pycode_kg/store.py +766 -0
  55. pycode_kg/utils.py +39 -0
  56. pycode_kg/visitor.py +413 -0
  57. pycode_kg/viz3d.py +1353 -0
  58. pycode_kg/viz3d_timeline.py +364 -0
  59. pycode_kg-0.16.0.dist-info/METADATA +305 -0
  60. pycode_kg-0.16.0.dist-info/RECORD +63 -0
  61. pycode_kg-0.16.0.dist-info/WHEEL +4 -0
  62. pycode_kg-0.16.0.dist-info/entry_points.txt +19 -0
  63. pycode_kg-0.16.0.dist-info/licenses/LICENSE +94 -0
@@ -0,0 +1,63 @@
1
+ pycode_kg/.DS_Store,sha256=1lFlJ5EFymdzGAUAaI30vcaaLHt3F1LwpG7xILf9jsM,6148
2
+ pycode_kg/__init__.py,sha256=QM53r9fMjMW9YmhWRCWc2oqTKdF3yybC2eqZ1a40FQ8,2171
3
+ pycode_kg/__main__.py,sha256=v_pvug5lPldswmBseHK6jfC2xdD2D_cbqx5LFcSg84U,194
4
+ pycode_kg/analysis/__init__.py,sha256=UkHO2qplWKh0eMpV_c2Gij_ahKev8pwaL2m8ZE_l640,302
5
+ pycode_kg/analysis/bridge.py,sha256=Q3wWfILGUXOgmMwEbCqTuRAUqmz7ae_sBCZDU-JnH0E,4199
6
+ pycode_kg/analysis/centrality.py,sha256=bhq-DmkJxdGfckjoG9EzrITWuM7jdeQsemivWpQHY0s,14726
7
+ pycode_kg/analysis/framework_detector.py,sha256=ywVN_-BX0MZRuphtTqulolC7I9E7f0Dwd4pO4y4efo8,3653
8
+ pycode_kg/analysis/hybrid_rank.py,sha256=aUWSVE4tjRiwPsCSAWinaVwpYwpNNrpmn4ZQT04AiXc,1840
9
+ pycode_kg/app.py,sha256=DlPGS0efmeKSxHxW_BgU_eQUidCSiH-a8YQ82hhQx9w,45738
10
+ pycode_kg/architecture.py,sha256=1PMUlrK7jvg59rLcPoW-kcD_cT2o-EN6kAejSGzQVLI,24158
11
+ pycode_kg/build_pycodekg_lancedb.py,sha256=6PM9ejJPIYrnJ1eOuB3XE993XHOUTr1HA6RZIdHw4jw,349
12
+ pycode_kg/build_pycodekg_sqlite.py,sha256=gI6WB3An_0Qt87jKdz_m1ZYzPiF6FxDlJp6jdtwEEy0,345
13
+ pycode_kg/cli/__init__.py,sha256=bELUsLbEiB06ib3sPAQiBd87nZQ3ghS-ELpDRDFSRVs,1115
14
+ pycode_kg/cli/cmd_analyze.py,sha256=nnd70LQJ1e032Y70Od0oGNxpN12tXEhdFr4XOp7MbLw,2579
15
+ pycode_kg/cli/cmd_architecture.py,sha256=WoIWwZr4rPCIHvfSrea0p4uBR71dz0-75Hu1PLetpg0,4892
16
+ pycode_kg/cli/cmd_bridges.py,sha256=AYAmRGVwrKhlV2XrpRabRh9n9q3o7D4UlqdYmTgTPoA,855
17
+ pycode_kg/cli/cmd_build.py,sha256=cSfZG7V9i0DnrfETTPZpFMt9tBzUAwopqWydIFLCDYM,4195
18
+ pycode_kg/cli/cmd_build_full.py,sha256=ir-twW6q5diRXBb_Cx6inzBVKvhM736YOjuBq9u2lGU,6044
19
+ pycode_kg/cli/cmd_centrality.py,sha256=TbCVTeNT15vdv9ET1Qm9jMp-3W6OnGqx-A_M9WD8azE,3728
20
+ pycode_kg/cli/cmd_explain.py,sha256=nqC-oi8J6ucOF04fvo2qQvu7XsSVPIZHcoLKJVnjx4M,5686
21
+ pycode_kg/cli/cmd_framework_nodes.py,sha256=hreo_wpAXuB89QJ3fDTwms4hqFJn68I4TQnSftqUSTU,695
22
+ pycode_kg/cli/cmd_hooks.py,sha256=FvpFyzeQwrcEUt3SsP_XULJi3BjXKjc_vE_FcMtGL_Y,4393
23
+ pycode_kg/cli/cmd_init.py,sha256=ZcWkEgarX_N6Csm0Z05buILi2VxwP7I4hsBySTlWeUw,11238
24
+ pycode_kg/cli/cmd_mcp.py,sha256=oV73OrWhJniCQ4Qbf0xnbEdGp1nMRJh_7gonLpTGpyI,1601
25
+ pycode_kg/cli/cmd_model.py,sha256=a8tpYuk2ADvZohr2k8RyEiqwGCokOV5BPwuxH_ankwo,1603
26
+ pycode_kg/cli/cmd_query.py,sha256=jYZ_qpCsU1bHE9-yrsFqDG6-DlvjJqzW2AKQLRd_2ZA,6311
27
+ pycode_kg/cli/cmd_snapshot.py,sha256=ILbHT6DmaxQXxfH4KqsQn_2P7O-lIL4nDkmGO2Y0TJk,13971
28
+ pycode_kg/cli/cmd_viz.py,sha256=yhbKaJCzpK7lhXkR-QnreDR7Y4e-qk1GsJkzz--YqHI,4683
29
+ pycode_kg/cli/main.py,sha256=P6_nB4x1PGcPY25duvc1Cqv8nq4NcVxagL0zaWfW50k,377
30
+ pycode_kg/cli/options.py,sha256=K6wi69eHk-dsPdS05j4ZaOsDhDdatPKqhZ8iSs_GSuk,1616
31
+ pycode_kg/config.py,sha256=8w9xCEQdtzfPip-hSPXfmZDyCGk_YcKudfjU_HmvdRA,2439
32
+ pycode_kg/graph.py,sha256=XQ49Q8rS3fE6NJvAKQHk_mGbBx-7IWdGycf0xNmF50E,4251
33
+ pycode_kg/index.py,sha256=lbXsqSZx4iuvMIGuElYNgo3CpPoH-oDFyk2Zko3pce4,19940
34
+ pycode_kg/kg.py,sha256=Jng7tXM3xQxHdCULYIFoRH8AARaStQX5S3VEv_X_nIM,7608
35
+ pycode_kg/layout3d.py,sha256=FDxNItLtnMssLRW_QrqoAkZgrr6d0G-fnZlPQBxAxDw,16139
36
+ pycode_kg/mcp/bridge_tools.py,sha256=3mmE8MB3TI8qyCFN-mIdvdUoHKPTo0i6R_hqjnQkhqE,426
37
+ pycode_kg/mcp/framework_tools.py,sha256=lg1seR9QmCksx6UsvYWAW3O_1ZCCHBcGpkzwx5lhBV4,420
38
+ pycode_kg/mcp_server.py,sha256=upy5c4UArm-Joiq7o6NnmDSTi2eNPsZuBbtpOuumZbY,84944
39
+ pycode_kg/module/__init__.py,sha256=PyqvWRjhejet5NZ2vzYkahR2F3oh79c1WusRaU3thRo,2518
40
+ pycode_kg/module/base.py,sha256=U0AKm8_QRE1AnBUBM-0oqU5BCIn6r1VUdXWBi1rsHnw,27509
41
+ pycode_kg/module/extractor.py,sha256=vO7897_YGcQ6HTXJzXQZ40-xT_i8ANJIZlDbA7STl5Y,10300
42
+ pycode_kg/module/types.py,sha256=ri3pAAVUCSANr81BupIUHIpZj7xa4TVTkYExBXCrDF8,18559
43
+ pycode_kg/pycodekg.py,sha256=2plzKqAtoMPbRZJoh4fe52utiUmH5Yoq3vOHiLHMuDQ,19363
44
+ pycode_kg/pycodekg_query.py,sha256=Ufkw29gx7cDJI_tfyqCwZYsP-FDCWAHky3T8ZZ5svs0,62
45
+ pycode_kg/pycodekg_snippet_packer.py,sha256=c04vnigUhYsqQ19_NchIG15J9N4_vQ0o_bAkQ70siFM,61
46
+ pycode_kg/pycodekg_thorough_analysis.py,sha256=9WXtDNqzEdl_A_AxpUr07wvCcCbZK82gHvwwPqPxdc8,117400
47
+ pycode_kg/pycodekg_viz.py,sha256=Rv_QF628a5hMlX6h27tlD7WrXyeoeRVS37shuPeJxQI,60
48
+ pycode_kg/pycodekg_viz3d.py,sha256=5oNIsZjyIqTv6qFSCbwtkuQtA2fuC3ucB1Zc-fZD1ew,62
49
+ pycode_kg/ranking/__init__.py,sha256=AC9VYtqLy741iydgw5kgMqOwgf0I1MOFKHLwjChGpHc,38
50
+ pycode_kg/ranking/cli_rank.py,sha256=xAK5TSdUx1cYSLDrI8vFbLWlDaGAQYOkG90MFLf1VYk,2819
51
+ pycode_kg/ranking/coderank.py,sha256=rPZGGqViBHMHHDBKesFJlBgNLj3DtOijJDvZuN4267g,17086
52
+ pycode_kg/snapshots.py,sha256=_KnnLMlJwNpFexL82WlUcNbdiQw6ibJrvOaVbcMSj_0,25082
53
+ pycode_kg/sql/004_add_centrality_table.sql,sha256=zvtOIlDhYSVaSAQ-I9PKlQi3naeL3RS73yayxhXLot8,337
54
+ pycode_kg/store.py,sha256=AlrnRYT6d14gfiK6VYDxXLtIubxgCJ8BXakoSWBweew,27405
55
+ pycode_kg/utils.py,sha256=AtHvTnOytxQ-dz3vQAhO_IxTh2H_GzSoCYdKGcyK-RM,937
56
+ pycode_kg/visitor.py,sha256=CHP8TPFRNKR71fLWChyEMqdMAuB24_8md0j1pi53BNE,18232
57
+ pycode_kg/viz3d.py,sha256=PkiVA8Humxi81pBNz1wIRLElxe64JYn1gNvwg8c3Sq8,50412
58
+ pycode_kg/viz3d_timeline.py,sha256=pOmb_9uJq-xxEkI5UP5xICicbHxWsEq5fG_3VvZGLok,12065
59
+ pycode_kg-0.16.0.dist-info/METADATA,sha256=ej3-maofv46eMXUho8U_AIA1srfYE5aZF33xOnGpQaM,12091
60
+ pycode_kg-0.16.0.dist-info/WHEEL,sha256=kJCRJT_g0adfAJzTx2GUMmS80rTJIVHRCfG0DQgLq3o,88
61
+ pycode_kg-0.16.0.dist-info/entry_points.txt,sha256=ybLGTfl07rWcjvNUfwVk0_oj-5mED5PFq5HWYUVoun0,886
62
+ pycode_kg-0.16.0.dist-info/licenses/LICENSE,sha256=7UXPtnikVN-cqF2SOnf1ReUYdpp1cCQeOEqnFo8f7ys,3924
63
+ pycode_kg-0.16.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: poetry-core 2.3.1
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,19 @@
1
+ [console_scripts]
2
+ pycodekg=pycode_kg.cli.main:cli
3
+ pycodekg-analyze=pycode_kg.cli.cmd_analyze:analyze
4
+ pycodekg-architecture=pycode_kg.cli.cmd_architecture:architecture
5
+ pycodekg-build=pycode_kg.cli.cmd_build_full:build
6
+ pycodekg-build-lancedb=pycode_kg.cli.cmd_build:build_lancedb
7
+ pycodekg-build-sqlite=pycode_kg.cli.cmd_build:build_sqlite
8
+ pycodekg-centrality=pycode_kg.cli.cmd_centrality:cmd_centrality
9
+ pycodekg-download-model=pycode_kg.cli.cmd_model:download_model
10
+ pycodekg-init=pycode_kg.cli.cmd_init:init
11
+ pycodekg-install-hooks=pycode_kg.cli.cmd_hooks:install_hooks
12
+ pycodekg-mcp=pycode_kg.mcp_server:main
13
+ pycodekg-pack=pycode_kg.cli.cmd_query:pack
14
+ pycodekg-query=pycode_kg.cli.cmd_query:query
15
+ pycodekg-update=pycode_kg.cli.cmd_build_full:update
16
+ pycodekg-viz=pycode_kg.cli.cmd_viz:viz
17
+ pycodekg-viz-timeline=pycode_kg.cli.cmd_viz:viz_timeline
18
+ pycodekg-viz3d=pycode_kg.cli.cmd_viz:viz3d
19
+
@@ -0,0 +1,94 @@
1
+ Elastic License 2.0
2
+
3
+ URL: https://www.elastic.co/licensing/elastic-license
4
+
5
+ ## Acceptance
6
+
7
+ By using the software, you agree to all of the terms and conditions below.
8
+
9
+ ## Copyright License
10
+
11
+ The licensor grants you a non-exclusive, royalty-free, worldwide,
12
+ non-sublicensable, non-transferable license to use, copy, distribute, make
13
+ available, and prepare derivative works of the software, in each case subject to
14
+ the limitations and conditions below.
15
+
16
+ ## Limitations
17
+
18
+ **You may not provide the software to third parties as a hosted or managed
19
+ service, where the service provides users with access to any substantial set of
20
+ the features or functionality of the software.**
21
+
22
+ You may not move, change, disable, or circumvent the license key functionality
23
+ in the software, and you may not remove or obscure any functionality in the
24
+ software that is protected by the license key.
25
+
26
+ You may not alter, remove, or obscure any licensing, copyright, or other notices
27
+ of the licensor in the software. Any use of the licensor's trademarks is subject
28
+ to applicable law.
29
+
30
+ ## Patents
31
+
32
+ The licensor grants you a license, under any patent claims the licensor can
33
+ license, or becomes able to license, to make, have made, use, sell, offer for
34
+ sale, import and have imported the software, in each case subject to the
35
+ limitations and conditions in this license. This license does not cover any
36
+ patent claims that you cause to be infringed by modifications or additions to the
37
+ software. If you or your company make any written claim that the software
38
+ infringes or contributes to infringement of any patent, your patent license for
39
+ the software granted under these terms ends immediately. If your company makes
40
+ such a claim, your patent license ends immediately for work on behalf of your
41
+ company.
42
+
43
+ ## Notices
44
+
45
+ You must ensure that anyone who gets a copy of any part of the software from you
46
+ also gets a copy of these terms or the URL for them above, as well as copies of
47
+ any plain-text lines beginning with "Required Notice:" that the licensor provided
48
+ with the software. For example:
49
+
50
+ Required Notice: Copyright (c) 2026 Eric G. Suchanek, PhD
51
+
52
+ ## No Other Rights
53
+
54
+ These terms do not imply any other licenses not expressly granted in this
55
+ license.
56
+
57
+ ## Termination
58
+
59
+ If you use the software in violation of these terms, such use is not licensed,
60
+ and your licenses will automatically terminate. If the licensor provides you with
61
+ a notice of your violation, and you cease all violation of this license no later
62
+ than 30 days after you receive that notice, your licenses will be reinstated
63
+ retroactively. However, if you violate these terms after such reinstatement, any
64
+ additional violation of these terms will cause your licenses to terminate
65
+ automatically and permanently.
66
+
67
+ ## No Liability
68
+
69
+ *As far as the law allows, the software comes as is, without any warranty or
70
+ condition, and the licensor will not be liable to you for any damages arising out
71
+ of these terms or the use or nature of the software, under any kind of legal
72
+ claim.*
73
+
74
+ ## Definitions
75
+
76
+ The **licensor** is the entity offering these terms, and the **software** is the
77
+ software the licensor makes available under these terms, including any portion of
78
+ it.
79
+
80
+ **You** refers to the individual or entity agreeing to these terms.
81
+
82
+ **Your company** is any legal entity, sole proprietorship, or other kind of
83
+ organization that you work for, plus all organizations that have control over,
84
+ are under the control of, or are under common control with that organization.
85
+ Control means ownership of substantially all the assets of an entity, or the
86
+ power to direct its management and policies by vote, contract, or otherwise.
87
+ Control can be direct or indirect.
88
+
89
+ **Your licenses** are all the licenses granted to you for the software under
90
+ these terms.
91
+
92
+ **Use** means anything you do with the software requiring one of your licenses.
93
+
94
+ **Trademark** means trademarks, service marks, and similar rights.