Title: Instance method as function name in command line · Issue #73 · HDE/python-lambda-local · GitHub
Open Graph Title: Instance method as function name in command line · Issue #73 · HDE/python-lambda-local
X Title: Instance method as function name in command line · Issue #73 · HDE/python-lambda-local
Description: I have defined my lambda function handler as a method on a class. The py file that I want to use as the handler creates an instance of this class. I want to be able to invoke that method like: python-lambda-local -f instance.method handl...
Open Graph Description: I have defined my lambda function handler as a method on a class. The py file that I want to use as the handler creates an instance of this class. I want to be able to invoke that method like: pyth...
X Description: I have defined my lambda function handler as a method on a class. The py file that I want to use as the handler creates an instance of this class. I want to be able to invoke that method like: pyth...
Opengraph URL: https://github.com/HDE/python-lambda-local/issues/73
X: @github
Domain: Github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Instance method as function name in command line","articleBody":"I have defined my lambda function handler as a method on a class. The py file that I want to use as the handler creates an instance of this class.\r\n\r\nI want to be able to invoke that method like:\r\n`python-lambda-local -f instance.method handler.py event.json`\r\n\r\n##### handler.py\r\n```python\r\nclass LambdaClass:\r\n def lambda_method(self, event, context):\r\n ... do stuff\r\n\r\ninstance = LambdaClass()\r\n```","author":{"url":"https://github.com/ksmoore17","@type":"Person","name":"ksmoore17"},"datePublished":"2020-12-22T02:12:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/73/python-lambda-local/issues/73"}
| 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:8401dea5-0b3d-2730-af8d-fccbc2bb352a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBB2:1D7D50:B1372:F8A2E:6A622DC5 |
| html-safe-nonce | 9c79d67f614e47cc337d836b7b5a63efad2797f215de7f82fbbc74ee7edb4000 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkIyOjFEN0Q1MDpCMTM3MjpGOEEyRTo2QTYyMkRDNSIsInZpc2l0b3JfaWQiOiI4ODU4NDE2NDc4MzgxMjg4OTAxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2d99f6aaa657bb06475eeb6c3ecbc68f74cb3ab7f84fc91c30d6b09f3ffcb99c |
| hovercard-subject-tag | issue:772583413 |
| 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/HDE/python-lambda-local/73/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f77a2500c556f8af35d0e7ce7f5b959c900f02693831189cd1494b0d515a9ddb/HDE/python-lambda-local/issues/73 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f77a2500c556f8af35d0e7ce7f5b959c900f02693831189cd1494b0d515a9ddb/HDE/python-lambda-local/issues/73 |
| og:image:alt | I have defined my lambda function handler as a method on a class. The py file that I want to use as the handler creates an instance of this class. I want to be able to invoke that method like: pyth... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ksmoore17 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0e882415c7b47986d65f899389c870b31642bb1c6f36516eb042618596c60e62 |
| turbo-cache-control | no-preview |
| go-import | github.com/HDE/python-lambda-local git https://github.com/HDE/python-lambda-local.git |
| octolytics-dimension-user_id | 2193380 |
| octolytics-dimension-user_login | HDE |
| octolytics-dimension-repository_id | 44359250 |
| octolytics-dimension-repository_nwo | HDE/python-lambda-local |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 44359250 |
| octolytics-dimension-repository_network_root_nwo | HDE/python-lambda-local |
| 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 | 230e2af5fc0870303dd4569d72d2bb393ed52c52 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width