Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hongbo-miao/ping-ip
https://github.com/hongbo-miao/ping-ip
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hongbo-miao/ping-ip
- Owner: Hongbo-Miao
- Created: 2022-06-23T04:06:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-01T21:22:53.000Z (over 2 years ago)
- Last Synced: 2023-03-04T02:21:38.521Z (over 1 year ago)
- Language: Python
- Size: 25.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ping IP
## Setup
```shell
poetry install
```## Run
### Method 1 (Better)
This method supports retry, skip list. It leverages the power of [RxPY](https://github.com/ReactiveX/RxPY).
You can change the config by updating the `reactive/config.py` file.
The code is in the `reactive` folder.
```shell
poetry run poe run-reactive
```### Method 2
This method does not support retry, skip list.
Since there is no retry, it is not reliable because the only scan can get timeout.
The code is in the `multiprocess` folder.
```shell
poetry run poe run-multiprocess
```## Static Type Check
It uses [Mypy](https://github.com/python/mypy) to static type check the code.
```shell
poetry run poe static-type-check-mypy
```## Lint
It uses [Black](https://github.com/psf/black), [Flake8](https://github.com/PyCQA/flake8), [isort](https://github.com/PyCQA/isort) to lint the code.
```shell
poetry run poe lint-black
poetry run poe lint-black-fix
poetry run poe lint-flake8
poetry run poe lint-isort
poetry run poe lint-isort-fix
```## Test
This includes unit testing and [marble testing](https://rxjs.dev/guide/testing/marble-testing).
```shell
poetry run poe test
```