René's URL Explorer Experiment


Title: Move code for exporting attributes to the attribute's classes by dragomirecky · Pull Request #82 · python-sdbus/python-sdbus · GitHub

Open Graph Title: Move code for exporting attributes to the attribute's classes by dragomirecky · Pull Request #82 · python-sdbus/python-sdbus

X Title: Move code for exporting attributes to the attribute's classes by dragomirecky · Pull Request #82 · python-sdbus/python-sdbus

Description: Hello, this PR makes some relatively small improvements (in my opinion) to the internal structure of the code. It renames all the DbusSomething classes to DbusAttribute. "Something" referred to method/signal/property of an interface. Looking at sdbus and elsewhere, those are usually called "attributes" of the interface. Together with the other changes in this PR, I believe it makes the code clearer. It renames the classes for bound attributes Discussed here already #65 I believe calling the attributes "bound" is correct, the same way we have "bound methods" in Python. Thus the base classes for bound attributes is "DbusBound". The concrete subclasses representing bound attributes are then called DbusLocalMethodAsync, DbusLocalMethodAsync, etc (as suggested by @igo95862 ; not repeating the "Bound" word, as it doesn't seem to be necessary in that context) Most importantly, it moves some attribute-specific code from DbusInterfaceBaseAsync to the DbusLocalMethodAsync. This change is my main motivation behind this PR. By having the logic of "exporting an attribute to dbus" in the attribute class itself, it gets much easier for clients of this library to extend the library with more advanced attributes (which is my case – I need to be able to implement custom versions of @dbus_property_async and this change makes it much easier to do so). At the same time, it tries to make the code actually simpler (also slightly improving DbusExportHandle).

Open Graph Description: Hello, this PR makes some relatively small improvements (in my opinion) to the internal structure of the code. It renames all the DbusSomething classes to DbusAttribute. "Something" ref...

X Description: Hello, this PR makes some relatively small improvements (in my opinion) to the internal structure of the code. It renames all the DbusSomething classes to DbusAttribute. "Something&q...

Opengraph URL: https://github.com/python-sdbus/python-sdbus/pull/82

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:a7f0d05e-d9cc-2005-e305-3c5c8eb5a6c4
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-idE63C:3CD90B:1CBF985:276F9E0:698DC652
html-safe-noncedcc194674f17fed2a2a19e4af88408364f65b90c85e798cd2661a91668f51471
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjNDOjNDRDkwQjoxQ0JGOTg1OjI3NkY5RTA6Njk4REM2NTIiLCJ2aXNpdG9yX2lkIjoiNjA1NjcyNjc4NzY4NDk0MzQ0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc8b861c4d8840081656d84330f97170e93e5e8705915e5292f5c7dc7f0e18bd7
hovercard-subject-tagpull_request:2220503796
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-sdbus/python-sdbus/pull/82/checks
twitter:imagehttps://avatars.githubusercontent.com/u/1269664?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1269664?s=400&v=4
og:image:altHello, this PR makes some relatively small improvements (in my opinion) to the internal structure of the code. It renames all the DbusSomething classes to DbusAttribute. "Something" ref...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2457fd9a1b17ca7f38c3c2653895ccb2e0dd04f18f77446a21354e9bc4b7902f
turbo-cache-controlno-cache
go-importgithub.com/python-sdbus/python-sdbus git https://github.com/python-sdbus/python-sdbus.git
octolytics-dimension-user_id88226657
octolytics-dimension-user_loginpython-sdbus
octolytics-dimension-repository_id311269257
octolytics-dimension-repository_nwopython-sdbus/python-sdbus
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id311269257
octolytics-dimension-repository_network_root_nwopython-sdbus/python-sdbus
turbo-body-classeslogged-out env-production page-responsive full-width full-width-p-0
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release878672b82363fd98fbdc5bd0edb68e572c8a8d9b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pull/82/checks#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-sdbus%2Fpython-sdbus%2Fpull%2F82%2Fchecks
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%2Fpython-sdbus%2Fpython-sdbus%2Fpull%2F82%2Fchecks
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%2Fpull_requests%2Fshow%2Fchecks&source=header-repo&source_repo=python-sdbus%2Fpython-sdbus
Reloadhttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pull/82/checks
Reloadhttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pull/82/checks
Reloadhttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pull/82/checks
python-sdbus https://patch-diff.githubusercontent.com/python-sdbus
python-sdbushttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus
Please reload this pagehttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pull/82/checks
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-sdbus%2Fpython-sdbus
Fork 23 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-sdbus%2Fpython-sdbus
Star 105 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-sdbus%2Fpython-sdbus
Code https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus
Issues 4 https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/issues
Pull requests 1 https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pulls
Discussions https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/discussions
Actions https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/actions
Projects 0 https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/projects
Security 0 https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/security
Insights https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pulse
Code https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus
Issues https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/issues
Pull requests https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pulls
Discussions https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/discussions
Actions https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/actions
Projects https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/projects
Security https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/security
Insights https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fpython-sdbus%2Fpython-sdbus%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=%2Fpython-sdbus%2Fpython-sdbus%2Fissues%2Fnew%2Fchoose
dragomireckyhttps://patch-diff.githubusercontent.com/dragomirecky
python-sdbus:masterhttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/tree/master
dragomirecky:structure-improvementshttps://patch-diff.githubusercontent.com/dragomirecky/python-sdbus/tree/structure-improvements
Conversation 12 https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pull/82
Commits 1 https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pull/82/commits
Checks 6 https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pull/82/checks
Files changed https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pull/82/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pull/82/checks
Please reload this pagehttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pull/82/checks
Sign in for the full log viewhttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-sdbus%2Fpython-sdbus%2Fpull%2F82%2Fchecks
Move code for exporting attributes to the attribute's classes https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pull/82/checks#top
Please reload this pagehttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pull/82/checks
CodeQL on: pull_request https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/actions/runs/12373344320
Analyze (python) https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/actions/runs/12373344320/job/34533472535?pr=82
CI on: pull_request https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/actions/runs/12373344325
Run build and unit tests. (unlimited API) https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/actions/runs/12373344325/job/34533473740?pr=82
Run build and unit tests. (limited API) https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/actions/runs/12373344325/job/34533473035?pr=82
Run linters on the code https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/actions/runs/12373344325/job/34533472618?pr=82
Alpine Linux test https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/actions/runs/12373344325/job/34533473401?pr=82
CodeQL https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pull/82/checks?check_run_id=34533530157
https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/actions/runs/12373344320/job/34533472535
https://github.com/actions/runner-images/issues/10636https://github.com/actions/runner-images/issues/10636
https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus/pull/82/checks#annotation:3:10
https://github.blog/changelog/2024-01-12-code-scanning-deprecation-of-codeql-action-v2/https://github.blog/changelog/2024-01-12-code-scanning-deprecation-of-codeql-action-v2/
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.