Metadata-Version: 2.1
Name: deps-helper
Version: 0.1.3
Summary: dependencies helper
Home-page: https://github.com/Ja-sonYun/deps_helper
License: MIT
Keywords: dependecy
Author: jasonyun
Author-email: killa30865@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.9
Project-URL: Repository, https://github.com/Ja-sonYun/deps_helper
Description-Content-Type: text/markdown

# dependency helper
Dependency helper for properties of python class

```python
from deps_helper import Dependencies


new_Dep = Dependencies.new("A")

class A(new_Dep):
    #  "_for" can be an array
    @new_Dep.register(_for="first_operation")[int]  # support type hinting, tested in pyright
    def number(self, value):
        return value

    @new_Dep.guard()
    def first_operation(self):
        ...


>>> a = A()
>>> a.first_operation()
Traceback (most recent call last):
...
AttributeError: ("follow attributes are not assigned for first_operation => ", [number])
>>> a.number = 2
>>> a.first_operation()  # OK
>>>
```

