Added Module Loader (#1468)

This commit is contained in:
Prabhat Singh
2021-05-17 05:04:31 +05:30
committed by GitHub
parent 13209b6d03
commit 0f55a98b2f
5 changed files with 74 additions and 35 deletions
+4 -4
View File
@@ -11,16 +11,16 @@ Currently supports BCF version 2.1.
The `bcfxml` module lets you interact with the BCF-XML standard.
```
from bcf.bcfxml import BcfXml
from bcf import bcfxml
bcfxml = BcfXml()
# Load a project
project = bcfxml.get_project("/path/to/file.bcf")
bcfxml = bcfxml.load("/path/to/file.bcf")
# The project is also stored in the module
# project == bcfxml.project
project=bcfxml.get_project()
print(project.name)
# To edit a project, just modify the object directly