3 Commits

Author SHA1 Message Date
cb5762720f docs: update readme; fix typo 2023-07-23 00:13:17 +08:00
920e204756 docs: update readme 2023-07-21 17:50:41 +08:00
9ac4a39c0d fix: chassis-agent config missed in MANIFEST.in 2023-07-21 16:57:00 +08:00
5 changed files with 19 additions and 8 deletions

View File

@@ -1,3 +1,4 @@
include *.py *.md include *.py *.md
recursive-include namekoplus/chassis *.py recursive-include namekoplus/chassis *.py
recursive-include namekoplus/templates *.py *.yml recursive-include namekoplus/templates *.py *.yml
recursive-include namekoplus/chassis-agent *.py *.yml

View File

@@ -2,10 +2,6 @@
A lightweight Python distributed microservice solution A lightweight Python distributed microservice solution
## Document
[中文文档](https://doc.bearcatlog.com/)
## Command Line Tool Usage ## Command Line Tool Usage
### Checkout Command ### Checkout Command
@@ -14,8 +10,22 @@ A lightweight Python distributed microservice solution
namekoplus --help namekoplus --help
``` ```
### Start a middleware that nameko depends on
```shell
namekoplus start -m rabbitmq
```
### Initialize a nameko service from templates ### Initialize a nameko service from templates
```shell ```shell
namekoplus init --directory <dir_name> --type <template_type> namekoplus init --directory <dir_name> --type <template_type>
``` ```
## Detailed Usage
See Documents:
- [中文](https://doc.bearcatlog.com/)
- [English](https://legendary-sopapillas-e2626d.netlify.app/)

View File

View File

@@ -141,7 +141,7 @@ def stop(middleware):
docker_compose_file_dir = os.path.join(get_agent_directory(), middleware) docker_compose_file_dir = os.path.join(get_agent_directory(), middleware)
for file_ in os.listdir(docker_compose_file_dir): for file_ in os.listdir(docker_compose_file_dir):
compose_file_path = os.path.join(docker_compose_file_dir, file_) compose_file_path = os.path.join(docker_compose_file_dir, file_)
with status(f'Stoping {middleware}'): with status(f'Stopping {middleware}'):
docker = DockerClient(compose_files=[compose_file_path]) docker = DockerClient(compose_files=[compose_file_path])
docker.compose.down() docker.compose.down()

View File

@@ -9,7 +9,7 @@ with open(path.join(here, 'README.md'), encoding='utf-8') as f:
setup( setup(
name='namekoplus', name='namekoplus',
version='0.2.1', version='0.2.4',
description='A lightweight Python distributed microservice solution', description='A lightweight Python distributed microservice solution',
long_description=long_description, long_description=long_description,
long_description_content_type='text/markdown', long_description_content_type='text/markdown',
@@ -33,7 +33,7 @@ setup(
'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Software Development :: Libraries :: Python Modules',
], ],
platforms='any', platforms='any',
python_requires='>=3', python_requires='>=3.8, <4',
keywords='lightweight python distributed microservice solution', keywords='lightweight python distributed microservice solution',