ezmsg-kinematics 0.1__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.
@@ -0,0 +1,66 @@
1
+ name: Documentation
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+ - dev
11
+ release:
12
+ types: [published]
13
+ workflow_dispatch:
14
+
15
+ permissions:
16
+ contents: read
17
+ pages: write
18
+ id-token: write
19
+
20
+ # Allow only one concurrent deployment
21
+ concurrency:
22
+ group: "pages"
23
+ cancel-in-progress: false
24
+
25
+ jobs:
26
+ build:
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - uses: actions/checkout@v4
30
+ with:
31
+ fetch-depth: 0 # Needed for hatch-vcs to determine version
32
+
33
+ - name: Install uv
34
+ uses: astral-sh/setup-uv@v6
35
+ with:
36
+ enable-cache: true
37
+ python-version: "3.12"
38
+
39
+ - name: Install the project
40
+ run: uv sync --only-group docs
41
+
42
+ - name: Build documentation
43
+ run: |
44
+ cd docs
45
+ uv run make html
46
+
47
+ - name: Add .nojekyll file
48
+ run: touch docs/build/html/.nojekyll
49
+
50
+ - name: Upload artifact
51
+ uses: actions/upload-pages-artifact@v3
52
+ with:
53
+ path: 'docs/build/html'
54
+
55
+ deploy:
56
+ # Only deploy when a release is published
57
+ if: github.event_name == 'release'
58
+ environment:
59
+ name: github-pages
60
+ url: ${{ steps.deployment.outputs.page_url }}
61
+ runs-on: ubuntu-latest
62
+ needs: build
63
+ steps:
64
+ - name: Deploy to GitHub Pages
65
+ id: deployment
66
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,28 @@
1
+ # This workflow will upload a Python Package using Twine when a release is created
2
+
3
+ name: Upload Python Package
4
+
5
+ on:
6
+ release:
7
+ types: [published]
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ build:
12
+ name: build and upload release to PyPI
13
+ runs-on: ubuntu-latest
14
+ environment: "release"
15
+ permissions:
16
+ id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
17
+
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+
21
+ - name: Install uv
22
+ uses: astral-sh/setup-uv@v6
23
+
24
+ - name: Build Package
25
+ run: uv build
26
+
27
+ - name: Publish package distributions to PyPI
28
+ run: uv publish
@@ -0,0 +1,36 @@
1
+ name: Test package
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches:
8
+ - main
9
+ - dev
10
+ workflow_dispatch:
11
+
12
+ jobs:
13
+ build:
14
+ strategy:
15
+ matrix:
16
+ python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
17
+ os:
18
+ - "ubuntu-latest"
19
+ - "windows-latest"
20
+ - "macos-latest"
21
+ runs-on: ${{matrix.os}}
22
+
23
+ steps:
24
+ - uses: actions/checkout@v4
25
+
26
+ - name: Install the latest version of uv
27
+ uses: astral-sh/setup-uv@v6
28
+
29
+ - name: Install the project
30
+ run: uv sync --python ${{ matrix.python-version }}
31
+
32
+ - name: Lint
33
+ run: uv tool run ruff check --output-format=github src
34
+
35
+ - name: Run tests
36
+ run: uv run pytest tests
@@ -0,0 +1,129 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
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
+ *.manifest
31
+ *.spec
32
+
33
+ # Installer logs
34
+ pip-log.txt
35
+ pip-delete-this-directory.txt
36
+
37
+ # Unit test / coverage reports
38
+ htmlcov/
39
+ .tox/
40
+ .nox/
41
+ .coverage
42
+ .coverage.*
43
+ .cache
44
+ nosetests.xml
45
+ coverage.xml
46
+ *.cover
47
+ *.py,cover
48
+ .hypothesis/
49
+ .pytest_cache/
50
+ cover/
51
+
52
+ # Translations
53
+ *.mo
54
+ *.pot
55
+
56
+ # Sphinx documentation
57
+ docs/_build/
58
+ docs/build/
59
+ docs/source/_build
60
+ docs/source/generated
61
+ docs/source/api/generated
62
+
63
+ # PyBuilder
64
+ .pybuilder/
65
+ target/
66
+
67
+ # Jupyter Notebook
68
+ .ipynb_checkpoints
69
+
70
+ # IPython
71
+ profile_default/
72
+ ipython_config.py
73
+
74
+ # pyenv
75
+ # .python-version
76
+
77
+ # PEP 582
78
+ __pypackages__/
79
+
80
+ # Environments
81
+ .env
82
+ .venv
83
+ env/
84
+ venv/
85
+ ENV/
86
+ env.bak/
87
+ venv.bak/
88
+
89
+ # Spyder project settings
90
+ .spyderproject
91
+ .spyproject
92
+
93
+ # Rope project settings
94
+ .ropeproject
95
+
96
+ # mkdocs documentation
97
+ /site
98
+
99
+ # mypy
100
+ .mypy_cache/
101
+ .dmypy.json
102
+ dmypy.json
103
+
104
+ # Pyre type checker
105
+ .pyre/
106
+
107
+ # pytype static type analyzer
108
+ .pytype/
109
+
110
+ # Cython debug symbols
111
+ cython_debug/
112
+
113
+ # JetBrains IDE
114
+ .idea/
115
+
116
+ # VS Code
117
+ .vscode/
118
+
119
+ # Ruff cache
120
+ .ruff_cache/
121
+
122
+ # hatch-vcs generated version file
123
+ src/ezmsg/kinematics/__version__.py
124
+
125
+ # uv lockfile (optional - comment if you want to track it)
126
+ uv.lock
127
+
128
+ # Claude
129
+ settings.local.json
@@ -0,0 +1,9 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.8.3
4
+ hooks:
5
+ # Run the linter.
6
+ - id: ruff
7
+ args: [ --fix ]
8
+ # Run the formatter.
9
+ - id: ruff-format
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 ezmsg-org
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,70 @@
1
+ Metadata-Version: 2.5
2
+ Name: ezmsg-kinematics
3
+ Version: 0.1
4
+ Summary: ezmsg units and utility code for streaming kinematics
5
+ Author-email: Chadwick Boulay <chad@cbneurotech.com>
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Requires-Python: >=3.10
9
+ Requires-Dist: ezmsg>=3.9.0
10
+ Description-Content-Type: text/markdown
11
+
12
+ # ezmsg-kinematics
13
+
14
+ Short description of your ezmsg package.
15
+
16
+ ## Overview
17
+
18
+ `ezmsg-kinematics` provides ... for the `ezmsg <https://www.ezmsg.org>`_ framework.
19
+
20
+ Key features:
21
+
22
+ * **Feature 1** - Description
23
+ * **Feature 2** - Description
24
+ * **Feature 3** - Description
25
+
26
+ ## Installation
27
+
28
+ Install from PyPI:
29
+
30
+ ```bash
31
+ pip install ezmsg-kinematics
32
+ ```
33
+
34
+ Or install the latest development version:
35
+
36
+ ```bash
37
+ pip install git+https://github.com/ezmsg-org/ezmsg-kinematics@main
38
+ ```
39
+
40
+ ## Dependencies
41
+
42
+ - `ezmsg`
43
+
44
+ ## Usage
45
+
46
+ See the `examples` folder for usage examples.
47
+
48
+ ```python
49
+ import ezmsg.core as ez
50
+ from ezmsg.kinematics import MyUnit
51
+
52
+ # Your usage example here
53
+ ```
54
+
55
+ For general ezmsg tutorials and guides, visit [ezmsg.org](https://www.ezmsg.org).
56
+
57
+ ## Development
58
+
59
+ We use [`uv`](https://docs.astral.sh/uv/getting-started/installation/) for development.
60
+
61
+ 1. Install [`uv`](https://docs.astral.sh/uv/getting-started/installation/) if not already installed.
62
+ 2. Fork this repository and clone your fork locally.
63
+ 3. Open a terminal and `cd` to the cloned folder.
64
+ 4. Run `uv sync` to create a `.venv` and install dependencies.
65
+ 5. (Optional) Install pre-commit hooks: `uv run pre-commit install`
66
+ 6. After making changes, run the test suite: `uv run pytest tests`
67
+
68
+ ## License
69
+
70
+ MIT License - see [LICENSE](LICENSE) for details.
@@ -0,0 +1,59 @@
1
+ # ezmsg-kinematics
2
+
3
+ Short description of your ezmsg package.
4
+
5
+ ## Overview
6
+
7
+ `ezmsg-kinematics` provides ... for the `ezmsg <https://www.ezmsg.org>`_ framework.
8
+
9
+ Key features:
10
+
11
+ * **Feature 1** - Description
12
+ * **Feature 2** - Description
13
+ * **Feature 3** - Description
14
+
15
+ ## Installation
16
+
17
+ Install from PyPI:
18
+
19
+ ```bash
20
+ pip install ezmsg-kinematics
21
+ ```
22
+
23
+ Or install the latest development version:
24
+
25
+ ```bash
26
+ pip install git+https://github.com/ezmsg-org/ezmsg-kinematics@main
27
+ ```
28
+
29
+ ## Dependencies
30
+
31
+ - `ezmsg`
32
+
33
+ ## Usage
34
+
35
+ See the `examples` folder for usage examples.
36
+
37
+ ```python
38
+ import ezmsg.core as ez
39
+ from ezmsg.kinematics import MyUnit
40
+
41
+ # Your usage example here
42
+ ```
43
+
44
+ For general ezmsg tutorials and guides, visit [ezmsg.org](https://www.ezmsg.org).
45
+
46
+ ## Development
47
+
48
+ We use [`uv`](https://docs.astral.sh/uv/getting-started/installation/) for development.
49
+
50
+ 1. Install [`uv`](https://docs.astral.sh/uv/getting-started/installation/) if not already installed.
51
+ 2. Fork this repository and clone your fork locally.
52
+ 3. Open a terminal and `cd` to the cloned folder.
53
+ 4. Run `uv sync` to create a `.venv` and install dependencies.
54
+ 5. (Optional) Install pre-commit hooks: `uv run pre-commit install`
55
+ 6. After making changes, run the test suite: `uv run pytest tests`
56
+
57
+ ## License
58
+
59
+ MIT License - see [LICENSE](LICENSE) for details.
@@ -0,0 +1,20 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?=
7
+ SPHINXBUILD ?= sphinx-build
8
+ SOURCEDIR = source
9
+ BUILDDIR = build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ .PHONY: help Makefile
16
+
17
+ # Catch-all target: route all unknown targets to Sphinx using the new
18
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
+ %: Makefile
20
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@@ -0,0 +1,35 @@
1
+ @ECHO OFF
2
+
3
+ pushd %~dp0
4
+
5
+ REM Command file for Sphinx documentation
6
+
7
+ if "%SPHINXBUILD%" == "" (
8
+ set SPHINXBUILD=sphinx-build
9
+ )
10
+ set SOURCEDIR=source
11
+ set BUILDDIR=build
12
+
13
+ %SPHINXBUILD% >NUL 2>NUL
14
+ if errorlevel 9009 (
15
+ echo.
16
+ echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
17
+ echo.installed, then set the SPHINXBUILD environment variable to point
18
+ echo.to the full path of the 'sphinx-build' executable. Alternatively you
19
+ echo.may add the Sphinx directory to PATH.
20
+ echo.
21
+ echo.If you don't have Sphinx installed, grab it from
22
+ echo.https://www.sphinx-doc.org/
23
+ exit /b 1
24
+ )
25
+
26
+ if "%1" == "" goto help
27
+
28
+ %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29
+ goto end
30
+
31
+ :help
32
+ %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33
+
34
+ :end
35
+ popd
@@ -0,0 +1,64 @@
1
+ {{ fullname | escape | underline}}
2
+
3
+ .. automodule:: {{ fullname }}
4
+
5
+ {% block attributes %}
6
+ {% if attributes %}
7
+ .. rubric:: Module Attributes
8
+
9
+ .. autosummary::
10
+ :toctree:
11
+ {% for item in attributes %}
12
+ {{ item }}
13
+ {%- endfor %}
14
+ {% endif %}
15
+ {% endblock %}
16
+
17
+ {% block functions %}
18
+ {% if functions %}
19
+ .. rubric:: Functions
20
+
21
+ {% for item in functions %}
22
+ .. autofunction:: {{ item }}
23
+ {%- endfor %}
24
+ {% endif %}
25
+ {% endblock %}
26
+
27
+ {% block classes %}
28
+ {% if classes %}
29
+ .. rubric:: Classes
30
+
31
+ {% for item in classes %}
32
+ .. autoclass:: {{ item }}
33
+ :members:
34
+ :undoc-members:
35
+ :show-inheritance:
36
+ :special-members: __init__
37
+ {%- endfor %}
38
+ {% endif %}
39
+ {% endblock %}
40
+
41
+ {% block exceptions %}
42
+ {% if exceptions %}
43
+ .. rubric:: Exceptions
44
+
45
+ {% for item in exceptions %}
46
+ .. autoexception:: {{ item }}
47
+ :members:
48
+ :show-inheritance:
49
+ {%- endfor %}
50
+ {% endif %}
51
+ {% endblock %}
52
+
53
+ {% block modules %}
54
+ {% if modules %}
55
+ .. rubric:: Modules
56
+
57
+ .. autosummary::
58
+ :toctree:
59
+ :recursive:
60
+ {% for item in modules %}
61
+ {{ item }}
62
+ {%- endfor %}
63
+ {% endif %}
64
+ {% endblock %}
@@ -0,0 +1,11 @@
1
+ API Reference
2
+ =============
3
+
4
+ This page contains auto-generated API reference documentation.
5
+
6
+ .. autosummary::
7
+ :toctree: generated
8
+ :recursive:
9
+ :template: autosummary/module.rst
10
+
11
+ ezmsg.kinematics
@@ -0,0 +1,122 @@
1
+ # Configuration file for the Sphinx documentation builder.
2
+
3
+ import os
4
+ import sys
5
+
6
+ # Add the source directory to the path
7
+ sys.path.insert(0, os.path.abspath("../../src"))
8
+
9
+ # -- Project information --------------------------
10
+
11
+ project = "ezmsg.kinematics"
12
+ copyright = "2026, ezmsg Contributors"
13
+ author = "ezmsg Contributors"
14
+
15
+ # The version is managed by hatch-vcs and stored in __version__.py
16
+ try:
17
+ from ezmsg.kinematics.__version__ import version as release
18
+ except ImportError:
19
+ release = "unknown"
20
+
21
+ # For display purposes, extract the base version without git commit info
22
+ version = release.split("+")[0] if release != "unknown" else release
23
+
24
+ # -- General configuration --------------------------
25
+
26
+ extensions = [
27
+ "sphinx.ext.autodoc",
28
+ "sphinx.ext.autosummary",
29
+ "sphinx.ext.napoleon",
30
+ "sphinx.ext.intersphinx",
31
+ "sphinx.ext.viewcode",
32
+ "sphinx.ext.duration",
33
+ "sphinx_autodoc_typehints",
34
+ "sphinx_copybutton",
35
+ "myst_parser", # For markdown files
36
+ ]
37
+
38
+ templates_path = ["_templates"]
39
+ source_suffix = {
40
+ ".rst": "restructuredtext",
41
+ ".md": "markdown",
42
+ }
43
+ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
44
+
45
+ # The toctree master document
46
+ master_doc = "index"
47
+
48
+ # -- Autodoc configuration ------------------------------
49
+
50
+ # Auto-generate API docs
51
+ autosummary_generate = True
52
+ autosummary_imported_members = False
53
+ autodoc_typehints = "description"
54
+ autodoc_member_order = "bysource"
55
+ autodoc_typehints_format = "short"
56
+ python_use_unqualified_type_names = True
57
+ autodoc_default_options = {
58
+ "members": True,
59
+ "member-order": "bysource",
60
+ "special-members": "__init__",
61
+ "undoc-members": True,
62
+ "show-inheritance": True,
63
+ }
64
+
65
+ # Don't show the full module path in the docs
66
+ add_module_names = False
67
+
68
+ # -- Intersphinx configuration --------------------------
69
+
70
+ intersphinx_mapping = {
71
+ "python": ("https://docs.python.org/3/", None),
72
+ "numpy": ("https://numpy.org/doc/stable/", None),
73
+ "ezmsg": ("https://www.ezmsg.org/ezmsg/", None),
74
+ }
75
+ intersphinx_disabled_domains = ["std"]
76
+
77
+ # -- Options for HTML output -----------------------------
78
+
79
+ html_theme = "pydata_sphinx_theme"
80
+ html_static_path = ["_static"]
81
+
82
+ # Set the base URL for the documentation
83
+ html_baseurl = "https://www.ezmsg.org/ezmsg-kinematics/"
84
+
85
+ html_theme_options = {
86
+ "logo": {
87
+ "text": f"ezmsg.kinematics {version}",
88
+ "link": "https://ezmsg.org",
89
+ },
90
+ "header_links_before_dropdown": 4,
91
+ "navbar_start": ["navbar-logo"],
92
+ "navbar_end": ["theme-switcher", "navbar-icon-links"],
93
+ "icon_links": [
94
+ {
95
+ "name": "GitHub",
96
+ "url": "https://github.com/ezmsg-org/ezmsg-kinematics",
97
+ "icon": "fa-brands fa-github",
98
+ },
99
+ {
100
+ "name": "ezmsg.org",
101
+ "url": "https://www.ezmsg.org",
102
+ "icon": "fa-solid fa-house",
103
+ },
104
+ ],
105
+ }
106
+
107
+ # Timestamp is inserted at every page bottom in this strftime format.
108
+ html_last_updated_fmt = "%Y-%m-%d"
109
+
110
+ # -- Options for linkcode -----------------------------
111
+
112
+ branch = "main"
113
+ code_url = f"https://github.com/ezmsg-org/ezmsg-kinematics/blob/{branch}/"
114
+
115
+
116
+ def linkcode_resolve(domain, info):
117
+ if domain != "py":
118
+ return None
119
+ if not info["module"]:
120
+ return None
121
+ filename = info["module"].replace(".", "/")
122
+ return f"{code_url}src/{filename}.py"
@@ -0,0 +1,16 @@
1
+ ```{include} ../../README.md
2
+ ```
3
+
4
+ ## Documentation
5
+
6
+ ```{toctree}
7
+ :maxdepth: 2
8
+ :caption: Contents:
9
+
10
+ api/index
11
+ ```
12
+
13
+ ## Indices and tables
14
+
15
+ - {ref}`genindex`
16
+ - {ref}`modindex`