Skip to content
Snippets Groups Projects
Select Git revision
  • 4bd267a8953154240ae22685fc940ad2b8fc18d7
  • main default protected
  • f-remove-deprecation-warning
  • dev
  • f-docs-pylib
  • f-parse-value
  • f-compare
  • f-string-ids
  • f-217-set-special-property
  • f-filesystem-import
  • f-filesystem-link
  • f-filesystem-directory
  • f-filesystem-core
  • f-filesystem-cleanup
  • f-check-merge-entities
  • f-compare-enid
  • f-select-subproperties
  • v0.18.0
  • v0.17.0
  • v0.16.0
  • v0.15.1
  • v0.15.0
  • v0.14.0
  • v0.13.2
  • v0.13.1
  • v0.13.0
  • linkahead-rename-step-2
  • linkahead-rename-step-1
  • v0.12.0
  • v0.11.2
  • v0.11.1
  • v0.11.0
  • v0.10.0
  • v0.9.0
  • v0.8.0
  • v0.7.4
  • v0.7.3
37 results

test_container.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    insert_model.py 329 B
    #!/usr/bin/env python3
    import caosdb as db
    from caosadvancedtools.models.parser import parse_model_from_yaml
    
    model = parse_model_from_yaml("model.yml")
    model.sync_data_model(noquestion=True)
    
    if len(db.execute_query("FIND Property alias")) == 0:
        al = db.Property(name="alias")
        al.add_parent(name="name")
        al.insert()