-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add debug condition * Add pyproject.toml * Try pypi user * Add build module to dev image * Add twin to dev image * Change package name * Use twine in publish script * Prepare first tag release
- Loading branch information
Showing
7 changed files
with
44 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,8 @@ | |
|
||
# python local artifacts | ||
*/__pycache__/* | ||
*/*.egg-info/* | ||
/dist/ | ||
|
||
# local env artifacts | ||
/.env | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,21 @@ | ||
# python-di | ||
# fe-python-di | ||
|
||
Simple python dependency injection implementation. | ||
|
||
```bash | ||
pip install fe-python-di | ||
``` | ||
|
||
```python | ||
from di import DI | ||
|
||
di = DI() | ||
|
||
# set preconfigured component to container | ||
di[InjectedService] = InjectedService() | ||
|
||
# get instance by type name | ||
some_service: SomeYourComponentName = di.get(SomeYourComponentName) | ||
``` | ||
|
||
Simple python dependency injection implementation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[project] | ||
name = "fe-python-di" | ||
description = "Simple python dependency injection" | ||
version = "0.1.1" | ||
authors = [ | ||
{ name = "samizdam", email = "samizdam@inbox.ru" } | ||
] |