Skip to main content

An unofficial Python wrapper for interfacing with Q Portal

Project description

QPortalWrapper: an unofficial Python wrapper around the Q Portal for grades.

This library provides programmatic access to grades on the Q Portal. You can write scripts or applications that interface with Q and fetch grades.

Example usage:

from qportalwrapper.qportalwrapper import QPortalWrapper, QError

# Connect to the Q portal
conn = QPortalWrapper("Q_URL")

try:
    # Login
    conn.login("USER", "PASS")
except QError as e:
    # Catch an error (failed login, etc.)
    print(e.msg)

# Get a list of viewable students
students = conn.get_students()
print(students)

# Select a student to view
conn.select_student(students[0].id)

# View student's assignment grades
print(conn.get_assignments()[0])

Full docs can be found by running python3 -c "from qportalwrapper.qportalwrapper import QPortalWrapper; help(QPortalWrapper)" in the root repository folder.

QPortalWrapper is currently in alpha. Confirmed working features:

  • Login
  • Student fetching
  • Assignment fetching
  • Progress report fetching

Other features are WIP and should be added soon. Help adding functions would be greatly appreciated.

If you want to help improve or add functionality to QPortalWrapper, file an issue or a merge request.

DISCLAIMER: QPortalWrapper is an unofficial wrapper. It is not sanctioned by any company. It relies on unofficial API endpoints which are subject to change at any time.

Installation

  1. Clone this repo and cd into it.
  2. pip3 install -r requirements.txt to get dependencies (you may need to install pip).
  3. python3 setup.py install (you may need admin permissions).

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

qportalwrapper-1.0.0.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file qportalwrapper-1.0.0.tar.gz.

File metadata

  • Download URL: qportalwrapper-1.0.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

File hashes

Hashes for qportalwrapper-1.0.0.tar.gz
Algorithm Hash digest
SHA256 145de90f4c713019f806f4b0551d3ff11cedc79fdeb4174fe6d38b34ff446383
MD5 c7f0f34d45dd12b1a30e0b704f5a63f3
BLAKE2b-256 f0c378e80d13c2098bd54dfa0352fd7d3c0c4f595a379a5f078f368cb931b952

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