Title: Use a src layout instead of a flat layout · Issue #4797 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: Use a src layout instead of a flat layout · Issue #4797 · python-telegram-bot/python-telegram-bot
X Title: Use a src layout instead of a flat layout · Issue #4797 · python-telegram-bot/python-telegram-bot
Description: What kind of feature are you missing? Where do you notice a shortcoming of PTB? The python packaging guide recommends that libraries which are meant to be importable (that's us) should use a src layout. The pros of using it is listed her...
Open Graph Description: What kind of feature are you missing? Where do you notice a shortcoming of PTB? The python packaging guide recommends that libraries which are meant to be importable (that's us) should use a src la...
X Description: What kind of feature are you missing? Where do you notice a shortcoming of PTB? The python packaging guide recommends that libraries which are meant to be importable (that's us) should use a sr...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/4797
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use a src layout instead of a flat layout","articleBody":"### What kind of feature are you missing? Where do you notice a shortcoming of PTB?\n\nThe python packaging guide recommends that libraries which are meant to be importable (that's us) should use a src layout. The pros of using it is listed here - https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/\n\n### Describe the solution you'd like\n\nThe `telegram` folder will now be in `src/telegram`.\n\n### Describe alternatives you've considered\n\nNot conforming to python packaging standards\n\n### Additional context\n\n`uv` also initializes a new project with src layout by default for libraries, see https://docs.astral.sh/uv/concepts/projects/init/#libraries","author":{"url":"https://github.com/harshil21","@type":"Person","name":"harshil21"},"datePublished":"2025-05-22T08:42:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4797/python-telegram-bot/issues/4797"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6690a728-0679-da61-09ef-2bed54f3d607 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA80:24ADBB:237A5F:2F6F75:6A5BC1DA |
| html-safe-nonce | 3726c07cfa6a2e76eb290d9a46beb720bbaea5716d389f06eab4bfba0ffb1cbd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTgwOjI0QURCQjoyMzdBNUY6MkY2Rjc1OjZBNUJDMURBIiwidmlzaXRvcl9pZCI6IjI5MjI2Mjc0OTgxMTM0ODEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 83ace00e2976f16a4a37485be9190b7b0d5ed07f864745ed326ac51cbeea823d |
| hovercard-subject-tag | issue:3082553901 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-telegram-bot/python-telegram-bot/4797/issue_layout |
| twitter:image | https://opengraph.githubassets.com/73af4b36ce60e0c334b2a386063ace46a8d350d38e7a33dd270b0b9360c16781/python-telegram-bot/python-telegram-bot/issues/4797 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/73af4b36ce60e0c334b2a386063ace46a8d350d38e7a33dd270b0b9360c16781/python-telegram-bot/python-telegram-bot/issues/4797 |
| og:image:alt | What kind of feature are you missing? Where do you notice a shortcoming of PTB? The python packaging guide recommends that libraries which are meant to be importable (that's us) should use a src la... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | harshil21 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/python-telegram-bot/python-telegram-bot git https://github.com/python-telegram-bot/python-telegram-bot.git |
| octolytics-dimension-user_id | 16178365 |
| octolytics-dimension-user_login | python-telegram-bot |
| octolytics-dimension-repository_id | 38696925 |
| octolytics-dimension-repository_nwo | python-telegram-bot/python-telegram-bot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38696925 |
| octolytics-dimension-repository_network_root_nwo | python-telegram-bot/python-telegram-bot |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width