python-dependency-injector/docs/providers/object.rst

18 lines
462 B
ReStructuredText
Raw Permalink Normal View History

Object provider
2020-09-02 21:33:02 +00:00
===============
2016-06-09 14:49:09 +00:00
.. meta::
:keywords: Python,DI,Dependency injection,IoC,Inversion of Control,Object
:description: Object provider provides an object "as is". This page demonstrates how to use an
Object provider.
2016-06-09 14:49:09 +00:00
.. currentmodule:: dependency_injector.providers
2016-06-09 14:49:09 +00:00
:py:class:`Object` provider returns an object "as is".
2016-06-09 14:49:09 +00:00
.. literalinclude:: ../../examples/providers/object.py
:language: python
:lines: 3-
.. disqus::