René's URL Explorer Experiment


Title: Project Glide + Refactor main command line args parsing by aarongoin · Pull Request #26 · polyapi/polyapi-python · GitHub

Open Graph Title: Project Glide + Refactor main command line args parsing by aarongoin · Pull Request #26 · polyapi/polyapi-python

X Title: Project Glide + Refactor main command line args parsing by aarongoin · Pull Request #26 · polyapi/polyapi-python

Description: Refactors the main python command line args parsing to use sub-parsers so arguments are better contained with the command they belong to (and makes the python help output print like the typescript command line does). Also as part of this I'm bringing all argument parsing up to this top-level. I could have let this one be tbh, but I felt like it was worth doing. Adds the prepare and sync commands with a lot of code translated over from TypeScript client code. Things that are really new and custom are: the way that we parse the python code to derive the argument types and descriptions from the python ast so that we can get character offsets for text that gets replaced by the glide commands. parsing deploy receipt comments with python comment type using Google docstring format as the one we support reading and writing

Open Graph Description: Refactors the main python command line args parsing to use sub-parsers so arguments are better contained with the command they belong to (and makes the python help output print like the typescript ...

X Description: Refactors the main python command line args parsing to use sub-parsers so arguments are better contained with the command they belong to (and makes the python help output print like the typescript ...

Opengraph URL: https://github.com/polyapi/polyapi-python/pull/26

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:b9bd8c39-d272-8bc9-ca21-aa758bbc2f28
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9CFA:26F03C:27F679:329096:69742716
html-safe-nonce6baa8408f3f8ee0e6305292b7dc6bab36d7478daed6f40d896a0cd3fafe375c9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0ZBOjI2RjAzQzoyN0Y2Nzk6MzI5MDk2OjY5NzQyNzE2IiwidmlzaXRvcl9pZCI6Ijg0MTgyOTA5MDcyOTg5MzI1MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca8ef3090b9561f9fbbf7248268b682f7fdff993082e6da6f0da4372efb77c10a
hovercard-subject-tagpull_request:2175831977
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/polyapi/polyapi-python/pull/26/files
twitter:imagehttps://avatars.githubusercontent.com/u/7750034?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/7750034?s=400&v=4
og:image:altRefactors the main python command line args parsing to use sub-parsers so arguments are better contained with the command they belong to (and makes the python help output print like the typescript ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None447dc9917c3d68d647a01abfdefe55ec7ee1785922136c1d8395dbb3ab6d57b9
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/polyapi/polyapi-python git https://github.com/polyapi/polyapi-python.git
octolytics-dimension-user_id124421413
octolytics-dimension-user_loginpolyapi
octolytics-dimension-repository_id720191438
octolytics-dimension-repository_nwopolyapi/polyapi-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id720191438
octolytics-dimension-repository_network_root_nwopolyapi/polyapi-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8dad7bdfecbe3eaa97ac4e632d6b47e2b23e81d9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/polyapi/polyapi-python/pull/26/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpolyapi%2Fpolyapi-python%2Fpull%2F26%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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%2Fpolyapi%2Fpolyapi-python%2Fpull%2F26%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=polyapi%2Fpolyapi-python
Reloadhttps://github.com/polyapi/polyapi-python/pull/26/files
Reloadhttps://github.com/polyapi/polyapi-python/pull/26/files
Reloadhttps://github.com/polyapi/polyapi-python/pull/26/files
polyapi https://github.com/polyapi
polyapi-pythonhttps://github.com/polyapi/polyapi-python
Notifications https://github.com/login?return_to=%2Fpolyapi%2Fpolyapi-python
Fork 1 https://github.com/login?return_to=%2Fpolyapi%2Fpolyapi-python
Star 5 https://github.com/login?return_to=%2Fpolyapi%2Fpolyapi-python
Code https://github.com/polyapi/polyapi-python
Pull requests 0 https://github.com/polyapi/polyapi-python/pulls
Actions https://github.com/polyapi/polyapi-python/actions
Projects 0 https://github.com/polyapi/polyapi-python/projects
Security 0 https://github.com/polyapi/polyapi-python/security
Insights https://github.com/polyapi/polyapi-python/pulse
Code https://github.com/polyapi/polyapi-python
Pull requests https://github.com/polyapi/polyapi-python/pulls
Actions https://github.com/polyapi/polyapi-python/actions
Projects https://github.com/polyapi/polyapi-python/projects
Security https://github.com/polyapi/polyapi-python/security
Insights https://github.com/polyapi/polyapi-python/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpolyapi%2Fpolyapi-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpolyapi%2Fpolyapi-python%2Fissues%2Fnew%2Fchoose
aarongoinhttps://github.com/aarongoin
develophttps://github.com/polyapi/polyapi-python/tree/develop
project-glidehttps://github.com/polyapi/polyapi-python/tree/project-glide
Conversation 5 https://github.com/polyapi/polyapi-python/pull/26
Commits 4 https://github.com/polyapi/polyapi-python/pull/26/commits
Checks 0 https://github.com/polyapi/polyapi-python/pull/26/checks
Files changed https://github.com/polyapi/polyapi-python/pull/26/files
Please reload this pagehttps://github.com/polyapi/polyapi-python/pull/26/files
Project Glide + Refactor main command line args parsing https://github.com/polyapi/polyapi-python/pull/26/files#top
Show all changes 4 commits https://github.com/polyapi/polyapi-python/pull/26/files
b3ce871 Refactor main command line args parsing, adding prepare and sync comm… aarongoin Nov 12, 2024 https://github.com/polyapi/polyapi-python/pull/26/commits/b3ce87198969c5d483f2b8815add4a5439aa502c
9256ae3 improved tests aarongoin Nov 12, 2024 https://github.com/polyapi/polyapi-python/pull/26/commits/9256ae3532dc5383cadf13938d85c2178c2c36e2
60f758b Merge remote-tracking branch 'origin/develop' into project-glide aarongoin Nov 13, 2024 https://github.com/polyapi/polyapi-python/pull/26/commits/60f758b3c92f09ff1537e7a31a5f5f20cb564200
098dc5a updating version aarongoin Nov 13, 2024 https://github.com/polyapi/polyapi-python/pull/26/commits/098dc5afba94b03af140c23b55aac7963a775fd5
Clear filters https://github.com/polyapi/polyapi-python/pull/26/files
Please reload this pagehttps://github.com/polyapi/polyapi-python/pull/26/files
Please reload this pagehttps://github.com/polyapi/polyapi-python/pull/26/files
__init__.py https://github.com/polyapi/polyapi-python/pull/26/files#diff-c984b128a954f6aaf3693a860393beff7427ce56c4318723f7846d620f3f7475
cli.py https://github.com/polyapi/polyapi-python/pull/26/files#diff-cfba3bf6e5278a0694eb18fed7fdff23ea5f4afe2c677bdfbd85fc4da7caa9f4
deployables.py https://github.com/polyapi/polyapi-python/pull/26/files#diff-cf411c80dd33089c4952a74c97cc52d2cfb67be17e95ddce354ec98f75c342e1
function_cli.py https://github.com/polyapi/polyapi-python/pull/26/files#diff-576613ba50dc3af7e0a691bc46b97e02bd50cc14e6069928c52a178ff3f4f0b7
generate.py https://github.com/polyapi/polyapi-python/pull/26/files#diff-20df266e22eb47b97e1331a93ad6d65a8dde08e05cec6ff3a37ea5ca7279891e
parser.py https://github.com/polyapi/polyapi-python/pull/26/files#diff-b487deeac58e84147626fe2597ea607f846775281b6ef9867269515ffeeb85b1
prepare.py https://github.com/polyapi/polyapi-python/pull/26/files#diff-aafb1c022a88ad6a3e79f20659bbdb67fa3bec5071ad15d817eca70fb2d6e77e
sync.py https://github.com/polyapi/polyapi-python/pull/26/files#diff-74c9b9750da03be092032160c90a85e35c2a24751ff070d9efecbce93646cd08
typedefs.py https://github.com/polyapi/polyapi-python/pull/26/files#diff-60f71aa9504517fb10569306e2bf610b1e7d8a134370036d57a72f82e8deba1a
pyproject.toml https://github.com/polyapi/polyapi-python/pull/26/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
test_deployables.py https://github.com/polyapi/polyapi-python/pull/26/files#diff-ac4c3599b012451242e812fc3748a48c8da8db8fa2062a3fe3a7e556a00c65cb
test_function_cli.py https://github.com/polyapi/polyapi-python/pull/26/files#diff-c319b212a3f5d3a701663d92e0926dee58aa867d8259b004a806eb3e8086ed38
test_parser.py https://github.com/polyapi/polyapi-python/pull/26/files#diff-237d6caeea59e3cf8f303958b4b29e752861048496a047a6af38a12915a02e32
polyapi/__init__.pyhttps://github.com/polyapi/polyapi-python/pull/26/files#diff-c984b128a954f6aaf3693a860393beff7427ce56c4318723f7846d620f3f7475
View file https://github.com/polyapi/polyapi-python/blob/098dc5afba94b03af140c23b55aac7963a775fd5/polyapi/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/polyapi/polyapi-python/pull/26/{{ revealButtonHref }}
https://github.com/polyapi/polyapi-python/pull/26/files#diff-c984b128a954f6aaf3693a860393beff7427ce56c4318723f7846d620f3f7475
polyapi/cli.pyhttps://github.com/polyapi/polyapi-python/pull/26/files#diff-cfba3bf6e5278a0694eb18fed7fdff23ea5f4afe2c677bdfbd85fc4da7caa9f4
View file https://github.com/polyapi/polyapi-python/blob/098dc5afba94b03af140c23b55aac7963a775fd5/polyapi/cli.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/polyapi/polyapi-python/pull/26/{{ revealButtonHref }}
eneumannhttps://github.com/eneumann
Nov 14, 2024https://github.com/polyapi/polyapi-python/pull/26/files#r1842660976
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/polyapi/polyapi-python/pull/26/files
Please reload this pagehttps://github.com/polyapi/polyapi-python/pull/26/files
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.