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

18 lines
462 B
ReStructuredText
Raw Permalink Normal View History

Object provider
2020-09-03 00:33:02 +03:00
===============
2016-06-09 17:49:09 +03: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 17:49:09 +03:00
.. currentmodule:: dependency_injector.providers
2016-06-09 17:49:09 +03:00
:py:class:`Object` provider returns an object "as is".
2016-06-09 17:49:09 +03:00
.. literalinclude:: ../../examples/providers/object.py
:language: python
:lines: 3-
.. disqus::