tinca-tag 0.1.0__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 (38) hide show
  1. tinca_tag-0.1.0/.github/workflows/ci.yml +27 -0
  2. tinca_tag-0.1.0/.github/workflows/integration.yml +20 -0
  3. tinca_tag-0.1.0/.github/workflows/publish.yml +68 -0
  4. tinca_tag-0.1.0/.gitignore +24 -0
  5. tinca_tag-0.1.0/CHANGELOG.md +17 -0
  6. tinca_tag-0.1.0/CONTRIBUTING.md +47 -0
  7. tinca_tag-0.1.0/LICENSE +201 -0
  8. tinca_tag-0.1.0/PKG-INFO +84 -0
  9. tinca_tag-0.1.0/README.md +46 -0
  10. tinca_tag-0.1.0/ROADMAP.md +23 -0
  11. tinca_tag-0.1.0/SECURITY.md +47 -0
  12. tinca_tag-0.1.0/pyproject.toml +66 -0
  13. tinca_tag-0.1.0/src/tinca_tag/__init__.py +15 -0
  14. tinca_tag-0.1.0/src/tinca_tag/cli.py +211 -0
  15. tinca_tag-0.1.0/src/tinca_tag/detect/__init__.py +255 -0
  16. tinca_tag-0.1.0/src/tinca_tag/detect/container.py +31 -0
  17. tinca_tag-0.1.0/src/tinca_tag/detect/lan.py +35 -0
  18. tinca_tag-0.1.0/src/tinca_tag/detect/sockets.py +186 -0
  19. tinca_tag-0.1.0/src/tinca_tag/detect/ws.py +137 -0
  20. tinca_tag-0.1.0/src/tinca_tag/diagnose.py +287 -0
  21. tinca_tag-0.1.0/src/tinca_tag/endpoint.py +27 -0
  22. tinca_tag-0.1.0/src/tinca_tag/render/__init__.py +19 -0
  23. tinca_tag-0.1.0/src/tinca_tag/render/qr.py +55 -0
  24. tinca_tag-0.1.0/src/tinca_tag/render/url.py +64 -0
  25. tinca_tag-0.1.0/src/tinca_tag/rosenv.py +37 -0
  26. tinca_tag-0.1.0/tests/integration/Dockerfile +17 -0
  27. tinca_tag-0.1.0/tests/integration/conftest.py +102 -0
  28. tinca_tag-0.1.0/tests/integration/test_cp_c.py +103 -0
  29. tinca_tag-0.1.0/tests/integration/test_cp_d.py +117 -0
  30. tinca_tag-0.1.0/tests/test_cli.py +213 -0
  31. tinca_tag-0.1.0/tests/test_detect_orchestration.py +326 -0
  32. tinca_tag-0.1.0/tests/test_detect_units.py +129 -0
  33. tinca_tag-0.1.0/tests/test_diagnose.py +270 -0
  34. tinca_tag-0.1.0/tests/test_probe_live.py +85 -0
  35. tinca_tag-0.1.0/tests/test_qr_roundtrip.py +45 -0
  36. tinca_tag-0.1.0/tests/test_smoke.py +19 -0
  37. tinca_tag-0.1.0/tests/test_sockets_macos.py +204 -0
  38. tinca_tag-0.1.0/tests/test_url.py +73 -0
