Matthew Martin β β
π on Nostr: IDEA: python has atexit() but nothing onstartup(). Dotnet has ...
IDEA: python has atexit() but nothing onstartup(). Dotnet has PreApplicationStartMethod() and other events early in the process/app/thread's life cycle.
Maybe if I wrote an app that hosted a single process, like a gunicorn for CLI commands. And then it could have middleware and events to hook into.
Published at
2024-08-19 23:06:32Event JSON
{
"id": "09390e6b1c7686e16f4178161d66b0db120215bbfe85c5c47c8e95f059747d07",
"pubkey": "ece51acfc6c84a5f625a755bed921f6eac6a9daa6f90817047901dbe0231522f",
"created_at": 1724108792,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/mistersql/statuses/112991193827016834",
"activitypub"
]
],
"content": "IDEA: python has atexit() but nothing onstartup(). Dotnet has PreApplicationStartMethod() and other events early in the process/app/thread's life cycle.\n\nMaybe if I wrote an app that hosted a single process, like a gunicorn for CLI commands. And then it could have middleware and events to hook into.",
"sig": "81642495d3dd868b5eee18cf119a51f5de6948a2c46a9ac0ace7409b2ad9aaa9d148f2d4c73a48c771bdf9a6d1c2b4875e313dd5860b3297f820aec7a52672f7"
}