René's URL Explorer Experiment


Title: Added LRU caching of converted prompt-toolkit styles and colors. by kmvanbrunt · Pull Request #1657 · python-cmd2/cmd2 · GitHub

Open Graph Title: Added LRU caching of converted prompt-toolkit styles and colors. by kmvanbrunt · Pull Request #1657 · python-cmd2/cmd2

X Title: Added LRU caching of converted prompt-toolkit styles and colors. by kmvanbrunt · Pull Request #1657 · python-cmd2/cmd2

Description: cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python - Added LRU caching of converted prompt-toolkit styles and colors. by kmvanbrunt · Pull Request #1657 · python-cmd2/cmd2

Opengraph URL: https://github.com/python-cmd2/cmd2/pull/1657

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:4068325c-a406-db8d-f625-d6dfb46af2b1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA71C:326119:1102D9:16FECB:6A4D7C03
html-safe-nonce16308370ce1968a09bc11033a329deb76013f001a84c4207e02e41d4f749cf89
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzFDOjMyNjExOToxMTAyRDk6MTZGRUNCOjZBNEQ3QzAzIiwidmlzaXRvcl9pZCI6Ijg3ODkzMDI2NTA2MzE3MTU4NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca15b6134eb41ba871c4d097cf536c450b34a4f4f4514e43413a8820fd0cab53c
hovercard-subject-tagpull_request:3655188959
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python-cmd2/cmd2/1657/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/4085e8c2ec86163d5aca96ba247ef09efd8e9fcaa5460894581b265b8d7a5a9a/python-cmd2/cmd2/pull/1657
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4085e8c2ec86163d5aca96ba247ef09efd8e9fcaa5460894581b265b8d7a5a9a/python-cmd2/cmd2/pull/1657
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekmvanbrunt
hostnamegithub.com
expected-hostnamegithub.com
None7f8e15305e2ab58890ca84b830615e375f5df303cf471cafcba0c08272981be3
turbo-cache-controlno-cache
go-importgithub.com/python-cmd2/cmd2 git https://github.com/python-cmd2/cmd2.git
octolytics-dimension-user_id17161025
octolytics-dimension-user_loginpython-cmd2
octolytics-dimension-repository_id51442999
octolytics-dimension-repository_nwopython-cmd2/cmd2
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id51442999
octolytics-dimension-repository_network_root_nwopython-cmd2/cmd2
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8608b0750fc35e283e5ec5b094bff942d7a0e197
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-cmd2/cmd2/pull/1657#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-cmd2%2Fcmd2%2Fpull%2F1657
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-cmd2%2Fcmd2%2Fpull%2F1657
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python-cmd2%2Fcmd2
Reloadhttps://github.com/python-cmd2/cmd2/pull/1657
Reloadhttps://github.com/python-cmd2/cmd2/pull/1657
Reloadhttps://github.com/python-cmd2/cmd2/pull/1657
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1657
python-cmd2 https://github.com/python-cmd2
cmd2https://github.com/python-cmd2/cmd2
Notifications https://github.com/login?return_to=%2Fpython-cmd2%2Fcmd2
Fork 132 https://github.com/login?return_to=%2Fpython-cmd2%2Fcmd2
Star 689 https://github.com/login?return_to=%2Fpython-cmd2%2Fcmd2
Code https://github.com/python-cmd2/cmd2
Issues 0 https://github.com/python-cmd2/cmd2/issues
Pull requests 0 https://github.com/python-cmd2/cmd2/pulls
Discussions https://github.com/python-cmd2/cmd2/discussions
Actions https://github.com/python-cmd2/cmd2/actions
Projects https://github.com/python-cmd2/cmd2/projects
Security and quality 0 https://github.com/python-cmd2/cmd2/security
Insights https://github.com/python-cmd2/cmd2/pulse
Code https://github.com/python-cmd2/cmd2
Issues https://github.com/python-cmd2/cmd2/issues
Pull requests https://github.com/python-cmd2/cmd2/pulls
Discussions https://github.com/python-cmd2/cmd2/discussions
Actions https://github.com/python-cmd2/cmd2/actions
Projects https://github.com/python-cmd2/cmd2/projects
Security and quality https://github.com/python-cmd2/cmd2/security
Insights https://github.com/python-cmd2/cmd2/pulse
kmvanbrunthttps://github.com/kmvanbrunt
mainhttps://github.com/python-cmd2/cmd2/tree/main
pt_style_cachehttps://github.com/python-cmd2/cmd2/tree/pt_style_cache
Conversationhttps://github.com/python-cmd2/cmd2/pull/1657
Commits3 (3)https://github.com/python-cmd2/cmd2/pull/1657/commits
Checkshttps://github.com/python-cmd2/cmd2/pull/1657/checks
Files changedhttps://github.com/python-cmd2/cmd2/pull/1657/files
Added LRU caching of converted prompt-toolkit styles and colors.https://github.com/python-cmd2/cmd2/pull/1657#top
kmvanbrunthttps://github.com/kmvanbrunt
mainhttps://github.com/python-cmd2/cmd2/tree/main
pt_style_cachehttps://github.com/python-cmd2/cmd2/tree/pt_style_cache
https://github.com/kmvanbrunt
kmvanbrunthttps://github.com/kmvanbrunt
May 9, 2026https://github.com/python-cmd2/cmd2/pull/1657#issue-4412948642
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1657
https://github.com/kmvanbrunt
kmvanbrunthttps://github.com/kmvanbrunt
tleonhardthttps://github.com/tleonhardt
code ownerhttps://github.com/python-cmd2/cmd2/blob/5e2b4ac530408d437b2cf01511e602fa1b6a07c4/.github/CODEOWNERS#L32
May 9, 2026 15:29https://github.com/python-cmd2/cmd2/pull/1657#event-25340256682
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
May 9, 2026https://github.com/python-cmd2/cmd2/pull/1657#issuecomment-4412878978
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1657
Codecovhttps://app.codecov.io/gh/python-cmd2/cmd2/pull/1657?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
5e3c8dehttps://app.codecov.io/gh/python-cmd2/cmd2/commit/5e3c8de9e4b699826549b857de25874981117a92?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
bd347a3https://app.codecov.io/gh/python-cmd2/cmd2/commit/bd347a338c343e8737d985782963d449b597bf45?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
Flaghttps://app.codecov.io/gh/python-cmd2/cmd2/pull/1657/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
unittestshttps://app.codecov.io/gh/python-cmd2/cmd2/pull/1657/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
Click herehttps://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2#carryforward-flags-in-the-pull-request-comment
☔ View full report in Codecov by Sentryhttps://app.codecov.io/gh/python-cmd2/cmd2/pull/1657?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
Share it herehttps://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1657
https://github.com/kmvanbrunt
kmvanbrunthttps://github.com/kmvanbrunt
May 9, 2026https://github.com/python-cmd2/cmd2/pull/1657#event-25340534775
https://github.com/kmvanbrunt
Sync prompt-toolkit styles on demand using caching and LRU-backed loo…https://github.com/python-cmd2/cmd2/pull/1657/commits/390e7959311343aadda91bafc908b91a7ef68016
390e795https://github.com/python-cmd2/cmd2/pull/1657/commits/390e7959311343aadda91bafc908b91a7ef68016
https://github.com/kmvanbrunt
kmvanbrunthttps://github.com/kmvanbrunt
force-pushedhttps://github.com/python-cmd2/cmd2/compare/5da7029c64b5ef1acc9e246a390f5ab8139ef7a4..390e7959311343aadda91bafc908b91a7ef68016
5da7029https://github.com/python-cmd2/cmd2/commit/5da7029c64b5ef1acc9e246a390f5ab8139ef7a4
390e795https://github.com/python-cmd2/cmd2/commit/390e7959311343aadda91bafc908b91a7ef68016
Compare https://github.com/python-cmd2/cmd2/compare/5da7029c64b5ef1acc9e246a390f5ab8139ef7a4..390e7959311343aadda91bafc908b91a7ef68016
May 9, 2026 15:57https://github.com/python-cmd2/cmd2/pull/1657#event-25340566329
https://github.com/kmvanbrunt
kmvanbrunthttps://github.com/kmvanbrunt
May 9, 2026https://github.com/python-cmd2/cmd2/pull/1657#event-25340568185
https://github.com/tleonhardt
tleonhardthttps://github.com/tleonhardt
May 9, 2026 https://github.com/python-cmd2/cmd2/pull/1657#pullrequestreview-4258167482
View reviewed changes https://github.com/python-cmd2/cmd2/pull/1657/files/390e7959311343aadda91bafc908b91a7ef68016
tleonhardthttps://github.com/tleonhardt
https://github.com/python-cmd2/cmd2/pull/1657#pullrequestreview-4258167482
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1657
cmd2/pt_utils.pyhttps://github.com/python-cmd2/cmd2/pull/1657/files/390e7959311343aadda91bafc908b91a7ef68016#diff-c396efd45e72671e3e4977f6aa63f8ec59e3c4745367c57e54a8d78cf6acc77e
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1657
cmd2/cmd2.pyhttps://github.com/python-cmd2/cmd2/pull/1657/files/390e7959311343aadda91bafc908b91a7ef68016#diff-325e1c8c92627fe81d6ef9f286b107ede43813bfdb4160425ca4f69c9e7ce08b
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1657
cmd2/pt_utils.pyhttps://github.com/python-cmd2/cmd2/pull/1657/files/390e7959311343aadda91bafc908b91a7ef68016#diff-c396efd45e72671e3e4977f6aa63f8ec59e3c4745367c57e54a8d78cf6acc77e
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1657
https://github.com/kmvanbrunt
Restored callback approach but retained LRU caching of pt styles.https://github.com/python-cmd2/cmd2/pull/1657/commits/07b9a8c36fd85e471d8098a34bab32ba91eaf9d4
07b9a8chttps://github.com/python-cmd2/cmd2/pull/1657/commits/07b9a8c36fd85e471d8098a34bab32ba91eaf9d4
https://github.com/kmvanbrunt
kmvanbrunthttps://github.com/kmvanbrunt
May 9, 2026https://github.com/python-cmd2/cmd2/pull/1657#event-25342888119
https://github.com/tleonhardt
tleonhardthttps://github.com/tleonhardt
May 9, 2026 https://github.com/python-cmd2/cmd2/pull/1657#pullrequestreview-4258328468
View reviewed changes https://github.com/python-cmd2/cmd2/pull/1657/files/bd347a338c343e8737d985782963d449b597bf45
tleonhardthttps://github.com/tleonhardt
https://github.com/python-cmd2/cmd2/pull/1657#pullrequestreview-4258328468
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1657
https://github.com/kmvanbrunt
Merge branch 'main' into pt_style_cachehttps://github.com/python-cmd2/cmd2/pull/1657/commits/bd347a338c343e8737d985782963d449b597bf45
bd347a3https://github.com/python-cmd2/cmd2/pull/1657/commits/bd347a338c343e8737d985782963d449b597bf45
https://github.com/kmvanbrunt
kmvanbrunthttps://github.com/kmvanbrunt
06b4915https://github.com/python-cmd2/cmd2/commit/06b4915f0f023f90ba706afbaf6664e9e2801220
May 9, 2026https://github.com/python-cmd2/cmd2/pull/1657#event-25343593728
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1657
https://github.com/kmvanbrunt
kmvanbrunthttps://github.com/kmvanbrunt
May 9, 2026 19:23https://github.com/python-cmd2/cmd2/pull/1657#event-25343594348
https://github.co/hiddenchars
https://github.com/python-cmd2/cmd2/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-cmd2%2Fcmd2%2Fpull%2F1657
https://github.com/tleonhardt
tleonhardt https://github.com/tleonhardt
https://github.com/python-cmd2/cmd2/pull/1657/files/bd347a338c343e8737d985782963d449b597bf45
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1657
https://github.com/kmvanbrunt
https://github.com/tleonhardt
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.