SynBioDex / pySBOL3

Native python implementation of SBOL 3.0 specification
MIT License
37 stars 16 forks source link

Macro for document create and read #408

Closed jakebeal closed 2 years ago

jakebeal commented 2 years ago

I frequently fine myself writing code of the pattern:

doc = sbol3.Document()
doc.read(location)

Is there any reason we shouldn't allow this to be macro-ized, either as an optional constructor argument or as a static factory function?