Skip to main content

Kool is an open source platform for online classroom management.

Project description

CircleCI codecov Documentation Status

Kool is an open source platform for online classroom management.

The aim is to create a minimalist framework that educationist can extend when building an online classroom management system.

The current version supports extending class User, Course, and Quiz. The database is a small CSV flatfile implementation.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Installing

  1. Fetch the latest copy of the project from github

git clone https://github.com/edasi/kool.git
  1. Setup a virtual environment

python3 -m venv kool-env

On Windows, run:

kool-env\Scripts\activate.bat

On Unix or MacOS, run:

source kool-env/bin/activate
  1. Install requirements

pip install -U pip
pip install -r requirements.txt

Code Examples

On python interactive shell, start by extending class User to create a Student.

from kool.contrib.auth import User

# Extending class User
class Student(User):
    pass

student = Student(first_name='John', last_name='Doe', email='john@doe.com', password='secretpwd')

student.save()

To insert another student record in an existing table

from kool.db.models import table

# Get Student table to perform CRUD operations
student = table(Student)

student.insert({'first_name': 'Mary', 'last_name': 'Doe', 'email': 'mary@doe.com', 'password': 'secretpwd2'})

To query an existing table

from kool.db.models import where

student.filter(where('last_name') == 'Doe')

To perform complex queries

from kool.db.flatfile import Query

Student = Query()

student.filter((Student.first_name == 'John') | (Student.first_name == 'Mary'))

Tests

Written tests are inside the tests/ directory. They are implemented using the pytest module.

On a terminal, run:

pytest tests/

Test Coverage

Test coverage is covered by coverage and pytest-cov tools. Local test reports are built in html format inside the htmlcov/ directory that is automatically generated when pytest is run. However, online test reports are built by CircleCI

Documentation

Read the latest project documentation at kool-docs

License

Kool is licensed under MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Kool-0.0.2.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Kool-0.0.2-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

Details for the file Kool-0.0.2.tar.gz.

File metadata

  • Download URL: Kool-0.0.2.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Kool-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0c2ad1b128e8d8efdb93cbea6a1677adfcb351692b837be901d778714f1d6510
MD5 c9504ed399251ec192f0ff9b7228bba5
BLAKE2b-256 b9b336b4b9e1e1e6dc670e1568306f6bb34aa9a0e2c7b813d6ef5952aea14723

See more details on using hashes here.

File details

Details for the file Kool-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: Kool-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 33.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Kool-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9e1c7b8ea6fa92ab57a01a47d347bd92a1065a52b13087de9e7a72715c0dda0d
MD5 bc359abebc639d3045e04fc6aedc7d0f
BLAKE2b-256 705419679f5dffcbe49782b220037e9ccbff811f13f2cd38f18b88da28a25e56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page