simple-kb 0.1.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.
- simple_kb-0.1.0.dist-info/METADATA +112 -0
- simple_kb-0.1.0.dist-info/RECORD +56 -0
- simple_kb-0.1.0.dist-info/WHEEL +4 -0
- simple_kb-0.1.0.dist-info/entry_points.txt +2 -0
- simple_kb-0.1.0.dist-info/licenses/LICENSE +32 -0
- swarmkit_knowledge/__init__.py +17 -0
- swarmkit_knowledge/_access.py +481 -0
- swarmkit_knowledge/_archives.py +258 -0
- swarmkit_knowledge/_blobs.py +305 -0
- swarmkit_knowledge/_builder.py +1558 -0
- swarmkit_knowledge/_chunk.py +175 -0
- swarmkit_knowledge/_convert_worker.py +429 -0
- swarmkit_knowledge/_copies.py +78 -0
- swarmkit_knowledge/_dialect.py +361 -0
- swarmkit_knowledge/_engine.py +141 -0
- swarmkit_knowledge/_errors.py +151 -0
- swarmkit_knowledge/_figures.py +319 -0
- swarmkit_knowledge/_fingerprint.py +137 -0
- swarmkit_knowledge/_git.py +162 -0
- swarmkit_knowledge/_groups.py +87 -0
- swarmkit_knowledge/_hosted.py +165 -0
- swarmkit_knowledge/_html.py +105 -0
- swarmkit_knowledge/_http.py +1833 -0
- swarmkit_knowledge/_javadoc.py +364 -0
- swarmkit_knowledge/_layout.py +290 -0
- swarmkit_knowledge/_layout_analysis.py +330 -0
- swarmkit_knowledge/_mcp.py +702 -0
- swarmkit_knowledge/_migrations.py +506 -0
- swarmkit_knowledge/_model.py +270 -0
- swarmkit_knowledge/_net.py +204 -0
- swarmkit_knowledge/_oauth.py +256 -0
- swarmkit_knowledge/_ocr.py +75 -0
- swarmkit_knowledge/_okf.py +117 -0
- swarmkit_knowledge/_openapi.py +445 -0
- swarmkit_knowledge/_orgs.py +335 -0
- swarmkit_knowledge/_portal.py +52 -0
- swarmkit_knowledge/_profile_author.py +380 -0
- swarmkit_knowledge/_profile_cli.py +431 -0
- swarmkit_knowledge/_profile_reader.py +257 -0
- swarmkit_knowledge/_profile_test.py +261 -0
- swarmkit_knowledge/_profiles.py +585 -0
- swarmkit_knowledge/_public.py +153 -0
- swarmkit_knowledge/_remote.py +530 -0
- swarmkit_knowledge/_sandbox.py +269 -0
- swarmkit_knowledge/_service.py +1093 -0
- swarmkit_knowledge/_signin.py +211 -0
- swarmkit_knowledge/_static/assets/index-BaFdPCs5.css +1 -0
- swarmkit_knowledge/_static/assets/index-Bk0bonRY.js +59 -0
- swarmkit_knowledge/_static/index.html +18 -0
- swarmkit_knowledge/_store.py +1526 -0
- swarmkit_knowledge/_suggestions.py +128 -0
- swarmkit_knowledge/_worker.py +143 -0
- swarmkit_knowledge/_writes.py +415 -0
- swarmkit_knowledge/_xsd.py +358 -0
- swarmkit_knowledge/cli.py +1020 -0
- swarmkit_knowledge/py.typed +0 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: simple-kb
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Turn documents into knowledge bases any agent can use, over MCP, A2A, llms.txt and OpenAI-compatible search. SwarmKit is its engine for model work.
|
|
5
|
+
Project-URL: Homepage, https://skb.delivstat.com
|
|
6
|
+
Project-URL: Documentation, https://skb.delivstat.com/docs/getting-started
|
|
7
|
+
Project-URL: Demos, https://skb.delivstat.com/demos
|
|
8
|
+
Author: Srijith Kartha
|
|
9
|
+
License: swarmkit-knowledge License
|
|
10
|
+
|
|
11
|
+
Copyright (c) 2026 DELIVSTAT TECHNOLOGY SOLUTIONS LLP. All rights reserved.
|
|
12
|
+
|
|
13
|
+
This software, including its source code, documentation and the web portal it serves (together,
|
|
14
|
+
"the Software"), is licensed, not sold. It is not open source.
|
|
15
|
+
|
|
16
|
+
1. Use. You may download, install and use the Software free of charge, for personal or business
|
|
17
|
+
purposes, including running its server for yourself or for the people of your own organisation.
|
|
18
|
+
|
|
19
|
+
2. Restrictions. You may not, in whole or in part:
|
|
20
|
+
a. copy, redistribute, sublicense, sell, rent or lease the Software, except for copies made
|
|
21
|
+
by installing it as permitted in section 1;
|
|
22
|
+
b. distribute modified versions of the Software, or works derived from it;
|
|
23
|
+
c. offer the Software, or a service substantially based on it, to third parties as a hosted
|
|
24
|
+
or managed service;
|
|
25
|
+
d. remove or alter this license or any copyright notice.
|
|
26
|
+
|
|
27
|
+
3. Ownership. All rights not expressly granted here are reserved by the copyright holder.
|
|
28
|
+
|
|
29
|
+
4. Third-party components. Libraries the Software depends on are licensed under their own terms.
|
|
30
|
+
|
|
31
|
+
5. No warranty. The Software is provided "as is", without warranty of any kind, express or
|
|
32
|
+
implied, including the warranties of merchantability, fitness for a particular purpose and
|
|
33
|
+
non-infringement.
|
|
34
|
+
|
|
35
|
+
6. Limitation of liability. In no event shall the copyright holder be liable for any claim,
|
|
36
|
+
damages or other liability, whether in an action of contract, tort or otherwise, arising
|
|
37
|
+
from, out of or in connection with the Software or its use.
|
|
38
|
+
|
|
39
|
+
7. Termination. This license ends automatically if you break its terms. You must then stop using
|
|
40
|
+
the Software and delete your copies.
|
|
41
|
+
License-File: LICENSE
|
|
42
|
+
Classifier: License :: Other/Proprietary License
|
|
43
|
+
Requires-Python: >=3.11
|
|
44
|
+
Requires-Dist: beautifulsoup4>=4.12
|
|
45
|
+
Requires-Dist: pydantic>=2.7
|
|
46
|
+
Requires-Dist: pyyaml>=6
|
|
47
|
+
Provides-Extra: engine
|
|
48
|
+
Requires-Dist: swarmkit-runtime>=1.269.4; extra == 'engine'
|
|
49
|
+
Provides-Extra: formats
|
|
50
|
+
Requires-Dist: defusedxml>=0.7; extra == 'formats'
|
|
51
|
+
Requires-Dist: markitdown[docx,pdf,pptx,xlsx]>=0.1.9; extra == 'formats'
|
|
52
|
+
Requires-Dist: pillow>=11.0; extra == 'formats'
|
|
53
|
+
Requires-Dist: pypdf>=5.0; extra == 'formats'
|
|
54
|
+
Provides-Extra: ocr
|
|
55
|
+
Requires-Dist: onnxruntime>=1.20; extra == 'ocr'
|
|
56
|
+
Requires-Dist: pillow>=11.0; extra == 'ocr'
|
|
57
|
+
Requires-Dist: pypdf>=5.0; extra == 'ocr'
|
|
58
|
+
Requires-Dist: rapidocr>=3.10; extra == 'ocr'
|
|
59
|
+
Provides-Extra: postgres
|
|
60
|
+
Requires-Dist: psycopg[binary]>=3.2; extra == 'postgres'
|
|
61
|
+
Provides-Extra: s3
|
|
62
|
+
Requires-Dist: boto3>=1.35; extra == 's3'
|
|
63
|
+
Provides-Extra: serve
|
|
64
|
+
Requires-Dist: fastapi>=0.115; extra == 'serve'
|
|
65
|
+
Requires-Dist: pyjwt[crypto]>=2.10; extra == 'serve'
|
|
66
|
+
Requires-Dist: uvicorn>=0.30; extra == 'serve'
|
|
67
|
+
Description-Content-Type: text/markdown
|
|
68
|
+
|
|
69
|
+
# Simple KB (`skb`)
|
|
70
|
+
|
|
71
|
+
**Turn your documents into knowledge bases any agent can use.**
|
|
72
|
+
|
|
73
|
+
Point `skb` at a folder, an archive, a web page or a git repository. It reads PDFs, Office files, web pages, API references and scans, splits them into sections, and builds a search index. Agents then connect over MCP and get answers that cite the page they came from. That covers Claude, ChatGPT, Cursor, Copilot and your own LLM apps.
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
uv tool install "simple-kb[formats,serve]" # or: pipx install "simple-kb[formats,serve]"
|
|
77
|
+
|
|
78
|
+
skb create handbook ./docs # build a knowledge base from a folder
|
|
79
|
+
skb search handbook "who carries the pager" # cited results
|
|
80
|
+
skb serve # the portal, the HTTP API and MCP
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
- **Reads what teams actually have:**
|
|
84
|
+
- PDFs, cited by page;
|
|
85
|
+
- Word, PowerPoint, Excel, HTML, EPUB and Markdown;
|
|
86
|
+
- OpenAPI;
|
|
87
|
+
- Javadoc and generated docs sites, read by their structure;
|
|
88
|
+
- scans and photos, read on your machine with the `ocr` extra.
|
|
89
|
+
- **Serves any agent, safely:**
|
|
90
|
+
- a token per agent, scoped to the bases it may read;
|
|
91
|
+
- public bases with `llms.txt`, for documentation meant to be open.
|
|
92
|
+
- **Keeps people in charge:**
|
|
93
|
+
- agents propose notes and people approve them;
|
|
94
|
+
- verified pages say who checked them, and when.
|
|
95
|
+
- **Runs where you need it:** on a laptop with no sign-in, or on a server with SQLite or Postgres and local or S3-compatible storage.
|
|
96
|
+
- **Portable:** every base is an Open Knowledge Format (OKF) bundle of plain Markdown, which you can export and import anywhere.
|
|
97
|
+
|
|
98
|
+
**Extras:**
|
|
99
|
+
|
|
100
|
+
| Extra | What it adds |
|
|
101
|
+
| --- | --- |
|
|
102
|
+
| `formats` | PDF and Office files |
|
|
103
|
+
| `serve` | the portal, the HTTP API and MCP |
|
|
104
|
+
| `ocr` | text in images and scans |
|
|
105
|
+
| `s3` | S3-compatible storage |
|
|
106
|
+
| `postgres` | Postgres |
|
|
107
|
+
|
|
108
|
+
**Install uv first** if you don't have it: `curl -LsSf https://astral.sh/uv/install.sh | sh`, then open a new terminal. uv fetches a suitable Python (3.11 or newer) itself. skb is tested on Linux; on Windows, use WSL.
|
|
109
|
+
|
|
110
|
+
**Learn more:** see the [docs](https://skb.delivstat.com/docs/getting-started) and the [demo videos](https://skb.delivstat.com/demos).
|
|
111
|
+
|
|
112
|
+
**Licence:** Simple KB is free to download, install and use, for personal or business purposes. It is not open source. The terms are in the `LICENSE` file shipped in the package. © 2026 DELIVSTAT TECHNOLOGY SOLUTIONS LLP.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
swarmkit_knowledge/__init__.py,sha256=qnd9wiTc38X7aDFBQ0n1HGBVsysydnE0FRWbA_6f9zE,610
|
|
2
|
+
swarmkit_knowledge/_access.py,sha256=lgD9F-35km-D67t9zEAK8wNRadyyocnSSK3VjYGKaOA,20697
|
|
3
|
+
swarmkit_knowledge/_archives.py,sha256=Rbwe85E1Wf_4lsrECMJg8e3_PkIDHUwTHJmxlzPoexU,8935
|
|
4
|
+
swarmkit_knowledge/_blobs.py,sha256=8Dmley6EkyhiVXlxUxkMmT-nPznBvVgGnuWEew-JEtk,11804
|
|
5
|
+
swarmkit_knowledge/_builder.py,sha256=dhgoODgtaYicaZGeMU3BVH5PvTNLYiur8cQfwNAr2cw,65031
|
|
6
|
+
swarmkit_knowledge/_chunk.py,sha256=4NMTD8AX_CFh1kxcy4npLxmVa7Vw6h0obfLEhKO1R0s,6572
|
|
7
|
+
swarmkit_knowledge/_convert_worker.py,sha256=xwcZr26K8dNtXEeZvQAMGjLz4cCDkzBVNGjMYq3i9uA,15758
|
|
8
|
+
swarmkit_knowledge/_copies.py,sha256=Jug2Vt0vrLbil1Uy4d806pnM55AbAr3vAdP3iovrlJM,2786
|
|
9
|
+
swarmkit_knowledge/_dialect.py,sha256=kWM4GNoJTWqOOK3zCOAZeXt0Koa7mphGMcWVII3dQ7Q,13720
|
|
10
|
+
swarmkit_knowledge/_engine.py,sha256=HFYzaGGVrehLHO1uQZ7jbMfwat9Dn2-oAxtrlxBf4QI,5431
|
|
11
|
+
swarmkit_knowledge/_errors.py,sha256=1kEoK8S1io4wlucqgW3AAa21Q6592YNvVOPd8v3VfG8,5134
|
|
12
|
+
swarmkit_knowledge/_figures.py,sha256=8fsuKlDKFk2TcJsy_rvFj2ikodP_T2JTKsSPVjkbZY8,11321
|
|
13
|
+
swarmkit_knowledge/_fingerprint.py,sha256=uEVftR5VHg7rY9SELSsr6LiImQlYGmb3_bE4Nx2hr6w,5613
|
|
14
|
+
swarmkit_knowledge/_git.py,sha256=ID0ipPaeGoCwA7uQt-jGmVulCPI2zRW6vcdq6we5XbE,5845
|
|
15
|
+
swarmkit_knowledge/_groups.py,sha256=utHwlTGQ2buf2I2v9Ny8VxvD_LAGUOAlhkbxTJAuiDA,3462
|
|
16
|
+
swarmkit_knowledge/_hosted.py,sha256=KCVkCyl_teFsAOTq2L5ErRDwiDIWMITpXME0Qfj2NCE,6681
|
|
17
|
+
swarmkit_knowledge/_html.py,sha256=g_C0fZ381_7AE11gWrLwZ_fFJ-GI9eEto9Wllsk6sVg,4340
|
|
18
|
+
swarmkit_knowledge/_http.py,sha256=jSavNqh4Vj22Gs3JZrheNwrzWPTG41qJOzKD0hbF8BM,72397
|
|
19
|
+
swarmkit_knowledge/_javadoc.py,sha256=XzipobX0RSL3nXUjgdNwIxULigNJW944tKeUdiRLYx4,15352
|
|
20
|
+
swarmkit_knowledge/_layout.py,sha256=_QTZzM7IZoeqPZN-H_oymFsl1eWqLhp8-w0A6Dlz1ko,10321
|
|
21
|
+
swarmkit_knowledge/_layout_analysis.py,sha256=eLxmSPjcirjIrMsJhIBZzf88pG82HV9GkqhI12NLFtQ,13426
|
|
22
|
+
swarmkit_knowledge/_mcp.py,sha256=tRB-PArK1s5NGlP1ZVR9rNU4eVumBu5VyJSWBqqTSeI,29504
|
|
23
|
+
swarmkit_knowledge/_migrations.py,sha256=ufAmZLSyvSxtxIrw2vLqIqaKNzB_ORpHj51acleVryo,20400
|
|
24
|
+
swarmkit_knowledge/_model.py,sha256=9f7kgYTNkOCpTEWgI6nIE2qwQWLnG3tCR3de2rKrBoo,8172
|
|
25
|
+
swarmkit_knowledge/_net.py,sha256=ZXfRwHZuzS21ON53fAsLPFW8HKrTjnWokBntWLZvIlM,8605
|
|
26
|
+
swarmkit_knowledge/_oauth.py,sha256=5l63gCmtbkhtMGUFTcLup1Ds5fX5_3shQQ1J9J3J1bI,11151
|
|
27
|
+
swarmkit_knowledge/_ocr.py,sha256=4hUE9JbAvr1CNhwFVYg_lrUlgD_iAjEseKYWPLLj6e0,2803
|
|
28
|
+
swarmkit_knowledge/_okf.py,sha256=e0mxTHw6ZsC5D7xQIB6a2IAKBHffpT-2IqqVPS7QMbI,4022
|
|
29
|
+
swarmkit_knowledge/_openapi.py,sha256=LL3mID1y41m1TbpN3jXUMKN-M5xTeMjAcxFgUYlhlu0,17655
|
|
30
|
+
swarmkit_knowledge/_orgs.py,sha256=yS-Ah8oIZFchEN6G97gGx3Bsy0B-eQYWvbU5ttt7r0U,13246
|
|
31
|
+
swarmkit_knowledge/_portal.py,sha256=aT85sIaKlJdkO8C3TeIU5w3u3z6Ek6iyS6f4hxCzG10,2318
|
|
32
|
+
swarmkit_knowledge/_profile_author.py,sha256=JU_TgWwp-gQXjzTINJU-XLitW0iDZ4rAjmq6sdo4oOM,15385
|
|
33
|
+
swarmkit_knowledge/_profile_cli.py,sha256=GM27CoXCo7k4_ROxwFxhUv_G35c9ppK-eHOx3cN4H1g,17736
|
|
34
|
+
swarmkit_knowledge/_profile_reader.py,sha256=CG__atz3S2h11BH6-IQHnWAmoQGIMFBSICvQh1vhLDY,11171
|
|
35
|
+
swarmkit_knowledge/_profile_test.py,sha256=27C_nVk8361gE5UwWruxOh9Ldzzp9jHrN-2vdXJVo3Y,10390
|
|
36
|
+
swarmkit_knowledge/_profiles.py,sha256=Expz--CnHO-usup0wefEVt_7dF2boYo8O8k9JuXP32U,23268
|
|
37
|
+
swarmkit_knowledge/_public.py,sha256=tPH-T-RHLPwC8QcPYV4kElWT9wGErDmgJhAB5hKw2r0,5932
|
|
38
|
+
swarmkit_knowledge/_remote.py,sha256=1KhOUn0dYUGBhynaNiigC-A-O6ocPua_Jidv12XAHHg,20283
|
|
39
|
+
swarmkit_knowledge/_sandbox.py,sha256=6JfLo5e7JWevq2mWdsrD-ja3shsecrswtVXUUpk1ko8,10162
|
|
40
|
+
swarmkit_knowledge/_service.py,sha256=OJDsiDH6zDvX3VnEz7f38nuGP8VlUXd0H-MqIet5_Gs,46575
|
|
41
|
+
swarmkit_knowledge/_signin.py,sha256=ez97ikhF7TQTf2zFsYstz9w0049CPG9HLQbHIsn9nEg,8509
|
|
42
|
+
swarmkit_knowledge/_store.py,sha256=fYowAdYxxOvTqjYXLfxhiSZpnwzNG4ziVBuy-WLoheA,61994
|
|
43
|
+
swarmkit_knowledge/_suggestions.py,sha256=jJOFYtktS-UIv7paRje1iYTBZY0YAxcT9Hw0cwyHPAw,4981
|
|
44
|
+
swarmkit_knowledge/_worker.py,sha256=Xna5fG5SPBQzo8jfbp3mnd2AO8bTWguF-LwLgMdpGdY,4831
|
|
45
|
+
swarmkit_knowledge/_writes.py,sha256=YfTbKE5B5Qoj5Pn8mOqG2enkXtDQPSaAzM9gQb9BTQ0,18420
|
|
46
|
+
swarmkit_knowledge/_xsd.py,sha256=ck0wnA0f9f4I8-mX27I7PcGg_t0U2IZHJusjOS_4zGU,14427
|
|
47
|
+
swarmkit_knowledge/cli.py,sha256=HHMS2c7Q8HzBDkz5zp9cyhtiIU-zsWj-Ie79h45UmSQ,40812
|
|
48
|
+
swarmkit_knowledge/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
49
|
+
swarmkit_knowledge/_static/index.html,sha256=jDzY233UwI9aR43qR_nse3pa8GX8QD2RSqzquch5wxw,630
|
|
50
|
+
swarmkit_knowledge/_static/assets/index-BaFdPCs5.css,sha256=92y11Y7VTou_FqtDJXp-Q4i1DHWWqRANGF2JjVUVhgo,18862
|
|
51
|
+
swarmkit_knowledge/_static/assets/index-Bk0bonRY.js,sha256=YOd121-iPejQyvUP_6z06W4Dp6Nl6o_Ti6wfCQKHZmM,534681
|
|
52
|
+
simple_kb-0.1.0.dist-info/METADATA,sha256=Z26KKPo-HlaQx0WlbpKhDVGy0e6fwDyh58JYbLpXrGY,5820
|
|
53
|
+
simple_kb-0.1.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
54
|
+
simple_kb-0.1.0.dist-info/entry_points.txt,sha256=Y1depWxyhU-n-73rRw89SgvhYZX0O0pBg92T7HKQyAk,52
|
|
55
|
+
simple_kb-0.1.0.dist-info/licenses/LICENSE,sha256=d7UIzZK1xNyGYqtNcCPXfOkeUcEs1CztwKaIuBZjdBU,1698
|
|
56
|
+
simple_kb-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
swarmkit-knowledge License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 DELIVSTAT TECHNOLOGY SOLUTIONS LLP. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software, including its source code, documentation and the web portal it serves (together,
|
|
6
|
+
"the Software"), is licensed, not sold. It is not open source.
|
|
7
|
+
|
|
8
|
+
1. Use. You may download, install and use the Software free of charge, for personal or business
|
|
9
|
+
purposes, including running its server for yourself or for the people of your own organisation.
|
|
10
|
+
|
|
11
|
+
2. Restrictions. You may not, in whole or in part:
|
|
12
|
+
a. copy, redistribute, sublicense, sell, rent or lease the Software, except for copies made
|
|
13
|
+
by installing it as permitted in section 1;
|
|
14
|
+
b. distribute modified versions of the Software, or works derived from it;
|
|
15
|
+
c. offer the Software, or a service substantially based on it, to third parties as a hosted
|
|
16
|
+
or managed service;
|
|
17
|
+
d. remove or alter this license or any copyright notice.
|
|
18
|
+
|
|
19
|
+
3. Ownership. All rights not expressly granted here are reserved by the copyright holder.
|
|
20
|
+
|
|
21
|
+
4. Third-party components. Libraries the Software depends on are licensed under their own terms.
|
|
22
|
+
|
|
23
|
+
5. No warranty. The Software is provided "as is", without warranty of any kind, express or
|
|
24
|
+
implied, including the warranties of merchantability, fitness for a particular purpose and
|
|
25
|
+
non-infringement.
|
|
26
|
+
|
|
27
|
+
6. Limitation of liability. In no event shall the copyright holder be liable for any claim,
|
|
28
|
+
damages or other liability, whether in an action of contract, tort or otherwise, arising
|
|
29
|
+
from, out of or in connection with the Software or its use.
|
|
30
|
+
|
|
31
|
+
7. Termination. This license ends automatically if you break its terms. You must then stop using
|
|
32
|
+
the Software and delete your copies.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""swarmkit-knowledge: knowledge bases any agent can use.
|
|
2
|
+
|
|
3
|
+
Design: `design/knowledge-service.md` (packaging, engine, hosting-ready shape) and
|
|
4
|
+
`design/knowledge-bases.md` (what a base is: OKF bundles, sources, large documents, figures,
|
|
5
|
+
archives, governance, the read contract).
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
__version__ = version("simple-kb") # the distribution's name (#123), not the import name
|
|
14
|
+
except PackageNotFoundError: # running from a source tree without an install
|
|
15
|
+
__version__ = "0.0.0"
|
|
16
|
+
|
|
17
|
+
__all__ = ["__version__"]
|