Add tabcmd/__main__.py so python -m tabcmd works reliably for installed users
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 65/100
Research direction
Start by comparing the top-level tabcmd.py entry point with the installed tabcmd package layout. Add the minimal tabcmd/main.py entry point, then verify that python -m tabcmd works from an installed package while the existing console-script behavior remains unchanged.
Written by the indexing model from the issue text.
Description
Add tabcmd/main.py so python -m tabcmd works reliably for installed users
Currently, python -m tabcmd works in the repo because of the top-level tabcmd.py, but this relies on file/module resolution rather than the installed package layout.
When tabcmd is installed from PyPI, the repo-root tabcmd.py is not present, so python -m tabcmd will fail unless the package provides tabcmd/main.py.
Adding an explicit main.py makes the behavior unambiguous and aligns with standard Python packaging practices for CLI tools.
Proposed change:
Add a minimal tabcmd/main.py
No behavior change for users invoking tabcmd via the console script
• Improves compatibility with tooling (pipx, PyInstaller, zipapps, etc.)
Optional follow-up (not required for this issue):
• Consider keeping tabcmd.py at repo root as a dev-only shim or removing it entirely to avoid name collisions.
- Dominant language
- Python
- Stars
- 52
- Forks
- 17
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tableau/tabcmd
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100