Title: hooks: export-functions.py excludes private functions from docs/functions.txt · Issue #1807 · usethis-python/usethis-python · GitHub
Open Graph Title: hooks: export-functions.py excludes private functions from docs/functions.txt · Issue #1807 · usethis-python/usethis-python
X Title: hooks: export-functions.py excludes private functions from docs/functions.txt · Issue #1807 · usethis-python/usethis-python
Description: The hooks/export-functions.py script explicitly skips functions whose names start with _ (line 129: if node.name.startswith("_"): continue). This means private helpers such as _get_current_python_version() are not included in docs/functi...
Open Graph Description: The hooks/export-functions.py script explicitly skips functions whose names start with _ (line 129: if node.name.startswith("_"): continue). This means private helpers such as _get_current_python_v...
X Description: The hooks/export-functions.py script explicitly skips functions whose names start with _ (line 129: if node.name.startswith("_"): continue). This means private helpers such as _get_curren...
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/1807
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"hooks: export-functions.py excludes private functions from docs/functions.txt","articleBody":"The `hooks/export-functions.py` script explicitly skips functions whose names start with `_` (line 129: `if node.name.startswith(\"_\"): continue`). This means private helpers such as `_get_current_python_version()` are not included in `docs/functions.txt` (and therefore absent from the Function Reference in AGENTS.md).\\n\\nAgents rely on this reference to discover reusable helpers and avoid reinventing existing logic. If useful private helpers are invisible, agents may duplicate their functionality.\\n\\nDecision needed: should the hook also export private module-level functions (with a visual indicator), or should the AGENTS.md guidance explicitly note that private helpers are excluded?","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2026-04-04T02:21:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1807/usethis-python/issues/1807"}
| 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:89630cf3-abe4-4684-679f-05a4e9aacd9a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D7F4:25572C:15FDA6C:1E66846:6A4EA16C |
| html-safe-nonce | c08a1b03cd111a54a76dc2e20fc8d05b726be8e210d1763d78c9dc8ae2bf50be |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0Y0OjI1NTcyQzoxNUZEQTZDOjFFNjY4NDY6NkE0RUExNkMiLCJ2aXNpdG9yX2lkIjoiNzU2MjM2NzMxODkzNzczOTYyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 55a7bdc2885df03c4464d24fbbbe019790e5fdd9061eab11e7f119c67287446d |
| hovercard-subject-tag | issue:4203013919 |
| 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/usethis-python/usethis-python/1807/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c749c6d220456ad33525ffdfec3047b4ee16326ccdfad3f38fd5c97046170d3c/usethis-python/usethis-python/issues/1807 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c749c6d220456ad33525ffdfec3047b4ee16326ccdfad3f38fd5c97046170d3c/usethis-python/usethis-python/issues/1807 |
| og:image:alt | The hooks/export-functions.py script explicitly skips functions whose names start with _ (line 129: if node.name.startswith("_"): continue). This means private helpers such as _get_current_python_v... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nathanjmcdougall |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git |
| octolytics-dimension-user_id | 216362695 |
| octolytics-dimension-user_login | usethis-python |
| octolytics-dimension-repository_id | 842189705 |
| octolytics-dimension-repository_nwo | usethis-python/usethis-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 842189705 |
| octolytics-dimension-repository_network_root_nwo | usethis-python/usethis-python |
| 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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width