dachshund 0.0.1a0__tar.gz

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 (64) hide show
  1. dachshund-0.0.1a0/.github/CODEOWNERS +1 -0
  2. dachshund-0.0.1a0/.github/workflows/codeql.yml +41 -0
  3. dachshund-0.0.1a0/.github/workflows/docs.yml +38 -0
  4. dachshund-0.0.1a0/.github/workflows/publish.yml +55 -0
  5. dachshund-0.0.1a0/.github/workflows/tests.yml +44 -0
  6. dachshund-0.0.1a0/.gitignore +224 -0
  7. dachshund-0.0.1a0/CONTRIBUTING.md +41 -0
  8. dachshund-0.0.1a0/LICENSE +21 -0
  9. dachshund-0.0.1a0/PKG-INFO +74 -0
  10. dachshund-0.0.1a0/README.md +30 -0
  11. dachshund-0.0.1a0/dachshund/__init__.py +40 -0
  12. dachshund-0.0.1a0/dachshund/_version.py +24 -0
  13. dachshund-0.0.1a0/dachshund/filters.py +71 -0
  14. dachshund-0.0.1a0/dachshund/py.typed +0 -0
  15. dachshund-0.0.1a0/dachshund/registry.py +335 -0
  16. dachshund-0.0.1a0/dachshund/runtime/__init__.py +0 -0
  17. dachshund-0.0.1a0/dachshund/runtime/boot.py +177 -0
  18. dachshund-0.0.1a0/dachshund/runtime/http.py +97 -0
  19. dachshund-0.0.1a0/dachshund/runtime/keys.py +8 -0
  20. dachshund-0.0.1a0/dachshund/runtime/ws.py +133 -0
  21. dachshund-0.0.1a0/dachshund/static/dashboard.css +268 -0
  22. dachshund-0.0.1a0/dachshund/static/dashboard.js +319 -0
  23. dachshund-0.0.1a0/dachshund/static/uplot.min.css +1 -0
  24. dachshund-0.0.1a0/dachshund/static/uplot.min.js +2 -0
  25. dachshund-0.0.1a0/dachshund/storage/__init__.py +0 -0
  26. dachshund-0.0.1a0/dachshund/storage/events.py +43 -0
  27. dachshund-0.0.1a0/dachshund/templates/base.html +27 -0
  28. dachshund-0.0.1a0/dachshund/templates/page.html +18 -0
  29. dachshund-0.0.1a0/dachshund/widgets/__init__.py +15 -0
  30. dachshund-0.0.1a0/dachshund/widgets/base.py +118 -0
  31. dachshund-0.0.1a0/dachshund/widgets/chart/__init__.py +0 -0
  32. dachshund-0.0.1a0/dachshund/widgets/chart/bar.py +70 -0
  33. dachshund-0.0.1a0/dachshund/widgets/chart/line.py +90 -0
  34. dachshund-0.0.1a0/dachshund/widgets/chart/timeseries.py +51 -0
  35. dachshund-0.0.1a0/dachshund/widgets/value.py +39 -0
  36. dachshund-0.0.1a0/dachshund.egg-info/PKG-INFO +74 -0
  37. dachshund-0.0.1a0/dachshund.egg-info/SOURCES.txt +62 -0
  38. dachshund-0.0.1a0/dachshund.egg-info/dependency_links.txt +1 -0
  39. dachshund-0.0.1a0/dachshund.egg-info/requires.txt +14 -0
  40. dachshund-0.0.1a0/dachshund.egg-info/scm_file_list.json +58 -0
  41. dachshund-0.0.1a0/dachshund.egg-info/scm_version.json +8 -0
  42. dachshund-0.0.1a0/dachshund.egg-info/top_level.txt +1 -0
  43. dachshund-0.0.1a0/docs/docs/guides/custom-widgets.md +76 -0
  44. dachshund-0.0.1a0/docs/docs/index.md +11 -0
  45. dachshund-0.0.1a0/docs/docs/reference/bar-chart.md +12 -0
  46. dachshund-0.0.1a0/docs/docs/reference/dashboard.md +22 -0
  47. dachshund-0.0.1a0/docs/docs/reference/events.md +11 -0
  48. dachshund-0.0.1a0/docs/docs/reference/line-chart.md +12 -0
  49. dachshund-0.0.1a0/docs/docs/reference/runtime.md +7 -0
  50. dachshund-0.0.1a0/docs/docs/reference/timeseries-chart.md +12 -0
  51. dachshund-0.0.1a0/docs/docs/reference/widget.md +24 -0
  52. dachshund-0.0.1a0/docs/mkdocs.yml +82 -0
  53. dachshund-0.0.1a0/mypy.ini +5 -0
  54. dachshund-0.0.1a0/pyproject.toml +57 -0
  55. dachshund-0.0.1a0/setup.cfg +4 -0
  56. dachshund-0.0.1a0/tests/test_boot.py +119 -0
  57. dachshund-0.0.1a0/tests/test_events.py +35 -0
  58. dachshund-0.0.1a0/tests/test_filters.py +53 -0
  59. dachshund-0.0.1a0/tests/test_http.py +185 -0
  60. dachshund-0.0.1a0/tests/test_registry.py +254 -0
  61. dachshund-0.0.1a0/tests/test_value.py +43 -0
  62. dachshund-0.0.1a0/tests/test_version.py +6 -0
  63. dachshund-0.0.1a0/tests/test_widgets.py +263 -0
  64. dachshund-0.0.1a0/tests/test_ws.py +185 -0
