Commit Graph

48 Commits

Author SHA1 Message Date
Roman Mogylatov
86df7f91f6
531 Provider import from string (#555)
* Implement string imports for Factory, Callable, Singletons, and Resource

* Refactor the implementation

* Add tests

* Update tests to pass on Python 2

* Update typing and add typing tests

* Update changelog

* Update docs
2022-01-30 23:16:55 -05:00
Roman Mogylatov
742e73af1a
Aggregate provider (#544)
* Add implementation and typing stubs

* Add tests

* Add typing tests

* Refactor FactoryAggregate

* Update changelog

* Add Aggregate provider docs and example

* Update cross links between Aggregate, Selector, and FactoryAggregate docs

* Add wording improvements to the docs
2022-01-09 21:45:20 -05:00
Roman Mogylatov
7238482402 Add .providers attribute and .set_providers() method to FactoryAggregate provider 2021-11-26 19:50:19 +03:00
Roman Mogylatov
14d8ed909b
FactoryAggregate - non string keys (#496)
* Improve FactoryAggregate typing stub

* Add implementation, typing stubs, and tests

* Update changelog

* Fix deepcopying

* Add example

* Update docs

* Fix errors formatting for pypy3
2021-08-25 10:20:45 -04:00
Roman Mogylatov
2cab6c687a Add docs and example for `Factory.add_attributes()` method 2021-03-03 16:06:53 -05:00
Roman Mogylatov
a7afa66e40 Add container usage for all factory provider examples 2020-09-03 16:51:12 -04:00
Roman Mogylatov
e4ca126188 Update provider doc page headers 2020-09-02 17:33:02 -04:00
Roman Mogylatov
806bd31735 Bump version to 3.35.1 2020-09-01 21:58:13 -04:00
Roman Mogylatov
0bb30f91ef
Singleton docs update (#288)
* Update docblocks of factory provider examples

* Edit singleton docs
2020-09-01 16:04:48 -04:00
Roman Mogylatov
1ad852d193
Factory provider docs update (#287)
* Update index page

* Update providers index page

* Make a little wording fix on containers index page

* Refactor factory provider docs header

* Update factory injection docs

* Update factory init injections example and picture

* Start work on underlying providers

* Finish the docs for factory arguments to the underlying providers

* Edit providers delegation section

* Edit section about specialized factory provider

* Edit abstract factory section

* Edit FactoryAggregate docs

* Add meta keywords and description
2020-08-31 21:26:21 -04:00
Roman Mogylatov
9b30752da2 Update docs 2020-08-06 16:42:31 -04:00
Roman Mogylatov
6eff213a68
Migrate to alabaster (#264)
* Add bootstrap and remove created at from ghnav-flask app

* Update readme

* Add logo to the docs

* Update key features description

* Update README

* Change headers of API docs

* Add alabaster theme config

* Update docs index

* Add tutorials section

* Update what is DI page

* Update DI in Python page

* Update tutorials index page

* Update provider docs

* Update container docs

* Update examples docs
2020-07-18 00:40:14 -04:00
Bruno P. Kinoshita
910dec38a4
Fix a few typos (#250)
* Fix a few typos

* Spell, grammar checkers on docs
2020-06-13 22:24:32 -04:00
Roman Mogylatov
9a785de4b5
Coroutine provider (#206)
* Add coroutine provider examples

* Add coroutine provier

* Update changelog

* Update static analysis travis jobs to python 3.7

* Update coroutine provider implementation for python 3.4

* Update static analysis travis jobs to python 3.6

* Make pycode style happy

* Add tests for coroutine providers

* Make coroutine tests python 2 syntax friendly

* Split tests to python2 and python3

* Refactor coroutine provider tests

* Modify pypy tests running command

* Update coroutine provider docs
2018-10-18 19:39:19 +03:00
Roman Mogylatov
73e5112938 Update docs on factory delegation 2017-10-13 10:18:40 -07:00
Roman Mogylatov
3364d6f1b9 Add documentation for FactoryAggregate provider 2017-10-12 21:55:29 -07:00
Roman Mogilatov
28c73d13ca Add docs for abstract callable and singleton providers 2017-04-07 01:00:52 +03:00
Roman Mogilatov
144665ef3f Add docs about AbstractFactory provider 2017-04-07 00:47:30 +03:00
Roman Mogilatov
1375e42749 Add disqus comments for provider documents 2017-02-28 22:07:12 +02:00
Roman Mogilatov
7e1ee9b66a Update singleton provider docs 2016-06-08 17:46:40 +03:00
Roman Mogilatov
14ca5651df Update factory provider docs 2016-06-08 16:41:13 +03:00
Roman Mogilatov
9fc1502ae6 Add line numbers for all code samples in the documentation 2016-04-11 10:43:02 +03:00
Roman Mogilatov
319128260a Add DelegatedCallable, DelegatedFactory & DelegatedSingleton providers 2015-12-28 17:25:25 +02:00
Roman Mogilatov
5cc5794f66 Update Factory and Singleton specialization docs 2015-12-15 16:48:13 +02:00
Roman Mogilatov
80a329d480 Add docs about Factory and Singleton provides specialization 2015-12-13 14:22:59 +02:00
Roman Mogilatov
baa1a86cfe Fix module API references in docs 2015-11-29 23:30:48 +02:00
Roman Mogilatov
7eed1cf880 Update Factory provider docs and examples 2015-11-23 21:46:19 +02:00
Roman Mogilatov
cc29d68337 Update Factory docs about positional and keyword arguments 2015-10-19 17:29:00 +03:00
Roman Mogilatov
50a3db6b94 Update Factory provider docs 2015-09-03 00:24:20 +03:00
Roman Mogilatov
2d5ce49254 Update factory attribute injections docs 2015-09-02 23:02:58 +03:00
Roman Mogilatov
479f50fb76 Update Factory method injections docs 2015-09-02 22:59:06 +03:00
Roman Mogilatov
b8a30601df Update Factory providers delegation docs 2015-09-02 22:53:39 +03:00
Roman Mogilatov
f9b4652e74 Update basic factory example and docs 2015-09-02 22:18:13 +03:00
Roman Mogilatov
6d0f892f8a Rename Objects to Dependency Injector 2015-08-31 16:31:38 +03:00
Roman Mogilatov
6d77bd18aa Replacing factory examples in docs with literalincludes 2015-08-03 15:42:44 +03:00
Roman Mogilatov
6d3f212531 Increasing image size in factory init injections documentation 2015-07-28 01:38:14 +03:00
Roman Mogilatov
6d2f10fb7c Updating factory first example image 2015-07-28 01:30:05 +03:00
Roman Mogilatov
0364128ba5 Minor changes for factory delegation docs 2015-07-25 05:33:35 +03:00
Roman Mogilatov
024b148c54 Adding docs for overriding of providers 2015-07-25 04:57:38 +03:00
Roman Mogilatov
244e2bcfb9 Moving images from provider docs to providers/ subdir 2015-07-25 00:51:14 +03:00
Roman Mogilatov
947a0667a6 Changing comments in factory examples 2015-07-25 00:14:45 +03:00
Roman Mogilatov
2690d9b9d4 Adding docs for factories delegation 2015-07-20 18:46:45 +03:00
Roman Mogilatov
db09503426 Adding better scalling for some factory and singleton documentation images 2015-06-26 10:21:23 +03:00
Roman Mogilatov
c05879bada Updating factory provider doc images 2015-06-23 16:21:37 +03:00
Roman Mogilatov
ab548df0b2 Minor Factory and Singleton provider docs update 2015-06-18 16:35:00 +03:00
Roman Mogilatov
7f439137d6 Adding callable provider docs and some minor changes to factory docs 2015-06-16 11:05:12 +03:00
Roman Mogilatov
d386969004 Adding Singleton docs & making some changes for Factory docs 2015-06-10 12:00:43 +03:00
Roman Mogilatov
3123574cf6 Changing provider docs structure 2015-06-10 09:53:15 +03:00