lagom
๐ฆ Autowiring dependency injection container for python 3
ํ์ผ ํ์๊ธฐ
์ต์ข ๋ฒ์ ๋ค์ด๋ก๋ (.zip)- 0001_baseline.json
- 0001_baseline.json
- 0001_baseline.json
- benchmark.yml
- build-wheels.yml
- codeql-analysis.yml
- main.yml
- dependabot.yml
- favicon.png
- logo_and_text.png
- CHANGELOG.md
- clean_up.md
- comparison.md
- CONTRIBUTING.md
- cookbook.md
- CREDITS_AND_THANKS.md
- exceptions.md
- experimental.md
- explicit_definitions.md
- framework_integrations.md
- full_example.md
- index.md
- next_steps.md
- requirements.txt
- testing_with_lagom.md
- __init__.py
- click.py
- django.py
- flask.py
- __init__.py
- context_based.py
- definitions.py
- __init__.py
- fast_api.py
- flask.py
- starlette.py
- __init__.py
- functional.py
- logging.py
- reflection.py
- __init__.py
- compilaton.py
- container.py
- context_based.py
- debug.py
- decorators.py
- definitions.py
- environment.py
- exceptions.py
- functools.py
- injection_context.py
- interfaces.py
- markers.py
- py.typed
- updaters.py
- version.py
- wrapping.py
- publish.sh
- __init__.py
- core_domain.py
- test_basic_benchmarks.py
- resources_for_189.py
- test_159_alias_to_self_recursion_error.py
- test_189_lagom_functions_should_be_mockable.py
- test_alias_to_constructor_skipped.py
- __init__.py
- conftest.py
- test_click_integration.py
- test_django_integration.py
- __init__.py
- test_async_context_based_executions.py
- test_function_injection.py
- __init__.py
- test_bug_254.py
- __init__.py
- __init__.py
- __init__.py
- test_fastapi.py
- test_flask.py
- test_starlette.py
- test_functional.py
- test_reflection.py
- __init__.py
- conftest.py
- examples.py
- test_abstracts_and_replacements.py
- test_async_definitions_can_be_used.py
- test_complex_type.py
- test_container_clone_layering.py
- test_container_cloning.py
- test_container_dependency_listing.py
- test_container_updaters.py
- test_context_based_executions.py
- test_decorators.py
- test_defaults_are_used_if_needed.py
- test_dep_definition_functions.py
- test_env_wrapper.py
- test_error_handling.py
- test_explicit_container.py
- test_explicit_partial_functions.py
- test_function_collections.py
- test_injectable_marker.py
- test_lambda_loaders.py
- test_magic_partial_async_functions.py
- test_magic_partial_classes.py
- test_magic_partial_functions.py
- test_magic_partial_functions_scoped_singletons.py
- test_objects.py
- test_objects_with_referential_loops.py
- test_optionals_are_well_handled.py
- test_overwritting.py
- test_partial_async_functions.py
- test_partial_classes.py
- test_partial_functions.py
- test_rich_typing.py
- test_shorter_syntax.py
- test_singleton.py
- test_temporary_singletons.py
- test_the_containers_can_be_extended.py
- test_undefinied_dep_logging.py
- .gitignore
- .pycrunch-config.yaml
- .readthedocs.yml
- .scrutinizer.yml
- CHANGELOG.md
- CLAUDE.md
- CONTRIBUTING.md
- CREDITS_AND_THANKS.md
- LICENSE
- Makefile
- MANIFEST.in
- mkdocs.yml
- mypy.ini
- Pipfile
- pyproject.toml
- pytest.ini
- README.md
- setup.cfg
- setup.py
# ์ค์น ๊ฐ์ด๋
1. ์ฝ๋ ๋ด๋ ค๋ฐ๊ธฐ
git clone https://github.com/meadsteve/lagom
๊นํ๋ธ์์ ํ๋ก์ ํธ ์ฝ๋ ์ ์ฒด๋ฅผ ๋ด ์ปดํจํฐ๋ก ๋ด๋ ค๋ฐ์ต๋๋ค.
cd lagom
๋ฐฉ๊ธ ๋ด๋ ค๋ฐ์ ํ๋ก์ ํธ ํด๋ ์์ผ๋ก ์ด๋ํฉ๋๋ค.
2. ๊ณต์ ์ค์น ์คํฌ๋ฆฝํธ
์ฌ์ ์ถ์ฒ์ฌ์ ์ค๋น๋ฌผ
- Python 3 pip ๋ช ๋ น์ด๋ฅผ ์ฐ๋ ค๋ฉด Python์ด ํ์ํฉ๋๋ค.
pip install lagom
PyPI์ ๋ฐฐํฌ๋ ํจํค์ง๋ฅผ ๋ฐ๋ก ์ค์นํฉ๋๋ค. ์์ค ํด๋ก ์ด ํ์ ์์ต๋๋ค.
์ค์น ํ ์ ํฐ๋ฏธ๋์ ์ด๊ณ , ํ๋ก๊ทธ๋จ์ ๋ฒ์ ํ์ธ ๋ช
๋ น(์: --version)์ผ๋ก ์ ์ ์ค์น๋๋์ง ํ์ธํ์ธ์.
์ด ๋ ํฌ์ README์ ์ ํ ์ค์ ๋ช ๋ น์ด๋ฅผ ๊ทธ๋๋ก ๊ฐ์ ธ์์ต๋๋ค.
3. Python
์ฌ์์ฌ์ ์ค๋น๋ฌผ
pip install lagom
PyPI์ ๋ฐฐํฌ๋ ํจํค์ง๋ฅผ ๋ฐ๋ก ์ค์นํฉ๋๋ค. ์์ค ํด๋ก ์ด ํ์ ์์ต๋๋ค.
์๋ฌ ๋ฉ์์ง ์์ด ์คํ๋๊ณ ํฐ๋ฏธ๋์ ์๋ด ๋ฌธ๊ตฌ๊ฐ ์ถ๋ ฅ๋๋ฉด ์ ์์
๋๋ค.
์ด ๋ ํฌ์ README์ ์ ํ ์ค์ ๋ช ๋ น์ด๋ฅผ ๊ทธ๋๋ก ๊ฐ์ ธ์์ต๋๋ค.
4. Make
๋ณดํต์ฌ์ ์ค๋น๋ฌผ
- Git GitHub์์ ํ๋ก์ ํธ ์ฝ๋๋ฅผ ๋ด๋ ค๋ฐ์ผ๋ ค๋ฉด ํ์ํฉ๋๋ค.
- Make Linux/macOS๋ ๋ณดํต ๊ธฐ๋ณธ ์ค์น๋์ด ์์ต๋๋ค. Windows๋ ๋ณ๋ ์ค์น(์: MSYS2, WSL)๊ฐ ํ์ํฉ๋๋ค.
make
์์ฑ๋ ๋น๋ ์ค์ ์ ๋ฐํ์ผ๋ก ์ค์ ์ปดํ์ผ์ ์งํํด ์คํ ํ์ผ์ ๋ง๋ญ๋๋ค.
์๋ฌ ์์ด ๋๋๋ฉด ์ฑ๊ณต์
๋๋ค. ์์ฑ๋ ์คํ ํ์ผ์ ์ง์ ์คํํด๋ณด์ธ์.
// repository documentation
Was this content helpful?
(0 ratings)
