Commit Graph

52 Commits

Author SHA1 Message Date
Jakub Stasiak 94e5b175d7 Correct two typos 2020-12-09 19:49:37 +01:00
Jakub Stasiak 7abb04e90b Drop Python 3.5 support, it's EOL now 2020-12-03 19:10:54 +01:00
Jakub Stasiak e912acfdd3
Add a note regarding client code knowing about Injector 2020-09-22 20:15:40 +02:00
Jakub Stasiak 211994f48e Fix some links to avoid redirections 2020-02-05 11:19:43 +01:00
Sanjay Siddhanti 4137c35b7e Fix typos in README (#134) 2020-01-24 00:20:53 +01:00
Jakub Stasiak 3f76909bb5 Polish the documentation a bit, it got stale 2019-10-16 23:50:28 +02:00
Jakub Stasiak 00cbfde845 Remove previously deprecated Key types
They weren't cooperating with static type analysis tools due to their
opaqueness. Let's stick to actual types.
2019-06-16 20:47:00 +02:00
Jakub Stasiak 8d64ad0114
Update README.md 2019-06-15 01:17:55 +02:00
Jakub Stasiak a84d4c84e3
Remove Key references from the readme
Key's been deprecated.
2019-06-15 01:05:42 +02:00
Jakub Stasiak 53dee44872 Readd support for decorating classes with @inject
As a bonus this provides dataclass support.
2019-05-22 10:18:55 +02:00
Jakub Stasiak a38de4a81e
Add Coveralls coverage status badge 2019-04-28 11:31:59 +02:00
Jakub Stasiak 1d8dbb6654 Add a missing word to the readme 2019-04-05 15:58:28 +02:00
Jakub Stasiak 6358f5d304 Drop Python 3.4 support, it's EOL now
See https://devguide.python.org/#status-of-python-branches
2019-04-05 15:57:52 +02:00
Jakub Stasiak e9ce3f7561 Drop support for Python 3.3 (dead since 2017-09-29) 2018-09-19 12:56:23 +02:00
Nikita Sobolev 330095291f Updates README.md with svg badge 2017-11-09 18:03:46 +11:00
Jakub Stasiak cda3c76e2d Stop explicitly inheriting object, not necessary on Python 3 2017-05-26 14:36:39 +02:00
Jakub Stasiak 0b03c36cc3 Drop Python 2 support
Python 2 support is annoying to maintain and prevents us from playing
with cool stuff like type hints.
2017-05-26 14:35:57 +02:00
Jakub Stasiak 6b5d2635ed Replace @provides in the readme with @provider
This is to stop promoting a deprecated decorator, see [1].

[1] 2be8dbac43.
2017-01-23 22:03:51 +01:00
Jakub Stasiak fe2ea68d0a Add link to the change log to the readme 2016-10-18 15:46:46 +02:00
Jakub Stasiak a1a9164539 Introduce new, Python 3-only way to declare things to inject
This pattern makes it more obvious where do we actually expect
parameters to be injected and where do we expect them to be passed the
regular way (Injector(use_annotations=True) nas a semi-global meaning
while @inject still covers only a single function).
2016-10-18 14:40:12 +02:00
Jakub Stasiak 2b14948aa7 Make (Class)AssistedBuilder and ProviderOf generic classes
This doesn't provide much benefit to Injector itself but now
(Class)AssistedBuilder[T] and ProviderOf can be used in type hints[1]
like this:

    class Class:
        def __init__(self, builder: AssistedBuilder[OtherClass]):
            # ...

By being able to do that projects using Injector will gain more static
type safety when tool like mypy is used to lint the code.

Python 2.6 support is dropped because the typing module requires Python
2.7 or newer.

[1] https://docs.python.org/3/library/typing.html
2016-10-18 13:55:48 +02:00
Jakub Stasiak cadb19d4b7 Remove outdated readme section 2016-10-17 16:47:00 +02:00
Vuong Hoang 4679197ca2 Enable Python syntax highlight in README.md 2016-09-08 08:59:52 +07:00
Alec Thomas b52b051621 Merge pull request #36 from vrutsky/patch-3
Fix python block code format specifier
2014-01-09 08:27:41 -08:00
Alec Thomas a715071bd8 Merge pull request #35 from vrutsky/patch-2
Fix typo "Key is used to uniquely identifies"
2014-01-09 08:26:15 -08:00
Vladimir Rutsky 6b2b603e75 Fix python block code format specifier
Use `pycon` instead `python`.  Otherwise "Hello, John!" string highlighted with error.
2014-01-09 18:21:58 +03:00
Vladimir Rutsky 2e8b0e67a2 Fix typo "Key is used to uniquely identifies" 2014-01-09 16:27:07 +03:00
Vladimir Rutsky 44ae8930ff Fix typo "veryify" 2014-01-09 13:02:13 +03:00
Jakub Stasiak ada99ac296 Update README.md 2013-09-25 23:40:23 +01:00
Jakub Stasiak 7acb475414 Move testing information to Sphinx docs 2013-09-21 00:06:49 +01:00
Jakub Stasiak f9c64d42a1 Improve Sphinx documentation 2013-09-19 23:53:24 +01:00
Jakub Stasiak 629a826504 Remove annotations from the API, closes #29 2013-09-18 00:36:24 +01:00
Jakub Stasiak 1e7dc49688 Allow injecting plain functions and generate injecting wrappers 2013-09-17 00:41:51 +01:00
Jakub Stasiak 3a17b07d2e Change this sample to use regular Python block 2013-09-02 01:34:37 +01:00
Jakub Stasiak ee73541329 Fix doctests in readme 2013-09-02 01:19:48 +01:00
Jakub Stasiak ef1f9cba23 Update README.md 2013-09-02 01:06:29 +01:00
Jakub Stasiak 8162456ca2 Tune readme 2013-08-31 00:14:18 +01:00
Jakub Stasiak 2d85abf784 Add PyPI and GitHub links to the readme 2013-08-29 22:38:50 +01:00
Jakub Stasiak 6cfa0abf9d Specify the meaning of AssistedBuilder(SomeInterface) 2013-08-19 22:58:14 +02:00
Jakub Stasiak 73ef125c0b Make AssistedBuilder behaviour more explicit 2013-08-10 18:02:55 +01:00
Alec Thomas 66142afe8c Convert README.md to RST for PyPi. Bump to 0.7.6.
Fixes #26.
2013-08-10 10:52:07 -04:00
Alec Thomas 7c1aa98aea Add support for using Py3 annotations in lieu of @inject. 2013-08-08 23:11:06 -04:00
Jakub Stasiak b406ecc515 Remove unwanted logging configuration 2013-07-16 00:40:06 +01:00
Jakub Stasiak 2a15810c84 Trigger Travis build 2013-06-29 13:47:18 +01:00
Alec Thomas 0ab6104428 Fix tests! 2013-06-27 10:40:21 -04:00
Alec Thomas bf1515783c Don't indent numbered list. 2013-06-27 10:37:42 -04:00
Alec Thomas deef0b8bea Syntax highlight markdown code blocks. 2013-06-27 10:36:08 -04:00
Alec Thomas 76cb00592e Add simple example. 2013-06-27 10:19:25 -04:00
Alec Thomas 201ec769fd Roll back README.md->rst rename. 2012-11-18 23:19:52 -05:00
Alec Thomas 2cd5bb1c6a Fix travis link. 2012-11-16 11:40:54 -05:00