misc-tools/README.md

39 lines
1.2 KiB
Markdown
Raw Normal View History

2019-04-02 16:23:39 +00:00
# misc-tools
Various tools for miscellaneous use.
2019-06-18 20:21:03 +00:00
### Python Web Server
2019-04-03 15:12:27 +00:00
I have included a simple Python web server to the toolset. In time, I would like to make it more customizable. For now, it will just print the familiar "Hello, World" message. It was designed to have an application I could use for stack development work.
```bash
2019-04-03 15:12:27 +00:00
$ python-web-server -h
usage: python-web-server [-h] [-i IP_ADDRESS] [-p PORT] [-d DEBUG]
optional arguments:
-h, --help show this help message and exit
-i IP_ADDRESS, --ip-address IP_ADDRESS
IP Address to bind the server
-p PORT, --port PORT Port on which to listen for traffic
-d DEBUG, --debug DEBUG
Run in debug mode
```
2019-06-18 20:21:03 +00:00
### Fake Logs
This small script will generate log files to a filename provided. The delay is 1/*n*-th of a second to give it more of a real-time approach to logging, if timing is important.
```bash
2019-06-18 20:21:03 +00:00
$ fake-logs --help
usage: fake-logs [-h] [-d DELAY] file
positional arguments:
file Full path for log file
optional arguments:
-h, --help show this help message and exit
-d DELAY, --delay DELAY
Number to delay log entries (1/n)
```