college_manager module

College Data Management System.

This module manages loading and accessing college-specific data including team colors, fight songs, and chant patterns from JSON configuration files.

The college manager provides:
  • JSON-based college configuration loading

  • Team color retrieval (primary and secondary)

  • Fight song data access

  • Chant pattern information

  • Graceful fallback for missing college data

Classes:

CollegeManager: Loads and manages college-specific data

Example

>>> manager = CollegeManager("penn_state")
>>> if manager.is_enabled():
...     colors = manager.get_colors()
...     primary = colors['primary']  # [0, 60, 113]
Author:

Charles Doebler at Feral Cat AI

Dependencies:
  • College JSON files in colleges/ directory

Note

College JSON files must follow the schema with name, colors, fight_song, and chants fields.

class college_manager.CollegeManager(college_name='none')

Bases: object

get_chant_data()

Get chant detection parameters.

get_chant_notes()

Get chant note sequence.

get_college_name()

Get full college name.

get_colors()

Get college colors.

get_fight_song_notes()

Get fight song note sequence.

get_response_tone(tone_type='chant_response')

Get audio tone for specific response type.

is_enabled()

Check if college spirit is enabled and loaded.

load_college_data()

Load college-specific data from JSON file.