Skip to main content

OSU Course Analytics

Project description

OSU Course Analytics (Osuca)

Analyze student review responses for courses in the Computer Science (CS) program of Oregon State University (OSU)

Description

This program allows analyzing the online survey of course reviews from the CS students in OSU. It helps students answer questions such as:

  • Does course difficulty vary from term to term?
  • Does course difficulty increase if I take other courses in the same quarter?
  • Which course combinations are most difficult taken together?

It also exposes several services for client programs to query course analytics in JSON format. See Communication Contract for further details.

Getting Started

Dependencies

Osuca requires Python 3.7 and newer. It can run on any operating system with Python.

Installing

Create a virtual environment and activate it.

macOS/Linux
$ mkdir osuca
$ cd osuca
$ python3 -m venv venv
$ . venv/bin/activate
Windows
> mkdir myproject
> cd myproject
> py -3 -m venv venv
> venv\Scripts\activate

Install Osuca and dependencies from PyPI

(venv) pip install osuca

Executing program

Set environment variables

macOS/Linux
$ export FLASK_APP=osuca
$ export OSUCA_DATA_SOURCE='https://docs.google.com/spreadsheets/d/1MFBGJbOXVjtThgj5b6K0rv9xdsC1M2GQ0pJVB-8YCeU/export?format=csv'
Windows
> $env:FLASK_APP = "osuca"
> $env:OSUCA_DATA_SOURCE = "https://docs.google.com/spreadsheets/d/1MFBGJbOXVjtThgj5b6K0rv9xdsC1M2GQ0pJVB-8YCeU/export?format=csv"

Run Osuca

flask run

View output in your browser at http://localhost:5000

Communication Contract

Osuca returns JSON objects for the following valid HTTP GET requests:

  • /courses
  • /course-year-aggregates
  • /course-quarter-aggregates

For example, $curl http://localhost:5000/courses will return a JSON list of course objects to the clients.

UML Sequence Diagram

As shown in the diagram, Osuca requests a CSV document that resides in Google documents containing the scraped student responses. Then it serves the contents of this document in JSON form to clients.

alt text

Service Details

The following shows example responses to the requests.

/courses

[
  {
    "subject": "CS",
    "id": "419",
    "name": "Capstone"
  },
  {
    "subject": "CS",
    "id": "325",
    "name": "Analysis of Algorithms"
  }, …
]

/course-year-aggregates

 [
  {
    "course": {
      "subject": "CS",
      "id": "261",
      "name": "Data Structures"
    },
    "year": "2018",
    "aggregate": {
      "count": 11,
      "sum": 31,
      "mean": 2.81
    }
  }, …
 ]

/course-quarter-aggregates

[
  {
    "course": {
      "subject": "CS",
      "id": "290",
      "name": "Web Development"
    },
    "quarter": {
      "term": "Spring",
      "year": "2022"
    },
    "aggregate": {
      "count": 6,
      "sum": 15,
      "mean": 2.5
    }
  }, …
]

Authors

Tolga Ozbakan | tolga@ozbakan.com

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

Inspiration, code snippets, etc.

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

osuca-2.2.1.tar.gz (507.9 kB view details)

Uploaded Source

Built Distribution

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

osuca-2.2.1-py3-none-any.whl (494.1 kB view details)

Uploaded Python 3

File details

Details for the file osuca-2.2.1.tar.gz.

File metadata

  • Download URL: osuca-2.2.1.tar.gz
  • Upload date:
  • Size: 507.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for osuca-2.2.1.tar.gz
Algorithm Hash digest
SHA256 92135819b6e834ec3a7cc878c224c8fb3b3d6117677c768b6396c818d13ccf22
MD5 8151c307c1804a15ed9dbf508504daac
BLAKE2b-256 e40d1b289e2ddf1195a8ef719ebea24ea38a4a7c9ffb6f09d27dfe3f535b68b3

See more details on using hashes here.

File details

Details for the file osuca-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: osuca-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 494.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for osuca-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 52a3e58292d099498d0103dd128beee1d5cf6f1c0e86197f97428e201afb5ac6
MD5 b04c3b3c70031436d2239a5b597db37c
BLAKE2b-256 3cd473586d331585f8accc69e9c466a7c4f8980d1f2f56862c2c4a6661845a22

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