Python Forum
super lightweight (only 35 lines) dependency injection (ioc) support for Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
super lightweight (only 35 lines) dependency injection (ioc) support for Python
#3
(Jan-13-2023, 08:14 AM)Gribouillis Wrote: This looks interesting. I still need to find a concrete example of where to use this in my code but I'll definitely try this one day or the other. Thanks for sharing!

I am glad that you find it useful. It is typically used when your code needs to get a configuration value (db Url, api key, etc.) or in service layer code (i.e., the code that gets called by your UI code to read or/and update the DB).

Let me know if I can be of any help with the code Smile
Reply


Messages In This Thread
RE: super lightweight (only 35 lines) dependency injection (ioc) support for Python - by kenttong - Jan-13-2023, 08:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  D-Pad/No dependency platformer + tilemap michael1789 0 1,423 Jun-27-2020, 08:59 PM
Last Post: michael1789

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020