René's URL Explorer Experiment


Title: Cleanup Python code examples in docs by julien-lang · Pull Request #421 · shotgunsoftware/python-api · GitHub

Open Graph Title: Cleanup Python code examples in docs by julien-lang · Pull Request #421 · shotgunsoftware/python-api

X Title: Cleanup Python code examples in docs by julien-lang · Pull Request #421 · shotgunsoftware/python-api

Description: The goal of this PR is to update all Python code example in the docs and make them easier to read.

Open Graph Description: The goal of this PR is to update all Python code example in the docs and make them easier to read.

X Description: The goal of this PR is to update all Python code example in the docs and make them easier to read.

Opengraph URL: https://github.com/shotgunsoftware/python-api/pull/421

X: @github

direct link

Domain: patch-diff.githubusercontent.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:0e488f57-dd46-3567-7baf-ac04f72e3ed2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC332:4AF3C:E18C10:13D4984:696FBFA5
html-safe-nonce1037150f42c73ccfb39a11f237be18299af6cbc9f608ab12090e5a09b1aa489e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzMyOjRBRjNDOkUxOEMxMDoxM0Q0OTg0OjY5NkZCRkE1IiwidmlzaXRvcl9pZCI6IjIzOTcyNjQ4MzMxODIyNjg1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9951e475e560ce65392ac0ef61d5690b43c43807cb67e269364123ae0b8b9b80
hovercard-subject-tagpull_request:2952630226
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/shotgunsoftware/python-api/421/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/43134091bf831bc1546dd452f39449728d3973cab8d7a87f2fde65ef362cc349/shotgunsoftware/python-api/pull/421
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/43134091bf831bc1546dd452f39449728d3973cab8d7a87f2fde65ef362cc349/shotgunsoftware/python-api/pull/421
og:image:altThe goal of this PR is to update all Python code example in the docs and make them easier to read.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejulien-lang
hostnamegithub.com
expected-hostnamegithub.com
None40ce4030a7db32193be29054756ed7f7eceec3a82973f060300035bdff8cf777
turbo-cache-controlno-preview
go-importgithub.com/shotgunsoftware/python-api git https://github.com/shotgunsoftware/python-api.git
octolytics-dimension-user_id317894
octolytics-dimension-user_loginshotgunsoftware
octolytics-dimension-repository_id748742
octolytics-dimension-repository_nwoshotgunsoftware/python-api
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id748742
octolytics-dimension-repository_network_root_nwoshotgunsoftware/python-api
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
release1cdcabe0d7ddc4be91a713d57280849e4c89f5cd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fshotgunsoftware%2Fpython-api%2Fpull%2F421
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fshotgunsoftware%2Fpython-api%2Fpull%2F421
Sign up https://patch-diff.githubusercontent.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=shotgunsoftware%2Fpython-api
Reloadhttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421
Reloadhttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421
Reloadhttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421
shotgunsoftware https://patch-diff.githubusercontent.com/shotgunsoftware
python-apihttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fshotgunsoftware%2Fpython-api
Fork 204 https://patch-diff.githubusercontent.com/login?return_to=%2Fshotgunsoftware%2Fpython-api
Star 317 https://patch-diff.githubusercontent.com/login?return_to=%2Fshotgunsoftware%2Fpython-api
Code https://patch-diff.githubusercontent.com/shotgunsoftware/python-api
Issues 38 https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/issues
Pull requests 14 https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pulls
Actions https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/actions
Projects 0 https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/projects
Models https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/models
Wiki https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/security
Please reload this pagehttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421
Insights https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pulse
Code https://patch-diff.githubusercontent.com/shotgunsoftware/python-api
Issues https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/issues
Pull requests https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pulls
Actions https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/actions
Projects https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/projects
Models https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/models
Wiki https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/wiki
Security https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/security
Insights https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fshotgunsoftware%2Fpython-api%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fshotgunsoftware%2Fpython-api%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421#issue-comment-box
julien-langhttps://patch-diff.githubusercontent.com/julien-lang
masterhttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/tree/master
ticket/SG-40841-better-python-code-in-docshttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/tree/ticket/SG-40841-better-python-code-in-docs
Cleanup Python code examples in docs https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421#top
julien-langhttps://patch-diff.githubusercontent.com/julien-lang
masterhttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/tree/master
ticket/SG-40841-better-python-code-in-docshttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/tree/ticket/SG-40841-better-python-code-in-docs
Conversation 3 https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421
Commits 5 https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421/commits
Checks 12 https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421/checks
Files changed https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421/files
Please reload this pagehttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/julien-lang
julien-langhttps://patch-diff.githubusercontent.com/julien-lang
Oct 27, 2025https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421#issue-3558601034
Please reload this pagehttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421
Please reload this pagehttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421
julien-langhttps://patch-diff.githubusercontent.com/julien-lang
October 27, 2025 11:52https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421#commits-pushed-e40bc0b
https://patch-diff.githubusercontent.com/julien-lang
Auto update done by CoPilothttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421/commits/e40bc0b267d4312f6d238c9b0937a7776f56f766
e40bc0bhttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421/commits/e40bc0b267d4312f6d238c9b0937a7776f56f766
https://patch-diff.githubusercontent.com/julien-lang
test betterhttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421/commits/4c7576ad3c3af4cd139f492e900f45bbc75082bd
4c7576ahttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421/commits/4c7576ad3c3af4cd139f492e900f45bbc75082bd
https://patch-diff.githubusercontent.com/julien-lang
More co pilothttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421/commits/f2fb0c7a9d7d24c1a190798febf80b91b4fdc6ab
f2fb0c7https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421/commits/f2fb0c7a9d7d24c1a190798febf80b91b4fdc6ab
https://patch-diff.githubusercontent.com/julien-lang
julien-langhttps://patch-diff.githubusercontent.com/julien-lang
Copilothttps://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer
October 27, 2025 20:49https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421#event-20536010502
https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer
Copilothttps://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer
Oct 27, 2025 https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421#pullrequestreview-3385414846
View reviewed changes https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421/files/f2fb0c7a9d7d24c1a190798febf80b91b4fdc6ab
Copilothttps://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer
https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421#pullrequestreview-3385414846
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Add Copilot custom instructionshttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/new/master/.github?filename=*.instructions.md
Learn how to get startedhttps://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot
Please reload this pagehttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421
docs/reference.rsthttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421/files/f2fb0c7a9d7d24c1a190798febf80b91b4fdc6ab#diff-3c4b0aa2b92800c658801083eb3665363665b72e13a25f1f16477389a06fe157
Please reload this pagehttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421
docs/cookbook/examples/ami_version_packager.rsthttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421/files/f2fb0c7a9d7d24c1a190798febf80b91b4fdc6ab#diff-fbb5c33e74a3bd3cadad35cced3e27eb78325dd10ab2b97a54ecc0f8d5f81167
Please reload this pagehttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421
julien-langhttps://patch-diff.githubusercontent.com/julien-lang
October 27, 2025 13:51https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421#commits-pushed-cc99aee
https://patch-diff.githubusercontent.com/julien-lang
https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer
Update docs/reference.rsthttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421/commits/cc99aeefcfee572da6d7042d861ffdf159c2faf8
cc99aeehttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421/commits/cc99aeefcfee572da6d7042d861ffdf159c2faf8
https://patch-diff.githubusercontent.com/julien-lang
https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer
Update docs/cookbook/examples/ami_version_packager.rsthttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421/commits/653c65786a9ecd046a97a51377fc1df2bcfdf682
653c657https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421/commits/653c65786a9ecd046a97a51377fc1df2bcfdf682
https://patch-diff.githubusercontent.com/julien-lang
julien-langhttps://patch-diff.githubusercontent.com/julien-lang
Nov 12, 2025https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421#event-20897797593
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fshotgunsoftware%2Fpython-api%2Fpull%2F421
Copilot code review https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer
Copilot https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer
https://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421/files/f2fb0c7a9d7d24c1a190798febf80b91b4fdc6ab
Please reload this pagehttps://patch-diff.githubusercontent.com/shotgunsoftware/python-api/pull/421
https://patch-diff.githubusercontent.com/julien-lang
https://patch-diff.githubusercontent.com/apps/copilot-swe-agent
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.