Skip to main content

An API wrapper library for the Blackboard LMS.

Project description

Chawk

This project is a work in progress.
A python wrapper of the blackboard api to simplify admin tasks such as managing courses.

Setup

You will need to create an application to get the needed keys. You can request access to the Blackboard REST APIs through the Developer Portal.

Example of using the library

from chawk.blackboard_client import BlackboardClient


base_url = "https://blackboard.xxxx.edu"
client_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
client_secret = "xxxxxxxxxxxxxxxxxxxxxxxxx"

# Create client
client = BlackboardClient(client_id, client_secret, base_url, "example.log")

# Example usage
print(client.user.does_user_exist("00000_0"))
print(client.courses.does_course_exist("00000_1"))

client.courses.enroll_user(username="wilson1234", course_id="ge.math101213", role="Student")

Current Functions

User

   create_user(username: str, f_name: str, l_name: str, email: str, password: str) -> None:
   does_user_exist(username: str) -> bool:
   update_email(username: str, email: str) -> None:
   update_availability(username: str, availability: str) -> None:
   update_data_source(username: str, data_source_id: str) -> None:
   get_course_role(username: str, course_id: str) -> str:
   add_institution_roles(username: str, roles: list) -> None:
   get_enrollments(username: str) -> list[BBCourse]:

Course


Discussion


Gradebook

- Update column value for user
- Create column

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

chawk-0.1.2.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

chawk-0.1.2-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file chawk-0.1.2.tar.gz.

File metadata

  • Download URL: chawk-0.1.2.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for chawk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 388b194078584c4e329d0829dc659ecb4406ec2f26130be735d36a819cd7f568
MD5 194ed3cf2a3569e0b0de753702f33f51
BLAKE2b-256 30df3d08bca9333ad4cd325b0c288576f9a54cf69a634913683800b2b7d19165

See more details on using hashes here.

File details

Details for the file chawk-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: chawk-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for chawk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f09bac179dfa0143711bda2201df5bb277c3859401a313fc267588c03f70e600
MD5 763fa4972b46c216ad9caddb318184a2
BLAKE2b-256 b70c8d320425a84effdc4ef46a078cf736868e0afae2f8cb2adf7c50888418cb

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