Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow relevant output formats for the various reports #12

Open
npaun opened this issue Dec 10, 2016 · 0 comments
Open

Allow relevant output formats for the various reports #12

npaun opened this issue Dec 10, 2016 · 0 comments

Comments

@npaun
Copy link
Owner

npaun commented Dec 10, 2016

Output Formats

Display Formats
Schedule, Exams Text, JSON, CSV ....HTML w/ JS...... SQL
Visual Schedule HTML, PDF via HTML, PNG via HTML
Calendar ICS, JSON
Messages, Registration Status Text, JSON
Course Search Results JSON

Problem:

  • You'd like to turn your visual schedule into a nice PDF, or into a nice image.
  • You'd like to parse the output of the Minerva client so that it can be controlled by an algorithm of your own invention -- some kind of AI? if you can't get into one course try for another?
  • You'd like to import Minervac reports into some kind of spreadsheet software, or do some kind of data analysis with the output.

Solution:

  • Minervac should implement the -f option, and allow you to select from the valid formats for each kind of display/report.
  • The JSON format will just select the columns specified by the report, and ignore sort and format. SQL should do the same thing.
  • The CSV format will select the columns, sort as directed and format the columns, replacing tabs and spaces with commas.

Implementation

  • CSV, JSON, SQL, etc: As described above.
  • PDF: Use weasyprint? PNG pdf2png?
  • HTML Table: Dump to HTML table, inject some JS and CSS that can allow for filtering and reordering.
  • Error messages/Status messages: Change the raw text dump into some kind of struct, which can be output formatted.
  • Course search: Just expose pub_search and auth_search.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant