-
Hi.
I just noticed that punq doesn't depend on pkg_resources explicitly. The only thing that hints at this is recommended way of installation using pip.
```
(.venv) username:~$ python
Python 3.8.2…
-
If the class wasn't registered manually but exists in the project, can we assume it's a regular registration (non-singleton) when trying to resolve it?
For example:
```python
class MyClass:
…
-
Cluster connections are currently added by uploading a kubeconfig. For some providers, such as AWS, Azure, or GCP, this is not enough. They require additional authentication through service accounts. …
-
I have installed the app and gone through the authentication process... that part seemed to work, didn't report any errors. It seems to have access to my account, as when I do "playlist" it reports my…
-
I was looking at punq's source code, and I noticed that, when multiple classes have the same name, the behavior of `register()` is order-sensitive.
Specifically, if two modules define a helper clas…
-
[This chapter](https://github.com/cosmicpython/book/blob/master/chapter_13_dependency_injection.asciidoc) describes a lot of ways to handle Dependency Injection in Python. (It even mentions `dependenc…
-
In the years since I wrote this lib, as a proof of concept, people have
A) started using it in earnest, much to my surprise
B) adopted type hints as a best practice for Python development
It wo…
-
I played around with `injector` and `Flask-Injector` the last few days, mostly because I came to realize that bigger `Flask` applications can easily become a nightmare when writing tests.
I have to…
-
lets say I have something like this:
```
class Dependency:
pass
class ConsumerOfA:
def __init__(self, dep: Dependency):
self.dep = dep
container.register('depA', Dependen…
-
Given code like (this is an untested example):
```
class A:
pass
class B:
def __init__(a: A, i: int = 0):
pass
container.register(A)
container.register(B)
b = container.…