Class coding project Questionaire
Go to file
Hawai 492a245c34 ENTER pressed / fixed issue 2021-06-07 10:46:09 +02:00
assets adds full 101-500 database 2021-05-24 16:44:18 +02:00
ccpq adds placeholders for issue 5 2021-05-27 21:28:04 +02:00
data Merge branch 'testing' of https://gitea.86thumbs.net/waldek/ccpq into testing 2021-05-24 22:14:08 +02:00
.gitignore removes the venv folder and updates the gitignore 2021-05-24 23:17:54 +02:00
client_tui.py adds placeholders for the server and client 2021-05-23 16:27:05 +02:00
poc_hawai.py ENTER pressed / fixed issue 2021-06-07 10:46:09 +02:00
poc_hugo.py removed cheat mode 2021-06-03 14:50:53 +02:00
poc_standalone.py hello world 2021-05-23 16:04:09 +02:00
readme.md fixes pip3 mistake in doc 2021-05-25 21:35:31 +02:00
requirements.txt adds placeholders for the server and client 2021-05-23 16:27:05 +02:00
server.py adds an idea for the server REST API 2021-05-23 17:11:23 +02:00
standalone_tui.py adds placeholders for issue 5 2021-05-27 21:28:04 +02:00

readme.md

Class coding project - Questionnaire

This project serves as a python3 coding exercise for everybody who feels like participating. The end result should be useful for everyone following the course. The idea is to create a command line program to help us prepare for the LPI certificates. The data for the exercise comes from the data/*.csv files and is currently hard coded. The ./poc_standalone.py is a proof of concept on how the end program should function. It kind of works but there is a lot to fix and improve. The ./standalone_tui.py is a basic MVC implementation we can build on.

Installation

To install and use this package you'll need to install pip. The easiest way to do this in Debian is via apt. Pip can be installed with sudo apt install python3-pip. On windows your mileage may vary. Once this is done, you can install the requirements via the following command, pip install -r requirements.txt, from within the cloned folder.

The full process is as follows:

sudo apt install python3-pip
git clone https://gitea.86thumbs.net/waldek/ccpq.git
cd ccpq
python3 -m pip install --user -r requirements.txt

Development

All development should be done in the testing branch and brought to the master branch with merge requests.

Usage

There are multiple scripts you can run in this repo.

Standalone TUI

This is the standalone_tui.py file. You should run it from a terminal and it requires at lease a path to a CSV file to use as database. Try python3 standalone.py --help for more information.

screenshot