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.5.tar.gz (6.1 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.5-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sparq-0.2.5.tar.gz
  • Upload date:
  • Size: 6.1 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.5.tar.gz
Algorithm Hash digest
SHA256 c95de52d8afc1751824f4dfa7d63929cde28eacdbf60d1c5cce267d5847b4899
MD5 260a325476f85c4bec6b85955f28bb52
BLAKE2b-256 96e0928468c17d3c15579250068c86ab78ba7d3df588670ee48b37e0c0b05fa9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sparq-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 8.5 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ad00669485ca39b3f6dd4cbc58545b3a447679fa056adbb86028295c610bf80a
MD5 2a8fabcca9309917a0cc40c1e2e33de1
BLAKE2b-256 f5ee71daf7294bde0cf8554aa744e5d36f5181a4f363a3ecbf8f51d6432f3880

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