Title: load in tmp_{col}.py on first run IF there are no changes to the originating module. · Issue #5 · hearnderek/DeclarativePython · GitHub
Open Graph Title: load in tmp_{col}.py on first run IF there are no changes to the originating module. · Issue #5 · hearnderek/DeclarativePython
X Title: load in tmp_{col}.py on first run IF there are no changes to the originating module. · Issue #5 · hearnderek/DeclarativePython
Description: How to tell if there was a change to the file: Hacky Idea 1: When generating python file Generate MD5 hash of the user module. (only imagining a single file) Place hash into generated flat script as a standard string variable user_module...
Open Graph Description: How to tell if there was a change to the file: Hacky Idea 1: When generating python file Generate MD5 hash of the user module. (only imagining a single file) Place hash into generated flat script a...
X Description: How to tell if there was a change to the file: Hacky Idea 1: When generating python file Generate MD5 hash of the user module. (only imagining a single file) Place hash into generated flat script a...
Opengraph URL: https://github.com/hearnderek/DeclarativePython/issues/5
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"load in tmp_{col}.py on first run IF there are no changes to the originating module.","articleBody":"# How to tell if there was a change to the file:\r\n\r\n## Hacky Idea 1:\r\nWhen generating python file\r\n1. Generate MD5 hash of the user module. (only imagining a single file)\r\n2. Place hash into generated flat script as a standard string variable user_module_hash.\r\n\r\nWhen initializing engine\r\n1. search for matching flat script within working directory\r\n2. Generate MD5 hash of the user module.\r\n3. test user_module_hash against generated hash\r\n4. if match use flat script\r\n5. if not match ignore flat script\r\n\r\n\r\n## Adjacent Idea 1:\r\nOnce we start generating these files, it would be nice to have a central place to keep them, and have them out of the way for user.\r\nStore flat file in a sqlite database, with it's hash, create date, etc.\r\nAlternatively we could store the files in a zipfile which acts as a document store.\r\nThis then means we have a place to store our results as well. (Which then I would want to look into optimizing writes to sqlite)","author":{"url":"https://github.com/hearnderek","@type":"Person","name":"hearnderek"},"datePublished":"2021-05-15T16:27:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/5/DeclarativePython/issues/5"}
| 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:ae74ad3c-343e-d9c0-72ae-f3d34acb3992 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE7C:1357CB:2ADEEA:36DDE7:698E86EE |
| html-safe-nonce | 9ff165dd01f33c3c1649a842ade6d35bd29d57868b9de48a7fff826aee4aba8b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTdDOjEzNTdDQjoyQURFRUE6MzZEREU3OjY5OEU4NkVFIiwidmlzaXRvcl9pZCI6IjgxMzM0MTEyNTQxNzk4OTA5MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dcbbd8cebdc356f9f887250d394f6d6ebf905679d4c48e20e86bf0ef2bc492ee |
| hovercard-subject-tag | issue:892487176 |
| 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/hearnderek/DeclarativePython/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/09cb521885da47ab67fe35c2e991f4f2f128428a3ee707b09e83b0ec58e69710/hearnderek/DeclarativePython/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/09cb521885da47ab67fe35c2e991f4f2f128428a3ee707b09e83b0ec58e69710/hearnderek/DeclarativePython/issues/5 |
| og:image:alt | How to tell if there was a change to the file: Hacky Idea 1: When generating python file Generate MD5 hash of the user module. (only imagining a single file) Place hash into generated flat script a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hearnderek |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/hearnderek/DeclarativePython git https://github.com/hearnderek/DeclarativePython.git |
| octolytics-dimension-user_id | 13596500 |
| octolytics-dimension-user_login | hearnderek |
| octolytics-dimension-repository_id | 361700495 |
| octolytics-dimension-repository_nwo | hearnderek/DeclarativePython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 361700495 |
| octolytics-dimension-repository_network_root_nwo | hearnderek/DeclarativePython |
| 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 | f7a12861f7011eecb14bcc4388a767d829a52dfc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width