Title: FEAT: `--version` CLI flag · Issue #72 · dbpedia/databus-python-client · GitHub
Open Graph Title: FEAT: `--version` CLI flag · Issue #72 · dbpedia/databus-python-client
X Title: FEAT: `--version` CLI flag · Issue #72 · dbpedia/databus-python-client
Description: Additional context Add any other details or mockups here. Feature Request **Describe the feature you'd like** Add a `--version` flag to the `databusclient` CLI so users can quickly check which version is installed without reading `pip sh...
Open Graph Description: Additional context Add any other details or mockups here. Feature Request **Describe the feature you'd like** Add a `--version` flag to the `databusclient` CLI so users can quickly check which vers...
X Description: Additional context Add any other details or mockups here. Feature Request **Describe the feature you'd like** Add a `--version` flag to the `databusclient` CLI so users can quickly check which ...
Opengraph URL: https://github.com/dbpedia/databus-python-client/issues/72
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"FEAT: `--version` CLI flag ","articleBody":"\n**Additional context** \nAdd any other details or mockups here. Feature Request \n \n **Describe the feature you'd like** \n Add a `--version` flag to the `databusclient` CLI so users can quickly check which \n version is installed without reading `pip show databusclient`. \n \n ```bash \n $ databusclient --version \n databusclient, version 0.15 \n \n This is standard behaviour for Python CLI tools built with Click — Click provides \n built-in support via @click.version_option . \n \n Why is this feature important? \n \n • It's the first thing users check when filing a bug report or asking for support. \n • Currently __version__ = \"0.15\" exists in __init__.py but is completely \n unreachable from the command line. There is no way for a user to confirm which \n version they are running without using pip show databusclient . \n • It is a standard UX expectation for any CLI tool ( git --version , \n docker --version , rclone --version , etc.). \n \n Proposed implementation \n Click provides this out of the box with a single decorator on the app group in \n cli.py : \n \n # cli.py \n import databusclient \n \n @click.group() \n @click.version_option(version=databusclient.__version__, prog_name=\"databusclient\") \n def app(): \n \"\"\"Databus Client CLI.\"\"\" \n pass \n \n This produces: \n \n $ databusclient --version \n databusclient, version 0.15 \n \n No new dependencies are required — click.version_option is already part of Click \n which is an existing dependency. \n \n Describe alternatives you've considered \n \n • Reading the version via pip show databusclient — works but is not discoverable \n and requires pip to be available in the same environment. \n • A separate databusclient version subcommand — unnecessarily verbose compared \n to the conventional --version flag. \n \n Additional context \n Related: the version string is currently hardcoded in both pyproject.toml and \n databusclient/__init__.py . Ideally __version__ should be derived from the \n installed package metadata ( importlib.metadata.version(\"databusclient\") ) so it \n stays in sync with the installed version automatically and the duplication is \n eliminated. \n ","author":{"url":"https://github.com/Prakhar54-byte","@type":"Person","name":"Prakhar54-byte"},"datePublished":"2026-07-05T20:10:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/72/databus-python-client/issues/72"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:da000b1f-7839-5843-88f1-c93363c91f67 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C49E:E0281:975FCE:CE3294:6A4C4792 |
| html-safe-nonce | 725f45d7a5822267e4ff5f4dac911e6a77d3097508eb41ff3e638198384830e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDlFOkUwMjgxOjk3NUZDRTpDRTMyOTQ6NkE0QzQ3OTIiLCJ2aXNpdG9yX2lkIjoiMTA5OTUwNTE2MTMzODYzNjE3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 80ce150759d8667178121274497066583c07f1186512d88549111c2107c98d2d |
| hovercard-subject-tag | issue:4814273964 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/dbpedia/databus-python-client/72/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7e6ae2aa8b6bdfc7ebc37ee065eed6eb5244b6c5373770e3ac43f1ff30de8895/dbpedia/databus-python-client/issues/72 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7e6ae2aa8b6bdfc7ebc37ee065eed6eb5244b6c5373770e3ac43f1ff30de8895/dbpedia/databus-python-client/issues/72 |
| og:image:alt | Additional context Add any other details or mockups here. Feature Request **Describe the feature you'd like** Add a `--version` flag to the `databusclient` CLI so users can quickly check which vers... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Prakhar54-byte |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/dbpedia/databus-python-client git https://github.com/dbpedia/databus-python-client.git |
| octolytics-dimension-user_id | 2864602 |
| octolytics-dimension-user_login | dbpedia |
| octolytics-dimension-repository_id | 605605041 |
| octolytics-dimension-repository_nwo | dbpedia/databus-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 605605041 |
| octolytics-dimension-repository_network_root_nwo | dbpedia/databus-python-client |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3996b3b83990e134be6c099ab9a7f48f140ae80f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width