https://github.com/hofiorg/python-scripts
A collection of small Python scripts including: check_urls.py, filter_lambda.py, hello_world.py
https://github.com/hofiorg/python-scripts
python python-script
Last synced: 9 months ago
JSON representation
A collection of small Python scripts including: check_urls.py, filter_lambda.py, hello_world.py
- Host: GitHub
- URL: https://github.com/hofiorg/python-scripts
- Owner: hofiorg
- License: mit
- Created: 2024-03-09T13:38:16.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-23T16:25:10.000Z (9 months ago)
- Last Synced: 2025-06-23T16:25:32.959Z (9 months ago)
- Topics: python, python-script
- Language: Python
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python Scripts
[](https://www.python.org/)
[](LICENSE)
[](https://github.com/hofiorg/python-scripts/actions/workflows/pylint.yml)
A collection of small Python scripts including:
- [check_urls.py](./scripts/check_urls.py)
- [filter_lambda.py](./scripts/filter_lambda.py)
- [hello_world.py](./scripts/hello_world.py)
## ๐ฅ Installation
### Mac with Pyenv
See [this guide on StackOverflow](https://stackoverflow.com/a/71657414)
### Install modules with pip
```sh
pip install .
```
## ๐งน Lint
```sh
pylint $(git ls-files '*.py')
```
## ๐งช Test
```sh
pytest tests --junitxml=junit/test-results.xml --html=junit/test-results.html
```
## ๐ ๏ธ Build
```sh
python -m build
```
## ๐งพ Scripts
### check_urls.py
This script checks URLs defined in a JSON file. For each URL, it verifies if the response
contains a specific string and prints the result using emojis to indicate success or failure.
#### Usage check_url
```sh
scripts/check_urls.py data/urls.json
```
### filter_lambda.py
lambda function within filter to select fruits starting with "A" from a list
#### Usage filter_lambda
```sh
scripts/filter_lambda.py
```
### hello_world.py
simple hello world
#### Usage hello_world
```sh
scripts/hello_world.py
```
## ๐ Related Links
| Tool / Topic | Link |
|--------------|-----------------------------------|
| Pyenv | |
| Build module | |
| Pytest | |
| Pylint | |