没有合适的资源?快使用搜索试试~ 我知道了~
lagom::package:python 3的自动装配依赖项注入容器
共93个文件
py:68个
md:11个
yml:4个
需积分: 10 0 下载量 74 浏览量
2021-02-05
07:07:36
上传
评论
收藏 66KB ZIP 举报
温馨提示
Lagom-依赖注入容器 什么 Lagom是一个依赖项注入容器,旨在为您提供“足够”的帮助来构建依赖项。 目的是使几乎所有代码都不知道或不依赖于lagom。 Lagom仅会在最高层参与,以将一切融合在一起。 产品特点 基于类型的自动接线,零配置。 完全基于类型。 与mypy紧密集成。 对现有代码的最小更改。 与一些常见的Web框架集成。 支持异步python。 运行时线程安全 您可以看到的 安装 pip install lagom # or: # pipenv install lagom # poetry add lagom 用法 拉各姆的一切都基于类型。 要创建对象,请将类型传递
资源推荐
资源详情
资源评论
收起资源包目录
lagom-master.zip (93个子文件)
lagom-master
.readthedocs.yml 252B
pyproject.toml 813B
.scrutinizer.yml 286B
docs
testing_with_lagom.md 2KB
full_example.md 985B
experimental.md 4KB
development_of_lagom.md 1KB
requirements.txt 57B
CHANGELOG.md 15B
index.md 7KB
comparison.md 2KB
cookbook.md 2KB
framework_integrations.md 3KB
Pipfile 465B
.github
workflows
main.yml 492B
mkdocs.yml 805B
tests
integrations
test_flask.py 1KB
test_starlette.py 940B
__init__.py 0B
test_fastapi.py 688B
test_explicit_partial_functions.py 923B
test_abstracts_and_replacements.py 2KB
test_async_definitions_can_be_used.py 863B
test_container_reflection_debug_helpers.py 522B
test_rich_typing.py 1KB
test_optionals_are_well_handled.py 1KB
test_explicit_container.py 3KB
test_magic_partial_async_functions.py 1KB
conftest.py 231B
test_objects.py 2KB
test_dep_definition_functions.py 3KB
experimental
integrations
conftest.py 478B
test_django_integration.py 1KB
__init__.py 0B
test_function_injection.py 614B
__init__.py 0B
test_lambda_loaders.py 850B
test_overwritting.py 1013B
test_injectable_marker.py 89B
test_objects_with_referential_loops.py 314B
test_container_dependency_listing.py 1KB
test_container_cloning.py 1KB
test_magic_partial_functions.py 5KB
__init__.py 0B
test_error_handling.py 3KB
test_partial_functions.py 5KB
examples.py 73B
test_magic_partial_functions_scoped_singletons.py 3KB
test_env_wrapper.py 876B
test_undefinied_dep_logging.py 682B
util
test_functional.py 302B
test_complex_type.py 882B
test_singleton.py 1KB
test_shorter_syntax.py 1KB
test_partial_async_functions.py 1KB
LICENSE 1KB
mypy.ini 112B
setup.cfg 88B
.gitignore 113B
CHANGELOG.md 11KB
Makefile 1021B
README.md 3KB
lagom
integrations
starlette.py 2KB
flask.py 2KB
fast_api.py 998B
__init__.py 84B
py.typed 0B
definitions.py 4KB
debug.py 488B
experimental
integrations
django.py 6KB
__init__.py 97B
definitions.py 436B
__init__.py 100B
decorators.py 3KB
interfaces.py 5KB
__init__.py 665B
container.py 17KB
wrapping.py 2KB
markers.py 469B
util
reflection.py 3KB
__init__.py 50B
logging.py 816B
functional.py 393B
version.py 126B
environment.py 2KB
exceptions.py 3KB
scripts
timing
time_plain.py 538B
__init__.py 0B
time_without_lagom.py 530B
time_optimised.py 694B
time_magic.py 525B
core_domain.py 420B
publish.sh 324B
共 93 条
- 1
资源评论
清净平常心
- 粉丝: 37
- 资源: 4671
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功