Skip to content

Commit cbb7cce

Browse files
committed
TR updates and step folders
1 parent 1da59cb commit cbb7cce

File tree

36 files changed

+632
-2
lines changed

36 files changed

+632
-2
lines changed

python-site-connectivity-checker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $ source venv/bin/activate
1515
2. Install the requirements
1616

1717
```
18-
(venv) $ pip install -r requirements.txt
18+
(venv) $ python -m pip install -r requirements.txt
1919
```
2020

2121
## Run the Project
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
python.org
2+
pypi.org
3+
docs.python.org
4+
peps.python.org
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# RP Checker
2+
3+
RP Checker is a site connectivity checker utility. It takes one or more website URLs and checks if those sites are online. It can perform the connectivity checks either synchronously or asynchronously.
4+
5+
## Installation
6+
7+
1. Create a Python virtual environment
8+
9+
```sh
10+
$ python -m venv ./venv
11+
$ source venv/bin/activate
12+
(venv) $
13+
```
14+
15+
2. Install the requirements
16+
17+
```
18+
(venv) $ python -m pip install -r requirements.txt
19+
```
20+
21+
## Run the Project
22+
23+
```sh
24+
(venv) $ python -m rpchecker -u python.org
25+
The status of "python.org" is: "Online!" 👍
26+
```
27+
28+
## Features
29+
30+
RP Checker provides the following options:
31+
32+
- `-u` or `--urls` take one or more URLs and check if they're online.
33+
- `-f` or `--input-file` take a file containing a list of URLs to check.
34+
- `-a` or `--asynchronous` run the check asynchronously.
35+
36+
## About the Author
37+
38+
Leodanis Pozo Ramos - Email: [email protected]
39+
40+
## License
41+
42+
Distributed under the MIT license. See `LICENSE` in the root directory of this `materials` repo for more information.

python-site-connectivity-checker/source_code_final/rpchecker/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
def read_user_cli_args():
77
"""Handle the CLI arguments and options"""
88
parser = argparse.ArgumentParser(
9-
prog="rpchecker", description="check the availability of web sites"
9+
prog="rpchecker", description="check the availability of websites"
1010
)
1111
parser.add_argument(
1212
"-u",
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# RP Checker
2+
3+
RP Checker is a site connectivity checker utility. It takes one or more website URLs and checks if those sites are online. It can perform the connectivity checks either synchronously or asynchronously.
4+
5+
## Installation
6+
7+
1. Create a Python virtual environment
8+
9+
```sh
10+
$ python -m venv ./venv
11+
$ source venv/bin/activate
12+
(venv) $
13+
```
14+
15+
2. Install the requirements
16+
17+
```
18+
(venv) $ python -m pip install -r requirements.txt
19+
```
20+
21+
## Run the Project
22+
23+
```sh
24+
(venv) $ python -m rpchecker -u python.org
25+
The status of "python.org" is: "Online!" 👍
26+
```
27+
28+
## Features
29+
30+
RP Checker provides the following options:
31+
32+
- `-u` or `--urls` take one or more URLs and check if they're online.
33+
- `-f` or `--input-file` take a file containing a list of URLs to check.
34+
- `-a` or `--asynchronous` run the check asynchronously.
35+
36+
## About the Author
37+
38+
Leodanis Pozo Ramos - Email: [email protected]
39+
40+
## License
41+
42+
Distributed under the MIT license. See `LICENSE` in the root directory of this `materials` repo for more information.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
aiohttp==3.7.4.post0

python-site-connectivity-checker/source_code_step_1/rpchecker/__init__.py

Whitespace-only changes.

python-site-connectivity-checker/source_code_step_1/rpchecker/__main__.py

Whitespace-only changes.

python-site-connectivity-checker/source_code_step_1/rpchecker/checker.py

Whitespace-only changes.

python-site-connectivity-checker/source_code_step_1/rpchecker/cli.py

Whitespace-only changes.

0 commit comments

Comments
 (0)