Skip to main content

Python client for the sparq api - automated degree planning for SJSU students + more

Project description

sparq Client

Python client library for the sparq API - automated degree planning for SJSU students.

Installation

pip install sparq

Quick Start

1. Get Your API Key

First, register and get your API key:

sparq auth

This will:

  • Send a verification code to your email
  • Generate your API key after verification
  • Save it to ~/.sparq/config.txt

2. Generate a Degree Plan

Use the example script to test the API:

python sparq.py

Or use it in your own code:

from sparq import Sparq

# Initialize with your API key (automatically loaded from config)
client = Sparq()

# Generate a degree plan
plan = client.plan(
	major="Computer Science",
	cc_courses=[{"code": "COMSC 075", "title": "Computer Science I", "grade": "A", "institution": "Evergreen Valley College"}],
	units_per_semester=15,
	schedule_preferences={"avoid_hours": ["8:00 AM", "8:00 PM"]}
)

print(plan)

3. Check Your API Usage

View your API usage statistics:

sparq usage

4. Recover Lost API Key

If you lose your API key:

sparq recover

CLI Commands

  • sparq auth - Register and get your API key
  • sparq usage - View API usage statistics
  • sparq recover - Recover your API key via email

Features

  • Degree Planning: Generate semester-by-semester plans for SJSU majors
  • Transfer Credit: Support for community college and AP credits
  • Usage Tracking: Monitor your API calls and history
  • API Key Recovery: Recover lost API keys via email verification

Updates

For updates please visit: https://github.com/shiventi/sparq/blob/main/docs/documentation.md

Support

For issues or questions, visit: https://github.com/shiventi/sparq

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

sparq-0.2.4.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

sparq-0.2.4-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file sparq-0.2.4.tar.gz.

File metadata

  • Download URL: sparq-0.2.4.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for sparq-0.2.4.tar.gz
Algorithm Hash digest
SHA256 c28d295778f81419e21eb091b096d1da1be2398dbc3ab11eb680dbc5975d72d0
MD5 82acfc35ef0be1c15a4c7494c0cab436
BLAKE2b-256 b656fa08b6a6e764a2214a438c12ca9895d1ad113e34c5a27adcc5f9900acea4

See more details on using hashes here.

File details

Details for the file sparq-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: sparq-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for sparq-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d64252597d3fc5d087c43a3c6764b16c96f2275c99879c416e12909dbcc2eb6c
MD5 0cc7b4c3c231d4ab9f60507c960c1f70
BLAKE2b-256 ab187a33d52e1195dfa790660682c441aaef46c232bd3ae0370ff180e91bf35c

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