René's URL Explorer Experiment


Title: feature: Shape.alternative_text by fsolleza · Pull Request #317 · python-openxml/python-docx · GitHub

Open Graph Title: feature: Shape.alternative_text by fsolleza · Pull Request #317 · python-openxml/python-docx

X Title: feature: Shape.alternative_text by fsolleza · Pull Request #317 · python-openxml/python-docx

Description: Hi, I added a little bit of code and two tests associated with that code so that users can add alt text to inline shapes. The API is consistent with InlineShape.height and InlineShape.width without modifying the InlineShape initializer or changing the add_picture method. This change was based off comments in #227. Users can add alt text as follows: from docx import Document doc = Document(path) pic = doc.add_picture(picture_path, cx, cy) pic.alt_text = "some alt text" I'm happy to take any input and make changes where you deem necessary. Thanks!

Open Graph Description: Hi, I added a little bit of code and two tests associated with that code so that users can add alt text to inline shapes. The API is consistent with InlineShape.height and InlineShape.width without...

X Description: Hi, I added a little bit of code and two tests associated with that code so that users can add alt text to inline shapes. The API is consistent with InlineShape.height and InlineShape.width without...

Opengraph URL: https://github.com/python-openxml/python-docx/pull/317

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:fc5ba393-f54e-0c8c-d967-332b04f22d5d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD8E2:B22A0:2694971:33AC3AA:696EDFE1
html-safe-nonce3da40346550df231ba5b0020dbdf4636a973476bd36bc5a42f063e1a50ee2717
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEUyOkIyMkEwOjI2OTQ5NzE6MzNBQzNBQTo2OTZFREZFMSIsInZpc2l0b3JfaWQiOiI4Njg1MjY2ODg2MTY2NzY1NTM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac85cf82144b1063b4e0c1415a683c3cc76d37dae34639195e6545265916f92e25
hovercard-subject-tagpull_request:82000844
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/python-openxml/python-docx/pull/317/files
twitter:imagehttps://avatars.githubusercontent.com/u/8867477?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/8867477?s=400&v=4
og:image:altHi, I added a little bit of code and two tests associated with that code so that users can add alt text to inline shapes. The API is consistent with InlineShape.height and InlineShape.width without...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python-openxml/python-docx git https://github.com/python-openxml/python-docx.git
octolytics-dimension-user_id3403760
octolytics-dimension-user_loginpython-openxml
octolytics-dimension-repository_id13592924
octolytics-dimension-repository_nwopython-openxml/python-docx
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id13592924
octolytics-dimension-repository_network_root_nwopython-openxml/python-docx
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
release39aed5006635ab6f45e6b77d23e73b08a00272a3
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-openxml/python-docx/pull/317/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-openxml%2Fpython-docx%2Fpull%2F317%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%2Fpython-openxml%2Fpython-docx%2Fpull%2F317%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=python-openxml%2Fpython-docx
Reloadhttps://github.com/python-openxml/python-docx/pull/317/files
Reloadhttps://github.com/python-openxml/python-docx/pull/317/files
Reloadhttps://github.com/python-openxml/python-docx/pull/317/files
python-openxml https://github.com/python-openxml
python-docxhttps://github.com/python-openxml/python-docx
Notifications https://github.com/login?return_to=%2Fpython-openxml%2Fpython-docx
Fork 1.3k https://github.com/login?return_to=%2Fpython-openxml%2Fpython-docx
Star 5.4k https://github.com/login?return_to=%2Fpython-openxml%2Fpython-docx
Code https://github.com/python-openxml/python-docx
Issues 577 https://github.com/python-openxml/python-docx/issues
Pull requests 121 https://github.com/python-openxml/python-docx/pulls
Actions https://github.com/python-openxml/python-docx/actions
Projects 0 https://github.com/python-openxml/python-docx/projects
Wiki https://github.com/python-openxml/python-docx/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python-openxml/python-docx/security
Please reload this pagehttps://github.com/python-openxml/python-docx/pull/317/files
Insights https://github.com/python-openxml/python-docx/pulse
Code https://github.com/python-openxml/python-docx
Issues https://github.com/python-openxml/python-docx/issues
Pull requests https://github.com/python-openxml/python-docx/pulls
Actions https://github.com/python-openxml/python-docx/actions
Projects https://github.com/python-openxml/python-docx/projects
Wiki https://github.com/python-openxml/python-docx/wiki
Security https://github.com/python-openxml/python-docx/security
Insights https://github.com/python-openxml/python-docx/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython-openxml%2Fpython-docx%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython-openxml%2Fpython-docx%2Fissues%2Fnew%2Fchoose
fsollezahttps://github.com/fsolleza
python-openxml:masterhttps://github.com/python-openxml/python-docx/tree/master
Conversation 4 https://github.com/python-openxml/python-docx/pull/317
Commits 4 https://github.com/python-openxml/python-docx/pull/317/commits
Checks 0 https://github.com/python-openxml/python-docx/pull/317/checks
Files changed https://github.com/python-openxml/python-docx/pull/317/files
Please reload this pagehttps://github.com/python-openxml/python-docx/pull/317/files
feature: Shape.alternative_text https://github.com/python-openxml/python-docx/pull/317/files#top
Show all changes 4 commits https://github.com/python-openxml/python-docx/pull/317/files
31fb39d modifying shape to add an alt_text field Aug 19, 2016 https://github.com/python-openxml/python-docx/pull/317/commits/31fb39d15e1d7ac30c9dc58d6bb3856e76d54df1
d3bf01e correcting alt_text access in shape.py Aug 19, 2016 https://github.com/python-openxml/python-docx/pull/317/commits/d3bf01e689f51e5737c1efd90603689602148ba0
1d817de adding tests for shape alt_text Aug 19, 2016 https://github.com/python-openxml/python-docx/pull/317/commits/1d817deda13bdefc2581f117b717b4f52b60eb9c
39a484d cleaning up test_shape.py Aug 19, 2016 https://github.com/python-openxml/python-docx/pull/317/commits/39a484dbc5d9d18f0110fdd1f44c10334574f152
Clear filters https://github.com/python-openxml/python-docx/pull/317/files
Please reload this pagehttps://github.com/python-openxml/python-docx/pull/317/files
Please reload this pagehttps://github.com/python-openxml/python-docx/pull/317/files
shape.py https://github.com/python-openxml/python-docx/pull/317/files#diff-f5bac8c205cdc351619e0f0da690c310242fad2ebaa9126f8effdfe103f95cd9
shape.py https://github.com/python-openxml/python-docx/pull/317/files#diff-738189d9ff31a6f4131e05d74d72e89a76e35e461618161ff5b5dec885a87cbc
inline.txt https://github.com/python-openxml/python-docx/pull/317/files#diff-92977d577281fd18dc9c0685da892026d8adb6da5f42215ad6a7fc6b8141c200
test_shape.py https://github.com/python-openxml/python-docx/pull/317/files#diff-24a3d655c2355068851952c1b89b0e9518eae26928bef2b6a4829d3d90376cf6
docx/oxml/shape.pyhttps://github.com/python-openxml/python-docx/pull/317/files#diff-f5bac8c205cdc351619e0f0da690c310242fad2ebaa9126f8effdfe103f95cd9
View file https://github.com/python-openxml/python-docx/blob/39a484dbc5d9d18f0110fdd1f44c10334574f152/docx/oxml/shape.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-openxml/python-docx/pull/317/{{ revealButtonHref }}
https://github.com/python-openxml/python-docx/pull/317/files#diff-f5bac8c205cdc351619e0f0da690c310242fad2ebaa9126f8effdfe103f95cd9
https://github.com/python-openxml/python-docx/pull/317/files#diff-f5bac8c205cdc351619e0f0da690c310242fad2ebaa9126f8effdfe103f95cd9
docx/shape.pyhttps://github.com/python-openxml/python-docx/pull/317/files#diff-738189d9ff31a6f4131e05d74d72e89a76e35e461618161ff5b5dec885a87cbc
View file https://github.com/python-openxml/python-docx/blob/39a484dbc5d9d18f0110fdd1f44c10334574f152/docx/shape.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-openxml/python-docx/pull/317/{{ revealButtonHref }}
https://github.com/python-openxml/python-docx/pull/317/files#diff-738189d9ff31a6f4131e05d74d72e89a76e35e461618161ff5b5dec885a87cbc
tests/test_files/snippets/inline.txthttps://github.com/python-openxml/python-docx/pull/317/files#diff-92977d577281fd18dc9c0685da892026d8adb6da5f42215ad6a7fc6b8141c200
View file https://github.com/python-openxml/python-docx/blob/39a484dbc5d9d18f0110fdd1f44c10334574f152/tests/test_files/snippets/inline.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-openxml/python-docx/pull/317/{{ revealButtonHref }}
https://github.com/python-openxml/python-docx/pull/317/files#diff-92977d577281fd18dc9c0685da892026d8adb6da5f42215ad6a7fc6b8141c200
tests/test_shape.pyhttps://github.com/python-openxml/python-docx/pull/317/files#diff-24a3d655c2355068851952c1b89b0e9518eae26928bef2b6a4829d3d90376cf6
View file https://github.com/python-openxml/python-docx/blob/39a484dbc5d9d18f0110fdd1f44c10334574f152/tests/test_shape.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-openxml/python-docx/pull/317/{{ revealButtonHref }}
https://github.com/python-openxml/python-docx/pull/317/files#diff-24a3d655c2355068851952c1b89b0e9518eae26928bef2b6a4829d3d90376cf6
https://github.com/python-openxml/python-docx/pull/317/files#diff-24a3d655c2355068851952c1b89b0e9518eae26928bef2b6a4829d3d90376cf6
https://github.com/python-openxml/python-docx/pull/317/files#diff-24a3d655c2355068851952c1b89b0e9518eae26928bef2b6a4829d3d90376cf6
https://github.com/python-openxml/python-docx/pull/317/files#diff-24a3d655c2355068851952c1b89b0e9518eae26928bef2b6a4829d3d90376cf6
https://github.com/python-openxml/python-docx/pull/317/files#diff-24a3d655c2355068851952c1b89b0e9518eae26928bef2b6a4829d3d90376cf6
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.