Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
caosdb
Software
caosdb-pylib
Merge requests
!13
F documentation data models
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
F documentation data models
f-documentation-data-models
into
dev
Overview
6
Commits
7
Pipelines
6
Changes
4
All threads resolved!
Show all comments
Merged
Alexander Schlemmer
requested to merge
f-documentation-data-models
into
dev
3 years ago
Overview
6
Commits
7
Pipelines
6
Changes
4
All threads resolved!
Show all comments
Expand
0
0
Merge request reports
Compare
dev
version 6
eaefb51b
3 years ago
version 5
7d39d92e
3 years ago
version 4
72073795
3 years ago
version 3
72073795
3 years ago
version 2
78e8978e
3 years ago
version 1
f887c410
3 years ago
dev (base)
and
latest version
latest version
c5b576e1
7 commits,
3 years ago
version 6
eaefb51b
6 commits,
3 years ago
version 5
7d39d92e
5 commits,
3 years ago
version 4
72073795
4 commits,
3 years ago
version 3
72073795
8 commits,
3 years ago
version 2
78e8978e
7 commits,
3 years ago
version 1
f887c410
6 commits,
3 years ago
4 files
+
87
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
src/caosdb/yamlapi.py
+
8
−
0
Options
@@ -73,6 +73,14 @@ def dict_to_xml(d):
def
yaml_to_xml
(
yamlstr
):
"""
Load a yaml document from yamlstr and converts it to XML.
Parameters
----------
yamlstr : str
The string to load the yaml document from.
"""
return
dict_to_xml
(
yaml
.
load
(
yamlstr
))
Loading