@@ -0,0 +1,27 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ schedule:
8
+ - cron: "0 4 * * 1" # Mondays 04:00 UTC, catches dependency releases that drop wheels
9
+
10
+ jobs:
11
+ test:
12
+ runs-on: ubuntu-latest
13
+ strategy:
14
+ matrix:
15
+ python-version: ["3.10", "3.12"]
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - uses: actions/setup-python@v5
19
+ with:
20
+ python-version: ${{ matrix.python-version }}
21
+ - run: python -m pip install --upgrade pip
22
+ - run: pip install -e ".[dev]"
23
+ - run: ruff check .
24
+ - run: ruff format --check .
25
+ - name: No private cockpit references in the package
26
+ run: "! grep -rniI 'cockpit' src tests"
27
+ - run: pytest
@@ -0,0 +1,20 @@
1
+ name: Integration (CP-C)
2
+
3
+ # CP-C launches real ROS 2 bridge containers, so it is too heavy for every PR. Run it on
4
+ # demand and on a weekly schedule. GitHub's ubuntu runners ship Docker.
5
+ on:
6
+ workflow_dispatch:
7
+ schedule:
8
+ - cron: "0 4 * * 1" # Mondays 04:00 UTC
9
+
10
+ jobs:
11
+ integration:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: actions/setup-python@v5
16
+ with:
17
+ python-version: "3.12"
18
+ - run: python -m pip install --upgrade pip
19
+ - run: pip install -e ".[dev]"
20
+ - run: pytest -m integration -v
@@ -0,0 +1,68 @@
1
+ # Publishes on a version tag (vX.Y.Z, including pre-releases like v0.1.0.dev0).
2
+ # Routing: pre-release tags (containing "dev" or "rc") publish to TestPyPI only;
3
+ # final tags (vX.Y.Z) publish to TestPyPI and then PyPI.
4
+ # Uses PyPI Trusted Publishing (OIDC): no API tokens. One-time setup:
5
+ # - Configure trusted publishers for this repo on TestPyPI and PyPI.
6
+ # - Create GitHub environments named "testpypi" and "pypi".
7
+ name: Publish
8
+
9
+ on:
10
+ push:
11
+ tags: ["v*"]
12
+
13
+ jobs:
14
+ test:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - uses: actions/setup-python@v5
19
+ with:
20
+ python-version: "3.12"
21
+ - run: pip install -e ".[dev]"
22
+ - run: ruff check .
23
+ - run: pytest
24
+
25
+ build:
26
+ needs: test
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - uses: actions/checkout@v4
30
+ - uses: actions/setup-python@v5
31
+ with:
32
+ python-version: "3.12"
33
+ - run: python -m pip install --upgrade build
34
+ - run: python -m build
35
+ - uses: actions/upload-artifact@v4
36
+ with:
37
+ name: dist
38
+ path: dist/
39
+
40
+ testpypi:
41
+ needs: build
42
+ runs-on: ubuntu-latest
43
+ environment: testpypi
44
+ permissions:
45
+ id-token: write
46
+ steps:
47
+ - uses: actions/download-artifact@v4
48
+ with:
49
+ name: dist
50
+ path: dist/
51
+ - uses: pypa/gh-action-pypi-publish@release/v1
52
+ with:
53
+ repository-url: https://test.pypi.org/legacy/
54
+ skip-existing: true
55
+
56
+ pypi:
57
+ needs: testpypi
58
+ if: ${{ !contains(github.ref_name, 'dev') && !contains(github.ref_name, 'rc') }}
59
+ runs-on: ubuntu-latest
60
+ environment: pypi
61
+ permissions:
62
+ id-token: write
63
+ steps:
64
+ - uses: actions/download-artifact@v4
65
+ with:
66
+ name: dist
67
+ path: dist/
68
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,24 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ .eggs/
6
+ build/
7
+ dist/
8
+
9
+ # Virtual envs
10
+ .venv/
11
+ venv/
12
+
13
+ # Tooling caches
14
+ .pytest_cache/
15
+ .ruff_cache/
16
+ .coverage
17
+ htmlcov/
18
+
19
+ # Agent state (never ship)
20
+ .claude/
21
+ *.agent.md
22
+
23
+ # OS / editor
24
+ .DS_Store
@@ -0,0 +1,17 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format is based on Keep a Changelog, and this project aims to follow Semantic Versioning once it reaches 0.1.0.
4
+
5
+ ## [Unreleased]
6
+
7
+ ## [0.1.0] - 2026-12-02
8
+
9
+ First release.
10
+
11
+ ### Added
12
+
13
+ - `tinca-tag qr`: detect a running ROS 2 bridge (rosbridge or foxglove_bridge) and render the Tinca connect QR, fully offline. Outputs an ASCII QR by default, or a PNG or SVG file.
14
+ - Bridge detection reads the actual running config instead of guessing: a WebSocket handshake probe distinguishes foxglove_bridge from rosbridge and detects TLS, listening-port enumeration finds bridges on nonstandard ports, and the host's primary LAN IP is used so the QR is reachable from a phone.
15
+ - Flags: `--host`, `--port`, `--protocol`, `--secure` / `--no-secure`, `--mdns`, `--name`, `--png`, `--svg`, `--out`.
16
+ - Listening-port enumeration on macOS (via the built-in `nettop`, no root needed), so a bridge on a nonstandard port is found on a Mac without `--port`. When this machine's ports cannot be listed, `qr` and `doctor` say so instead of reporting only what 9090 and 8765 show.
17
+ - When more than one bridge answers, `qr` and `doctor` list them as bullets, each with the command that picks it, instead of choosing one. `--protocol` narrows the list.
@@ -0,0 +1,47 @@
1
+ # Contributing to tinca-tag
2
+
3
+ Thanks for your interest. This is a small, intentionally focused tool, so please read this guide before opening a PR.
4
+
5
+ ## What this tool is, and isn't
6
+
7
+ `tinca-tag` turns a robot's live bridge connection into a scannable QR for the Tinca app. It is the QR / handoff layer, not the connection layer (that is [ros-mobile-bridge](https://github.com/AuriLabsTech/ros-mobile-bridge)), and not a robotics framework. It is always optional: it must never become something the Tinca app requires.
8
+
9
+ Smaller is better. Prefer the simplest tool that solves the problem.
10
+
11
+ ## Before you open a PR
12
+
13
+ 1. Discuss first for anything non-trivial. Open an issue describing the problem and the proposed change.
14
+ 2. Keep the deep-link format stable. The `tinca://connect?...` link is a contract shared with the Tinca app and other tools. Do not change its shape in a PR; that requires coordination across all consumers.
15
+ 3. Guide, do not execute. `tinca-tag` never runs system changes (installs, firewall edits) on the user's behalf. It prints commands for the user to run. PRs that add system-modifying behavior will be declined.
16
+
17
+ ## Development setup
18
+
19
+ ```
20
+ git clone https://github.com/AuriLabsTech/tinca-tag.git
21
+ cd tinca-tag
22
+ python -m venv .venv && source .venv/bin/activate
23
+ pip install -e ".[dev]"
24
+ ```
25
+
26
+ Common commands:
27
+
28
+ - `ruff check .` and `ruff format .` for lint and formatting
29
+ - `pytest` for the test suite
30
+
31
+ ## Code style
32
+
33
+ - Format and lint with ruff. Type hints on public functions.
34
+ - The core package depends only on the standard library plus `segno`. Heavier dependencies (for diagnostics) live behind the `doctor` optional extra. ROS-specific code lives in the ROS 2 package variant, not the core.
35
+
36
+ ## Tests
37
+
38
+ - A change to detection or rendering without a test is incomplete work.
39
+ - A bug fix without a regression test is incomplete work.
40
+
41
+ ## Adding a dependency
42
+
43
+ Adding a runtime dependency to the core requires a short rationale in the PR: what it does, what it replaces, and its SPDX license. The license must be permissive (MIT, Apache-2.0, BSD, ISC, or similar). Keep the core lean; prefer the optional extras for anything heavy.
44
+
45
+ ## License
46
+
47
+ By contributing, you agree that your contributions will be licensed under the Apache License 2.0.
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for describing the origin of the Work and
141
+ reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Benjamín Arratia
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,84 @@
1
+ Metadata-Version: 2.5
2
+ Name: tinca-tag
3
+ Version: 0.1.0
4
+ Summary: Scan-to-connect QR codes for ROS 2 robots, for the Tinca app.
5
+ Project-URL: Homepage, https://github.com/AuriLabsTech/tinca-tag
6
+ Project-URL: Repository, https://github.com/AuriLabsTech/tinca-tag
7
+ Project-URL: Issues, https://github.com/AuriLabsTech/tinca-tag/issues
8
+ Author-email: Auri Labs <hello@aurilabs.tech>
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ Keywords: foxglove,qr,robotics,ros2,rosbridge,tinca
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Operating System :: MacOS
16
+ Classifier: Operating System :: POSIX :: Linux
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Topic :: Scientific/Engineering
19
+ Requires-Python: >=3.9
20
+ Requires-Dist: segno>=1.6
21
+ Provides-Extra: dev
22
+ Requires-Dist: pillow>=10; extra == 'dev'
23
+ Requires-Dist: psutil>=5.9; extra == 'dev'
24
+ Requires-Dist: pytest-cov; extra == 'dev'
25
+ Requires-Dist: pytest>=8; extra == 'dev'
26
+ Requires-Dist: ruff>=0.6; extra == 'dev'
27
+ Requires-Dist: zxing-cpp<3.2,>=2; (python_version < '3.12') and extra == 'dev'
28
+ Requires-Dist: zxing-cpp>=2; (python_version >= '3.12') and extra == 'dev'
29
+ Provides-Extra: doctor
30
+ Requires-Dist: psutil>=5.9; extra == 'doctor'
31
+ Provides-Extra: test
32
+ Requires-Dist: pillow>=10; extra == 'test'
33
+ Requires-Dist: pytest-cov; extra == 'test'
34
+ Requires-Dist: pytest>=8; extra == 'test'
35
+ Requires-Dist: zxing-cpp<3.2,>=2; (python_version < '3.12') and extra == 'test'
36
+ Requires-Dist: zxing-cpp>=2; (python_version >= '3.12') and extra == 'test'
37
+ Description-Content-Type: text/markdown
38
+
39
+ # tinca-tag
40
+
41
+ Scan-to-connect QR codes for ROS 2 robots.
42
+
43
+ `tinca-tag` runs on your robot, detects the ROS 2 bridge you already have running (rosbridge or foxglove_bridge), and prints a QR code. Scan it with your phone's camera and Tinca opens with the host, port, and protocol already filled in, so you just tap Connect. No reading off an IP, switching apps, and typing `host:port` by hand. Because the QR is built from the robot's live network address, it keeps working across reboots and DHCP changes.
44
+
45
+ > Status: pre-alpha. `qr` and `doctor` both work, but options and output may still change before 0.1.0. See [ROADMAP.md](ROADMAP.md).
46
+
47
+ ## Why
48
+
49
+ Connecting a phone to a robot usually means finding the robot's IP, switching to the app, and typing `host:port` correctly on a touch keyboard. A mistyped address is a classic first-connection failure. `tinca-tag` removes that step: scan the QR and the connection is pre-filled for you.
50
+
51
+ It is strictly optional. Tinca connects to any standard rosbridge or foxglove_bridge with nothing extra installed on the robot. `tinca-tag` is a convenience on top of that, never a requirement.
52
+
53
+ ## Install
54
+
55
+ ```
56
+ pip install tinca-tag
57
+ ```
58
+
59
+ ## Usage
60
+
61
+ ```
62
+ tinca-tag qr # detect the bridge and print a QR to connect
63
+ tinca-tag doctor # check the setup and report what, if anything, is wrong
64
+ ```
65
+
66
+ Both commands detect everything by default. To override what they find, use `--host`, `--port`, `--protocol`, `--secure` / `--no-secure`, or `--mdns` (emit `<hostname>.local` as the host). `qr` can also write a file with `--png` or `--svg` (and `--out <path>`), and label the robot with `--name`.
67
+
68
+ `doctor` only reads and advises. When something is wrong, it prints the commands to fix it; it never runs them for you. Run `tinca-tag <command> --help` for the full list.
69
+
70
+ ## What the QR contains
71
+
72
+ The QR encodes a Tinca deep link:
73
+
74
+ ```
75
+ tinca://connect?host=<host>&port=<port>&secure=<0|1>&protocol=<rosbridge|foxglove-ws>
76
+ ```
77
+
78
+ You scan the QR with your phone's camera or any QR reader. Because it is a deep link, your phone offers to open it in Tinca, which fills in the connection for you; you then tap Connect. (A scanner built into the Tinca app is planned for later, and the same QR will work there too.) Nothing in the link is secret; on a trusted LAN it simply tells the app where the bridge is. Treat the address as you would any other service address on your network.
79
+
80
+ ## License
81
+
82
+ Apache-2.0. Copyright 2026 Auri Labs.
83
+
84
+ The license covers the code. It does not grant any right to use the Tinca name or logo (see section 6 of the license).
@@ -0,0 +1,46 @@
1
+ # tinca-tag
2
+
3
+ Scan-to-connect QR codes for ROS 2 robots.
4
+
5
+ `tinca-tag` runs on your robot, detects the ROS 2 bridge you already have running (rosbridge or foxglove_bridge), and prints a QR code. Scan it with your phone's camera and Tinca opens with the host, port, and protocol already filled in, so you just tap Connect. No reading off an IP, switching apps, and typing `host:port` by hand. Because the QR is built from the robot's live network address, it keeps working across reboots and DHCP changes.
6
+
7
+ > Status: pre-alpha. `qr` and `doctor` both work, but options and output may still change before 0.1.0. See [ROADMAP.md](ROADMAP.md).
8
+
9
+ ## Why
10
+
11
+ Connecting a phone to a robot usually means finding the robot's IP, switching to the app, and typing `host:port` correctly on a touch keyboard. A mistyped address is a classic first-connection failure. `tinca-tag` removes that step: scan the QR and the connection is pre-filled for you.
12
+
13
+ It is strictly optional. Tinca connects to any standard rosbridge or foxglove_bridge with nothing extra installed on the robot. `tinca-tag` is a convenience on top of that, never a requirement.
14
+
15
+ ## Install
16
+
17
+ ```
18
+ pip install tinca-tag
19
+ ```
20
+
21
+ ## Usage
22
+
23
+ ```
24
+ tinca-tag qr # detect the bridge and print a QR to connect
25
+ tinca-tag doctor # check the setup and report what, if anything, is wrong
26
+ ```
27
+
28
+ Both commands detect everything by default. To override what they find, use `--host`, `--port`, `--protocol`, `--secure` / `--no-secure`, or `--mdns` (emit `<hostname>.local` as the host). `qr` can also write a file with `--png` or `--svg` (and `--out <path>`), and label the robot with `--name`.
29
+
30
+ `doctor` only reads and advises. When something is wrong, it prints the commands to fix it; it never runs them for you. Run `tinca-tag <command> --help` for the full list.
31
+
32
+ ## What the QR contains
33
+
34
+ The QR encodes a Tinca deep link:
35
+
36
+ ```
37
+ tinca://connect?host=<host>&port=<port>&secure=<0|1>&protocol=<rosbridge|foxglove-ws>
38
+ ```
39
+
40
+ You scan the QR with your phone's camera or any QR reader. Because it is a deep link, your phone offers to open it in Tinca, which fills in the connection for you; you then tap Connect. (A scanner built into the Tinca app is planned for later, and the same QR will work there too.) Nothing in the link is secret; on a trusted LAN it simply tells the app where the bridge is. Treat the address as you would any other service address on your network.
41
+
42
+ ## License
43
+
44
+ Apache-2.0. Copyright 2026 Auri Labs.
45
+
46
+ The license covers the code. It does not grant any right to use the Tinca name or logo (see section 6 of the license).
@@ -0,0 +1,23 @@
1
+ # Roadmap
2
+
3
+ `tinca-tag` is a small, focused tool. This roadmap reflects the planned milestones.
4
+
5
+ ## 0.1.x (first releases)
6
+
7
+ - `tinca-tag qr`: auto-detect the running bridge (rosbridge / foxglove_bridge) and the primary LAN address, then print a QR that encodes the Tinca connect deep link. ASCII output for headless and SSH use, with PNG and SVG output on request.
8
+ - `tinca-tag doctor`: diagnose a missing or unreachable bridge and print guidance. It only reads and advises; it never changes your system.
9
+ - Detection reads the actual running configuration (ROS 2 parameters when available, then process and socket inspection, then a default-port probe), rather than assuming defaults.
10
+
11
+ ## Later
12
+
13
+ - A served, printable HTML page for per-robot QR stickers, useful for multi-robot setups with stable addresses.
14
+ - A ROS 2 package variant (`ros2 run tinca_tag qr`) for launch-file includes.
15
+
16
+ ## Related (app-side, not part of this tool)
17
+
18
+ Today you scan the QR with your phone's normal camera or QR reader, which opens Tinca through the deep link with the connection pre-filled. A QR scanner built into the Tinca app is planned separately. It is an app feature, not part of `tinca-tag`, and the QR this tool prints is the same one it will scan, so nothing here needs to change when it ships.
19
+
20
+ ## Non-goals
21
+
22
+ - `tinca-tag` is not a connection library and not a transport. The wire protocol lives in [ros-mobile-bridge](https://github.com/AuriLabsTech/ros-mobile-bridge).
23
+ - It is never a requirement for using Tinca. It is a convenience only.
@@ -0,0 +1,47 @@
1
+ # Security Policy
2
+
3
+ ## Reporting a Vulnerability
4
+
5
+ If you believe you have found a security vulnerability in `tinca-tag`, please report it privately. Do not open a public GitHub issue.
6
+
7
+ Email: `security@aurilabs.tech`
8
+
9
+ Include:
10
+
11
+ - A description of the issue and its impact.
12
+ - Reproduction steps or a proof of concept, if available.
13
+ - The affected version(s).
14
+ - Your name and contact details (optional, for credit).
15
+
16
+ ## Process and Timeline
17
+
18
+ - Acknowledgement: within 3 business days of receipt.
19
+ - Triage and assessment: within 7 business days.
20
+ - Fix or mitigation for confirmed high-severity issues: within 30 days of confirmation.
21
+ - Coordinated disclosure: public disclosure happens after a fix is released, or after 90 days if no fix is feasible. Earlier disclosure is possible by mutual agreement.
22
+
23
+ ## Design notes relevant to security
24
+
25
+ `tinca-tag` runs on the robot and is intentionally minimal:
26
+
27
+ - The core `qr` path makes no outbound network calls. It reads the local bridge configuration and renders a QR.
28
+ - It never modifies the system. When setup is missing, it prints suggested commands for you to run; it does not run installs, firewall changes, or any other system modification.
29
+ - The QR encodes the bridge's LAN address. On a trusted network this is information any device on that network can already discover. Do not post a robot's QR publicly if its bridge is reachable from an untrusted network.
30
+
31
+ ## In Scope
32
+
33
+ - The published package and its runtime behavior.
34
+ - Any code path that reads local configuration or renders output.
35
+
36
+ ## Out of Scope
37
+
38
+ - Third-party bridge software (`foxglove_bridge`, `rosbridge_server`). Report those upstream.
39
+ - The security of the network the robot is on.
40
+ - Misconfiguration of the host system.
41
+
42
+ ## Supported Versions
43
+
44
+ | Version | Supported |
45
+ |---------|-----------|
46
+ | 0.1.x | Yes |
47
+ | < 0.1 | No (pre-release) |