Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hektor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Maximilian Michal
hektor
Commits
c56260b4
Commit
c56260b4
authored
7 years ago
by
Jan Maximilian Michal
Browse files
Options
Downloads
Patches
Plain Diff
Added gitlab-ci
parent
470b3bda
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+10
-0
10 additions, 0 deletions
.gitlab-ci.yml
README
+5
-4
5 additions, 4 deletions
README
hektor.py
+8
-6
8 additions, 6 deletions
hektor.py
lib/__init__.py
+3
-3
3 additions, 3 deletions
lib/__init__.py
with
26 additions
and
13 deletions
.gitlab-ci.yml
0 → 100644
+
10
−
0
View file @
c56260b4
image
:
python:3.4
before_script
:
-
python -V
test
:
script
:
-
pip install -e .
-
pip install flake8
-
flake8 hektor.py bin lib
This diff is collapsed.
Click to expand it.
README
+
5
−
4
View file @
c56260b4
Hektor QTI-XML to JSON converter
--------------------------------
This small converter should convert an Ilias export into
somthing more readable, like a json file. The main consumers
...
...
@@ -6,12 +7,12 @@ of these files will be Grady or other applications that do
not want to deal with the QTI mess.
The name Hektor is taken from Homer's Iilas. Despite being the
greatest warrior of Troja he met his doom in the Ilias. Anyone who
greatest warrior of Troja he met his doom in the Ilias. Anyone who
works with the E-Learning Platform Ilias shall be equally doomed.
Requirements
:
- lxml
Installation
:
- `pip install -U hektor`
Usage:
- python3 hektor.py -h
-
`
python3 hektor.py -h
`
This diff is collapsed.
Click to expand it.
hektor.py
+
8
−
6
View file @
c56260b4
...
...
@@ -37,23 +37,23 @@ def parseme():
'
input
'
,
metavar
=
'
DATA
'
,
type
=
lambda
f
:
file_exists
(
parser
,
f
),
help
=
'
A QTI-ZIP or a .xla Ilias export that contains course d
at
a
'
)
help
=
'
an Ilias course export in .zip or .xls form
at
'
)
parser
.
add_argument
(
'
output
'
,
metavar
=
'
OUTFILE
'
,
help
=
'
Where you want to put the output
'
)
help
=
'
destination of converter output (JSON)
'
)
parser
.
add_argument
(
'
-a
'
,
'
--anonymous
'
,
action
=
'
store_true
'
,
help
=
'
Strip any
personal information and create a reversing table
'
)
help
=
'
replace
personal information and create a reversing table
'
)
parser
.
add_argument
(
'
-t
'
,
'
--personal-secret-table
'
,
help
=
'
W
here to store personal information
'
,
help
=
'
w
here to store personal information
(CSV)
'
,
)
parser
.
add_argument
(
'
-m
'
,
'
--meta
'
,
action
=
'
store_true
'
,
help
=
'
If you want to
add meta information (lecturer, course title)
'
help
=
'
add meta information (lecturer, course title)
'
)
args
=
parser
.
parse_args
()
...
...
@@ -186,6 +186,9 @@ def _postprocessing(structured_data: Dict[str, Any]) -> Dict[str, Any]:
def
main
():
global
args
args
=
parseme
()
processing
=
compose
(
_postprocessing
,
_processing
,
_preprocessing
)
data
=
processing
(
args
.
input
)
destination
=
args
.
output
.
split
(
'
.json
'
)[
0
]
+
'
.json
'
...
...
@@ -195,5 +198,4 @@ def main():
if
__name__
==
'
__main__
'
:
args
=
parseme
()
main
()
This diff is collapsed.
Click to expand it.
lib/__init__.py
+
3
−
3
View file @
c56260b4
# New modules need to be registered here
from
lib.generic
import
Converter
from
lib.qti
import
QTIConverter
from
lib.xls
import
XLSConverter
from
lib.generic
import
Converter
# noqa
from
lib.qti
import
QTIConverter
# noqa
from
lib.xls
import
XLSConverter
# noqa
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment