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:0fdf2097-b1e1-34ea-d0e8-df8ade60ce8d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8334:107130:AD6FE2:EE0D7C:6A63B947 |
| html-safe-nonce | 1c9d0d25883bbc211f528ec43c0eb40b7f555c02ca0066da96d7acd0c76ebdee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzM0OjEwNzEzMDpBRDZGRTI6RUUwRDdDOjZBNjNCOTQ3IiwidmlzaXRvcl9pZCI6IjUyNTEyOTYzODUzMzg0MjM2MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dea442e11ab4d0cb2c87923a6fbbb0bf8524e2f11af1b1981e84f4e4d2566413 |
| 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 | b1a203abf5b8fb9010b42a32ce0f19fb6e11e656f254d0d3dcdba4b65a6961a6 |
| 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 | 3ae9132c55b60e2a8f9553322217eb369dd24575 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width