CSV Import Support in UniTime

10 views
Skip to first unread message

burak koşar

unread,
Dec 19, 2025, 9:06:07 AM12/19/25
to unitime...@googlegroups.com, hakan.g...@izu.edu.tr

Dear Tomáš,

We have one more question regarding data import in UniTime.

Is it currently possible to import data into UniTime using CSV files?

If CSV import is not supported, is there any planned or recommended approach (or future development) for supporting CSV-based imports?

Thank you for your guidance.

Best regards,
Burak

Tomáš Müller

unread,
Dec 19, 2025, 11:20:23 AM12/19/25
to unitime...@googlegroups.com, hakan.g...@izu.edu.tr
Dear Burak,

Out of the box, we only have the XML interfaces listed at https://www.unitime.org/uct_interfaces.php.

Our support team has written various CSV import (and also export) scripts in the past. These can usually be executed on the Scripts page, either by importing the data directly or by converting it to XML for the Data Exchange page. However, we have only made a few publicly available, as they are typically very institution-specific: they expect specific columns in a particular format and make many assumptions. Also, either there must be many duplicate values, or multiple CSV files may be needed to model more complex data structures. For example, see the Instructor Scheduling Data Imports.

I've also attached an example program that converts a CSV file with student data into the course requests XML file (importing students and their course requests), including a sample input CSV file and an output XML file. It is written in Python. It can be run from a command line

python studentDemands.py -i StudentDemands.csv -o StudentDemands.xml -c woebgon -t Fal -y 2010

with the parameters of the input file, output file, and the target academic session's initiative, term, and year, respectively. Writing such a script is relatively easy, as one only needs to know the target XML format (one of the https://www.unitime.org/uct_interfaces.php). It is also possible to read multiple CSV files and produce a single XML file for the Data Exchange page to import.

That said, we usually help with writing these as part of our paid/commercial support.

Best regards,

Tomas

--
You received this message because you are subscribed to the Google Groups "UniTime Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unitime-discu...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/unitime-discuss/CAKtsfhR1D-D7f9RPtSeS4K%2BxFBGh8d6U%3DoUrVbSwQ6HACMTfiQ%40mail.gmail.com.
StudentDemandsConversionExample.zip

burak....@gmail.com

unread,
Dec 21, 2025, 6:49:11 AM12/21/25
to UniTime Discussion Group
Hi Tomas,

Thanks for the explanation and for sharing the example script.

We understand that CSV is not supported directly and that converting CSV data to the appropriate UniTime XML format is the right approach. We’ll try implementing our own CSV-to-XML scripts based on the available interfaces.

If needed, we may reach out later regarding commercial support.

Best regards,
Burak

bu iyi gibi

19 Aralık 2025 Cuma tarihinde saat 19:20:23 UTC+3 itibarıyla Tomáš Müller şunları yazdı:
Reply all
Reply to author
Forward
0 new messages