tinyioc
Quick search

welcome to tinyioc's documentation!

  • Usage
  • Reference
  • Docs »
  • Welcome to tinyioc’s documentation!
  • Usage →

Welcome to tinyioc’s documentation!¶

tinyioc is a lightweight python library for dependency injection. It supports multiple paradigms and heavily encourages the use of decorators for syntax economy

  • Usage
    • Getting started
    • Description
    • Injection
    • Registration
    • Modules
    • Dependency injection
      • Transform a getter function into an injected property
      • Injection into injected services
      • Modules
      • Function injection
    • Interfaces
    • Example
      • Decorators
      • Declarative
  • Reference
    • Injection decorators
      • inject()
      • injectable()
    • Injection helper methods
      • get_service()
      • register_instance()
      • register_singleton()
      • register_transient()
      • unregister_service()
    • Modules
      • FromModule
      • IocModule
        • IocModule.provides
        • IocModule.services
      • module()
    • Module providers
      • ProvideInstance
        • ProvideInstance.entry
        • ProvideInstance.kwargs
        • ProvideInstance.provide_for
      • ProvideSingleton
        • ProvideSingleton.entry
        • ProvideSingleton.kwargs
        • ProvideSingleton.provide_for
      • ProvideTransient
        • ProvideTransient.entry
        • ProvideTransient.kwargs
        • ProvideTransient.provide_for
    • Service lifetime
      • ServiceLifetime
        • ServiceLifetime.SINGLETON
        • ServiceLifetime.TRANSIENT
  • Usage →
© Copyright .
Created using Sphinx 6.1.3 with Press Theme 0.8.0.