2020-10-03 22:27:01 +02:00
|
|
|
# Contributing
|
|
|
|
|
|
|
|
|
|
You want to improve this project?
|
|
|
|
|
Awesome! But before you write or modify the existing source code, please note the following guideline:
|
|
|
|
|
|
|
|
|
|
- Always make sure to add your changes to the wiki.
|
|
|
|
|
- 8-space indentation without tabs.
|
|
|
|
|
- Docstrings as this:
|
|
|
|
|
```python
|
|
|
|
|
""" This is single line docstring. """
|
|
|
|
|
""" This is a
|
|
|
|
|
""" multiline comment.
|
|
|
|
|
```
|
|
|
|
|
- Wrap lines only if really long (it does not matter 79 chars return)
|
|
|
|
|
- For the rest a bit as it comes with a look at [PEP8](https://www.python.org/dev/peps/pep-0008/) :)
|
2025-12-06 20:51:49 +01:00
|
|
|
|
|
|
|
|
Test your changes, please. For example, run the server via:
|
|
|
|
|
```bash
|
|
|
|
|
python3 pykms_Server.py -F STDOUT -s ./pykms_database.db
|
|
|
|
|
```
|
|
|
|
|
Then trigger (multiple) client requests and check the output for errors via:
|
|
|
|
|
```bash
|
2025-12-06 20:57:19 +01:00
|
|
|
python3 pykms_Client.py -F STDOUT # fresh client
|
|
|
|
|
python3 pykms_Client.py -F STDOUT -c 174f5409-0624-4ce3-b209-adde1091956b # (maybe) existing client
|
|
|
|
|
python3 pykms_Client.py -F STDOUT -c 174f5409-0624-4ce3-b209-adde1091956b # now-for-sure existing client
|
2025-12-06 20:51:49 +01:00
|
|
|
```
|