2020-09-02 01:39:23 +00:00
|
|
|
Object provider
|
2020-09-02 21:33:02 +00:00
|
|
|
===============
|
2016-06-09 14:49:09 +00:00
|
|
|
|
2020-09-02 01:39:23 +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
|
|
|
|
2020-09-02 01:39:23 +00:00
|
|
|
.. currentmodule:: dependency_injector.providers
|
2016-06-09 14:49:09 +00:00
|
|
|
|
2020-09-02 01:39:23 +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
|
2020-09-02 01:39:23 +00:00
|
|
|
:lines: 3-
|
2017-02-28 20:07:12 +00:00
|
|
|
|
|
|
|
.. disqus::
|