Skip to content

Restructuring#16

Open
naushir wants to merge 5 commits into
mainfrom
restructure
Open

Restructuring#16
naushir wants to merge 5 commits into
mainfrom
restructure

Conversation

@naushir

@naushir naushir commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

naushir added 5 commits July 2, 2026 08:47
Rename the lightbox registry's generic names to device-specific ones
(DRIVERS -> LIGHTBOX_DRIVERS, register_driver -> register_lightbox_driver) and
move the lightbox CLI from the package __main__ into lightbox_cli.py, so a
second device kind can sit alongside it with parallel naming.
Relocate the lightbox device API out of ctt.devices into a standalone,
top-level devices/ package (import name `devices`), so device control is a
sibling of the core CTT library rather than nested inside it. Imports become
`from devices import ...`, the ctt-lightbox script points at
devices.lightbox_cli, and setuptools discovery/package-data are updated to match.
…apps/

Move the core ctt package (algorithms, core, data, detection, output, platforms,
utils) from apps/ctt/ctt up to a top-level ctt/, and move the CLI shell into a
small ctt_cli package (ctt.py -> apps/ctt_cli/cli.py) that imports the library
absolutely. The `ctt` console script (ctt_cli.cli:main) is unchanged, so `ctt`
on the command line still works.
Point the docs and a couple of stale code comments at the new structure: the
device API lives in the top-level devices/ package (not ctt.devices), the CLI
is ctt_cli, and the config example and udev rule paths drop the apps/ctt/ctt
prefix. No functional change.
Drop the redundant apps/ctt-server wrapper directory so the ctt_server package
lives directly at apps/ctt_server, matching apps/ctt_cli. The apps/ discovery
root already covers it, so packages.find no longer needs the apps/ctt-server
entry; the import name and the ctt-server console script are unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant