Title: Suggestion: Use getpass() instead of input() for password and TOTP entry in example test client [low priority] · Issue #79 · gboudreau/ws-api-python · GitHub
Open Graph Title: Suggestion: Use getpass() instead of input() for password and TOTP entry in example test client [low priority] · Issue #79 · gboudreau/ws-api-python
X Title: Suggestion: Use getpass() instead of input() for password and TOTP entry in example test client [low priority] · Issue #79 · gboudreau/ws-api-python
Description: A relatively minor point, but it would be nice to change the example client code in "test_full_example.py" to use getpass.getpass() instead of input() when prompting user for the password and TOTP value. This would be on lines 45 and 53 ...
Open Graph Description: A relatively minor point, but it would be nice to change the example client code in "test_full_example.py" to use getpass.getpass() instead of input() when prompting user for the password and TOTP ...
X Description: A relatively minor point, but it would be nice to change the example client code in "test_full_example.py" to use getpass.getpass() instead of input() when prompting user for the password...
Opengraph URL: https://github.com/gboudreau/ws-api-python/issues/79
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Suggestion: Use getpass() instead of input() for password and TOTP entry in example test client [low priority]","articleBody":"A relatively minor point, but it would be nice to change the example client code in \"test_full_example.py\" to use getpass.getpass() instead of input() when prompting user for the password and TOTP value. This would be on lines 45 and 53 of \"test_full_example.py\" in v0.41.0. Would require importing getpass module (https://docs.python.org/3/library/getpass.html).\n\nThe advantage is that the password and TOTP code characters typed in by the user are not displayed (or are replaced by echo character if supplied as a parameter to getpass() invocation - but note that echo_char parameter is only available beginning with python version 3.14 or later).\n\nCompletely understand if you think this is nitpicking and not worth the time, since the code is just an example...\n\n```\n\nfrom datetime import datetime\n... snip ...\n\nimport getpass\n\nclass WSApiTest:\n def main(self):\n\n \u003c... snip ...>\n\n if not password:\n password = getpass.getpass(\"Password: \")\n WealthsimpleAPI.login(username, password, otp_answer, persist_session_fct=persist_session_fct,\n approval_callback=lambda: print(\"Approve the login in the Wealthsimple mobile app.\"))\n \u003c... snip ...>\n\n except OTPRequiredException:\n otp_answer = getpass.getpass(\"TOTP code: \")\n\n \u003c... snip ...> \n\n accounts = ws.get_accounts()\n```\n\n","author":{"url":"https://github.com/aGrimRepoMan","@type":"Person","name":"aGrimRepoMan"},"datePublished":"2026-11-17T19:19:27Z","url":"https://github.com/gboudreau/ws-api-python/issues/79"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:528f6c21-d7ce-bbbf-644c-37067b18f624 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E6C2:2F4C21:5D6B3B:801FC6:6B05E56A |
| html-safe-nonce | dd3f993a3a39c17bf5d31b2d2483c460f5600c397ed1c914e40cba9fd0b3ceef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkMyOjJGNEMyMTo1RDZCM0I6ODAxRkM2OjZCMDVFNTZBIiwidmlzaXRvcl9pZCI6IjE2OTkzOTE0MjEyMDA4NTIzMzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4d73a6f94996956b15db90f0d79b01a3ecb7f541406a9400fc0ea1aa943b52d1 |
| hovercard-subject-tag | issue:6452274328 |
| 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/gboudreau/ws-api-python/79/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4ef93a5b4fd00e2f3cdb04345b369668c77e8aaebbc21d65c9f267cb3fb206c8/gboudreau/ws-api-python/issues/79 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4ef93a5b4fd00e2f3cdb04345b369668c77e8aaebbc21d65c9f267cb3fb206c8/gboudreau/ws-api-python/issues/79 |
| og:image:alt | A relatively minor point, but it would be nice to change the example client code in "test_full_example.py" to use getpass.getpass() instead of input() when prompting user for the password and TOTP ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aGrimRepoMan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9e6b0e6e5a9a8e0ddb968297ede4e2eac72d30ea174a0970eb8f22d6958e91e3 |
| turbo-cache-control | no-preview |
| go-import | github.com/gboudreau/ws-api-python git https://github.com/gboudreau/ws-api-python.git |
| octolytics-dimension-user_id | 370329 |
| octolytics-dimension-user_login | gboudreau |
| octolytics-dimension-repository_id | 908686613 |
| octolytics-dimension-repository_nwo | gboudreau/ws-api-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 908686613 |
| octolytics-dimension-repository_network_root_nwo | gboudreau/ws-api-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 | 023691d14ad20c90d3ee61b0a0977b17dc6b6361 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width