@@ -0,0 +1 @@
1
+ * @PenguinBoi12
@@ -0,0 +1,41 @@
1
+ name: "CodeQL Advanced"
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main", "dev" ]
6
+ pull_request:
7
+ branches: [ "main", "dev" ]
8
+ schedule:
9
+ - cron: '24 17 * * 4'
10
+
11
+ jobs:
12
+ analyze:
13
+ name: Analyze (${{ matrix.language }})
14
+ runs-on: ubuntu-latest
15
+ permissions:
16
+ security-events: write
17
+ packages: read
18
+ actions: read
19
+ contents: read
20
+
21
+ strategy:
22
+ fail-fast: false
23
+ matrix:
24
+ include:
25
+ - language: python
26
+ build-mode: none
27
+
28
+ steps:
29
+ - name: Checkout repository
30
+ uses: actions/checkout@v4
31
+
32
+ - name: Initialize CodeQL
33
+ uses: github/codeql-action/init@v4
34
+ with:
35
+ languages: ${{ matrix.language }}
36
+ build-mode: ${{ matrix.build-mode }}
37
+
38
+ - name: Perform CodeQL Analysis
39
+ uses: github/codeql-action/analyze@v4
40
+ with:
41
+ category: "/language:${{matrix.language}}"
@@ -0,0 +1,38 @@
1
+ name: Deploy Docs
2
+
3
+ on:
4
+ release:
5
+ types: [ published ]
6
+
7
+ permissions:
8
+ contents: read
9
+ pages: write
10
+ id-token: write
11
+
12
+ jobs:
13
+ deploy:
14
+ runs-on: ubuntu-latest
15
+ environment:
16
+ name: github-pages
17
+ url: ${{ steps.deployment.outputs.page_url }}
18
+
19
+ steps:
20
+ - uses: actions/checkout@v4
21
+
22
+ - uses: actions/setup-python@v5
23
+ with:
24
+ python-version: "3.10"
25
+
26
+ - name: Install dependencies
27
+ run: pip install .[doc]
28
+
29
+ - name: Build docs
30
+ run: cd docs && mkdocs build
31
+
32
+ - uses: actions/upload-pages-artifact@v3
33
+ with:
34
+ path: docs/site
35
+
36
+ - name: Deploy to GitHub Pages
37
+ id: deployment
38
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,55 @@
1
+ name: Publish
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ release-build:
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ with:
17
+ fetch-depth: 0
18
+
19
+ - uses: actions/setup-python@v5
20
+ with:
21
+ python-version: "3.10"
22
+
23
+ - name: Build release distributions
24
+ run: |
25
+ python -m pip install --upgrade pip
26
+ python -m pip install build
27
+ python -m build
28
+
29
+ - name: Upload distributions
30
+ uses: actions/upload-artifact@v4
31
+ with:
32
+ name: release-dists
33
+ path: dist/
34
+
35
+ pypi-publish:
36
+ runs-on: ubuntu-latest
37
+ needs:
38
+ - release-build
39
+
40
+ permissions:
41
+ id-token: write
42
+
43
+ environment:
44
+ name: release
45
+ url: https://pypi.org/project/dachshund/${{ github.event.release.tag_name }}
46
+
47
+ steps:
48
+ - name: Retrieve release distributions
49
+ uses: actions/download-artifact@v4
50
+ with:
51
+ name: release-dists
52
+ path: dist/
53
+
54
+ - name: Publish release distributions to PyPI
55
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,44 @@
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main", "dev" ]
6
+ pull_request:
7
+ branches: [ "main", "dev" ]
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ build:
14
+
15
+ runs-on: ubuntu-latest
16
+
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - name: Set up Python 3.12
20
+ uses: actions/setup-python@v3
21
+ with:
22
+ python-version: "3.12"
23
+ - name: Install dependencies
24
+ run: |
25
+ python -m pip install --upgrade pip
26
+ pip install -e .[dev]
27
+ - name: Lint with Black
28
+ id: black
29
+ continue-on-error: true
30
+ run: |
31
+ black --check dachshund/ tests/
32
+ - name: Check typing with mypy
33
+ id: mypy
34
+ continue-on-error: true
35
+ run: |
36
+ mypy dachshund
37
+ - name: Test with pytest
38
+ id: pytest
39
+ continue-on-error: true
40
+ run: |
41
+ pytest -v --cov=dachshund --cov-report=term-missing --cov-fail-under=90
42
+ - name: All checks succeeded
43
+ if: steps.black.outcome == 'failure' || steps.mypy.outcome == 'failure' || steps.pytest.outcome == 'failure'
44
+ run: exit 1
@@ -0,0 +1,224 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ # Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ # poetry.lock
109
+ # poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ # pdm.lock
116
+ # pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ # pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # Redis
135
+ *.rdb
136
+ *.aof
137
+ *.pid
138
+
139
+ # RabbitMQ
140
+ mnesia/
141
+ rabbitmq/
142
+ rabbitmq-data/
143
+
144
+ # ActiveMQ
145
+ activemq-data/
146
+
147
+ # SageMath parsed files
148
+ *.sage.py
149
+
150
+ # Environments
151
+ .env
152
+ .envrc
153
+ .venv
154
+ env/
155
+ venv/
156
+ ENV/
157
+ env.bak/
158
+ venv.bak/
159
+
160
+ # Spyder project settings
161
+ .spyderproject
162
+ .spyproject
163
+
164
+ # Rope project settings
165
+ .ropeproject
166
+
167
+ # mkdocs documentation
168
+ /site
169
+
170
+ # mypy
171
+ .mypy_cache/
172
+ .dmypy.json
173
+ dmypy.json
174
+
175
+ # Pyre type checker
176
+ .pyre/
177
+
178
+ # pytype static type analyzer
179
+ .pytype/
180
+
181
+ # Cython debug symbols
182
+ cython_debug/
183
+
184
+ # PyCharm
185
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
188
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
189
+ .idea/
190
+
191
+ # Abstra
192
+ # Abstra is an AI-powered process automation framework.
193
+ # Ignore directories containing user credentials, local state, and settings.
194
+ # Learn more at https://abstra.io/docs
195
+ .abstra/
196
+
197
+ # Visual Studio Code
198
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
201
+ # you could uncomment the following to ignore the entire vscode folder
202
+ # .vscode/
203
+ # Temporary file for partial code execution
204
+ tempCodeRunnerFile.py
205
+
206
+ # Ruff stuff:
207
+ .ruff_cache/
208
+
209
+ # PyPI configuration file
210
+ .pypirc
211
+
212
+ # Marimo
213
+ marimo/_static/
214
+ marimo/_lsp/
215
+ __marimo__/
216
+
217
+ # Streamlit
218
+ .streamlit/secrets.toml
219
+
220
+ # setuptools_scm
221
+ dachshund/_version.py
222
+
223
+ # mkdocs
224
+ docs/site/
@@ -0,0 +1,41 @@
1
+ # Contributing to dachshund
2
+
3
+ ## Setup
4
+
5
+ 1. Clone the dachshund repository
6
+ 2. Create and activate a virtual environment
7
+ 3. Install the development dependencies
8
+
9
+ ```bash
10
+ pip install -e ".[dev]"
11
+ ```
12
+
13
+ ## Checks
14
+
15
+ Run these before committing, they are the same checks CI runs:
16
+
17
+ ```bash
18
+ black dachshund/ tests/
19
+ mypy dachshund
20
+ pytest -v --cov=dachshund --cov-report=term-missing --cov-fail-under=90
21
+ ```
22
+
23
+ ## Branching
24
+
25
+ Work happens on local branches, which are merged into `dev`. `dev` is merged into `main`
26
+ for releases, so `main` stays clean.
27
+
28
+ ## Guidelines
29
+
30
+ Add docstrings to all of your code (functions, methods, classes, ...). The codebase
31
+ should have enough examples for you to copy from.
32
+
33
+ Write tests for your code.
34
+
35
+ - If you are fixing a bug, add a regression test that references the original issue.
36
+ - If you are implementing a new feature, add tests covering the new functionality.
37
+
38
+ All code must be formatted with [black](https://black.readthedocs.io/), typed
39
+ ([type hinting](https://docs.python.org/3/library/typing.html)) and pass
40
+ [mypy](https://mypy-lang.org/). The code, documentation and other text must be in
41
+ English.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Simon Roy
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.
@@ -0,0 +1,74 @@
1
+ Metadata-Version: 2.4
2
+ Name: dachshund
3
+ Version: 0.0.1a0
4
+ Summary: An embedded, real-time admin dashboard for any Python service
5
+ Author: Simon Roy
6
+ License: MIT License
7
+
8
+ Copyright (c) 2026 Simon Roy
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: Source, https://github.com/PenguinBoi12/dachshund
29
+ Project-URL: Issues, https://github.com/PenguinBoi12/dachshund/issues
30
+ Requires-Python: >=3.10
31
+ Description-Content-Type: text/markdown
32
+ Requires-Dist: aiohttp==3.13.5
33
+ Requires-Dist: Jinja2==3.1.6
34
+ Provides-Extra: dev
35
+ Requires-Dist: pytest==9.1.1; extra == "dev"
36
+ Requires-Dist: pytest-cov==7.1.0; extra == "dev"
37
+ Requires-Dist: pytest-asyncio==1.4.0; extra == "dev"
38
+ Requires-Dist: black==26.5.1; extra == "dev"
39
+ Requires-Dist: mypy==2.1.0; extra == "dev"
40
+ Provides-Extra: doc
41
+ Requires-Dist: mkdocs==1.6.1; extra == "doc"
42
+ Requires-Dist: mkdocs-material==9.7.6; extra == "doc"
43
+ Requires-Dist: mkdocstrings[python]==1.0.4; extra == "doc"
44
+
45
+ # Dachshund
46
+
47
+ An embedded, real-time hostable admin dashboard for any Python service: FastAPI, Flask,
48
+ Django, bots, workers, daemons, etc.
49
+
50
+ Dachshund runs as a thread inside your process, so there's no router to hook into and
51
+ no database to set up. Declare widgets and actions in your code, emit events from
52
+ anywhere, and the dashboard updates live over WebSocket.
53
+
54
+ > **Under development.** Dachshund is not usable yet.
55
+
56
+ ## Development
57
+
58
+ ```bash
59
+ python -m venv venv
60
+ source venv/bin/activate
61
+ pip install -e ".[dev]"
62
+ ```
63
+
64
+ Run the checks:
65
+
66
+ ```bash
67
+ black dachshund/ tests/
68
+ mypy dachshund
69
+ pytest
70
+ ```
71
+
72
+ ## License
73
+
74
+ MIT
@@ -0,0 +1,30 @@
1
+ # Dachshund
2
+
3
+ An embedded, real-time hostable admin dashboard for any Python service: FastAPI, Flask,
4
+ Django, bots, workers, daemons, etc.
5
+
6
+ Dachshund runs as a thread inside your process, so there's no router to hook into and
7
+ no database to set up. Declare widgets and actions in your code, emit events from
8
+ anywhere, and the dashboard updates live over WebSocket.
9
+
10
+ > **Under development.** Dachshund is not usable yet.
11
+
12
+ ## Development
13
+
14
+ ```bash
15
+ python -m venv venv
16
+ source venv/bin/activate
17
+ pip install -e ".[dev]"
18
+ ```
19
+
20
+ Run the checks:
21
+
22
+ ```bash
23
+ black dachshund/ tests/
24
+ mypy dachshund
25
+ pytest
26
+ ```
27
+
28
+ ## License
29
+
30
+ MIT
@@ -0,0 +1,40 @@
1
+ """An embedded, real-time admin dashboard for any Python service."""
2
+
3
+ from importlib.metadata import version, PackageNotFoundError
4
+
5
+ try:
6
+ __version__ = version("dachshund")
7
+ except PackageNotFoundError:
8
+ from dachshund._version import version as __version__
9
+
10
+ from dachshund.registry import (
11
+ Dashboard,
12
+ default,
13
+ emit,
14
+ chart,
15
+ init,
16
+ shutdown,
17
+ widget,
18
+ )
19
+ from dachshund.runtime.boot import Runtime
20
+ from dachshund.storage.events import Event
21
+ from dachshund.widgets.base import Widget
22
+ from dachshund.widgets.chart.bar import BarChart
23
+ from dachshund.widgets.chart.line import LineChart
24
+ from dachshund.widgets.chart.timeseries import TimeSeriesChart
25
+
26
+ __all__ = [
27
+ "BarChart",
28
+ "Dashboard",
29
+ "Event",
30
+ "LineChart",
31
+ "Runtime",
32
+ "TimeSeriesChart",
33
+ "Widget",
34
+ "chart",
35
+ "default",
36
+ "emit",
37
+ "init",
38
+ "shutdown",
39
+ "widget",
40
+ ]
@@ -0,0 +1,24 @@
1
+ # file generated by vcs-versioning
2
+ # don't change, don't track in version control
3
+ from __future__ import annotations
4
+
5
+ __all__ = [
6
+ "__version__",
7
+ "__version_tuple__",
8
+ "version",
9
+ "version_tuple",
10
+ "__commit_id__",
11
+ "commit_id",
12
+ ]
13
+
14
+ version: str
15
+ __version__: str
16
+ __version_tuple__: tuple[int | str, ...]
17
+ version_tuple: tuple[int | str, ...]
18
+ commit_id: str | None
19
+ __commit_id__: str | None
20
+
21
+ __version__ = version = '0.0.1a0'
22
+ __version_tuple__ = version_tuple = (0, 0, 1, 'a0')
23
+
24
+ __commit_id__ = commit_id = 'gb5609120d'