
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
spy-di
Advanced tools
A dependency injection library which is intended to utilize python's type annotations to build the dependency tree. No attempt has been made to optimize it since the only intended usage is right on app start so a slight slowness is acceptable in the majority of cases.
A brief research has shown there is no such library in the whole internet. Other solutions either:
typing.NamedTuple;SPYDI does not require a deep integration into your application. Just design your app following the SOLID principles and SPYDI will handle the binding for you. A brief example could be found here (or refer to tests)
import typing
from spydi.context import DependencyContext
from spydi.factory import DependencyFactory
class Foo(typing.NamedTuple):
a: int
b: int
c: str
def try_create_me(foo: Foo, bar):
return foo.c + bar
ctx = DependencyContext()
ctx.bind(2, to='a')
ctx.bind(3, to='b')
ctx.bind('qwe', to='c')
ctx.bind('rty', to='bar')
factory = DependencyFactory(ctx)
result = factory.create(try_create_me)
assert result == 'qwerty'
This project is licensed under Apache 2.0 License
FAQs
A Simple PYthon Dependency Injection Library
We found that spy-di demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.