Skip to content

Commit ac8fc7a

Browse files
author
Gerit Wagner
committed
update docs: programmatic/python
1 parent afb3005 commit ac8fc7a

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

docs/source/dev_docs/packages/python.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,17 @@ Programmatic use of CoLRev in other Python applications is supported. The follow
2121
# Save the changes, add them to git, and create commit
2222
review_manager.dataset.save_records_dict(records)
2323
review_manager.dataset.create_commit(msg="Pre-screening (package/script X")
24+
25+
It is also possible to use CoLRev utility methods to load and save different bibliography formats:
26+
27+
.. code-block:: python
28+
29+
from pathlib import Path
30+
from colrev.writer.write_utils import write_file
31+
from colrev.loader.load_utils import load
32+
33+
records_dict = load(filename=Path("filename.bib"))
34+
35+
# modify records_dict
36+
37+
write_file(records_dict=records_dict, filename=Path("filename.bib"))

0 commit comments

Comments
 (0)