tomodachi
💻 Microservice lib designed to ease service building using Python and asyncio, with ready to use support for HTTP + WS, AWS SNS+SQS, RabbitMQ / AMQP, middlewares, envelopes, logging, lifecycles. Extend to GraphQL, protobuf, etc.
파일 탐색기
최종 버전 다운로드 (.zip)- codeql-config.yml
- codeql-analysis.yml
- pythonpackage.yml
- dependabot.yml
- FUNDING.yml
- microservice-in-30-seconds-white.gif
- microservice-in-30-seconds.gif
- tomodachi-in-docker.png
- tomodachi-logger.png
- tomodachi-run-service.png
- tomodachi-usage.png
- index.html
- websocket_service.py
- amqp_middleware_service.py
- amqp_service.py
- aws_sns_sqs_fifo_service.py
- aws_sns_sqs_middleware_service.py
- aws_sns_sqs_service.py
- aws_sns_sqs_service_localstack.py
- http_auth_service.py
- http_basic_auth_middleware.py
- http_middleware_service.py
- http_simple_service.py
- scheduler_example.py
- http_port.json
- watcher.json
- service.py
- docker_build.sh
- docker_run.sh
- docker-compose.yml
- Dockerfile
- README.md
- service_a.py
- service_b.py
- service_send_message.py
- config_file.json
- invalid_config_file.json
- __init__.py
- message_pb2.py
- message_pb2.pyi
- __init__.py
- code.py
- os.py
- __init__.py
- import_file.py
- code.py
- service.py
- test.py
- code.py
- test-copy.py
- test.py
- amqp_service_invalid_credentials.py
- amqp_service_with_credentials.py
- amqp_service_with_credentials_with_custom_envelope.py
- amqp_service_with_credentials_without_envelope.py
- auto_closing_service_exit_call.py
- auto_closing_service_exit_code_1.py
- auto_closing_service_exit_code_128.py
- auto_closing_service_sigint.py
- auto_closing_service_sigterm.py
- aws_sns_sqs_service_dead_letter_queue.py
- aws_sns_sqs_service_invalid_credentials.py
- aws_sns_sqs_service_with_credentials.py
- aws_sns_sqs_service_with_credentials_with_custom_envelope.py
- aws_sns_sqs_service_with_credentials_with_encryption_at_rest.py
- aws_sns_sqs_service_with_credentials_without_envelope.py
- aws_sns_sqs_service_with_middleware.py
- aws_sns_sqs_service_with_middleware_sqs_send_message.py
- decorated_functions_service.py
- dummy_protobuf_service.py
- dummy_service.py
- empty_service.py
- exception_service.py
- exception_service_init.py
- http_access_log_service.py
- http_service.py
- http_service_same_port.py
- import_error_service.py
- invalid_service.py
- logging_service.py
- mock_decorator_service.py
- non_decorated_service.py
- opentelemetry_no_sampling_service.py
- opentelemetry_service.py
- relative_service.py
- schedule_service.py
- start_process_service_http_0.py
- start_process_service_http_1.py
- start_process_service_http_2.py
- start_process_service_schedule.py
- syntax_error_service.py
- wrapped_invoker_function_service.py
- image.png
- file.py
- file.py
- .gitignore
- file.py
- conftest.py
- run_example_service.py
- run_test_service_helper.py
- test_amqp_service_invalid_credentials.py
- test_amqp_service_with_credentials.py
- test_amqp_transport.py
- test_aws_credentials.py
- test_aws_sns_sqs_service_dead_letter_queue.py
- test_aws_sns_sqs_service_with_credentials.py
- test_aws_sns_sqs_service_with_credentials_with_custom_envelope.py
- test_aws_sns_sqs_service_with_credentials_with_encryption_at_rest.py
- test_aws_sns_sqs_service_with_credentials_without_envelope.py
- test_aws_sns_sqs_service_with_middleware.py
- test_aws_sns_sqs_service_with_middleware_sqs_send_message.py
- test_aws_sns_sqs_service_without_credentials.py
- test_aws_sns_sqs_transport.py
- test_banner.py
- test_build_time_output.py
- test_cli.py
- test_configs.py
- test_crontab_parser.py
- test_decorated_functions_service.py
- test_dummy_service.py
- test_empty_service.py
- test_envelope.py
- test_exception_service.py
- test_http_service.py
- test_invalid_services.py
- test_logging.py
- test_logging_internals.py
- test_message_attributes_parsing.py
- test_meta_imports.py
- test_mock_decorator.py
- test_non_packaged_imported_service.py
- test_opentelemetry_distro_configurator.py
- test_opentelemetry_no_sampling_service.py
- test_opentelemetry_service.py
- test_options.py
- test_relative_imports.py
- test_schedule_service.py
- test_start_2_process_http_0.py
- test_start_process_http_1.py
- test_start_process_http_2.py
- test_start_process_schedule.py
- test_validation.py
- test_version.py
- test_watcher.py
- test_wrapped_invoker_function.py
- type_hinting_validation.py
- __init__.py
- __init__.py
- __init__.pyi
- aws_sns_registration.py
- dummy_registry.py
- __init__.py
- sns_sqs_message_pb2.py
- sns_sqs_message_pb2.pyi
- __init__.py
- sns_sqs_message.proto
- __init__.py
- __init__.pyi
- json_base.py
- protobuf_base.py
- __init__.py
- aiobotocore_connector.py
- aws_credentials.py
- banner.py
- build_time.py
- colors.py
- crontab.py
- dict.py
- execution_context.py
- logging.py
- middleware.py
- safe_modules.py
- __init__.py
- base.py
- decorator.py
- __init__.py
- auto_instrumentation.py
- distro.py
- environment_variables.py
- exemplars.py
- instrumentation.py
- logging.py
- middleware.py
- prometheus.py
- __init__.py
- definitions.py
- interface.py
- __init__.py
- __init__.pyi
- json_base.py
- protobuf_base.py
- __main__.py
- __init__.py
- __init__.pyi
- amqp.py
- aws_sns_sqs.py
- awssnssqs.py
- awssnssqs.pyi
- http.py
- schedule.py
- __init__.py
- validation.py
- __init__.py
- __init__.pyi
- __main__.py
- __version__.py
- _exception.py
- _importer.py
- config.py
- container.py
- importer.py
- launcher.py
- logging.py
- py.typed
- watcher.py
- .codecov.yml
- .gitignore
- CHANGELOG.md
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- LICENSE
- Makefile
- poetry.lock
- pyproject.toml
- README.md
- SECURITY.md
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/kalaspuff/tomodachi
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd tomodachi
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Python
쉬움 추천사전 준비물
local ~$ pip install tomodachi
requirements.txt 등에 명시된 파이썬 라이브러리를 설치합니다.
local ~/code/service$ python -m tomodachi.run service.py
파이썬 스크립트(또는 모듈)를 실행합니다.
RUN pip install tomodachi
requirements.txt 등에 명시된 파이썬 라이브러리를 설치합니다.
local ~$ pip install tomodachi[opentelemetry]
requirements.txt 등에 명시된 파이썬 라이브러리를 설치합니다.
local ~$ pip install tomodachi[opentelemetry,opentelemetry-exporter-prometheus]
requirements.txt 등에 명시된 파이썬 라이브러리를 설치합니다.
에러 메시지 없이 실행되고 터미널에 안내 문구가 출력되면 정상입니다.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
3. Make
보통사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Make Linux/macOS는 보통 기본 설치되어 있습니다. Windows는 별도 설치(예: MSYS2, WSL)가 필요합니다.
make
생성된 빌드 설정을 바탕으로 실제 컴파일을 진행해 실행 파일을 만듭니다.
에러 없이 끝나면 성공입니다. 생성된 실행 파일을 직접 실행해보세요.
// repository documentation
Was this content helpful?
(0 ratings)
