Coverage for biobb_common / biobb_common / __init__.py: 91%

11 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2025-12-22 13:18 +0000

1name = "biobb_common" 

2__all__ = ["generic", "tools"] 

3__version__ = "5.2.0" 

4 

5 

6class BioBBGlobalProperties(dict): 

7 """Global properties container for all BiobbObject instances.""" 

8 

9 def __init__(self): 

10 super().__init__() 

11 

12 def dict(self): 

13 """Create a shallow copy of the global properties.""" 

14 return self.copy() 

15 

16 def __repr__(self): 

17 """String representation.""" 

18 return f"BioBBGlobalProperties({dict(self)})" 

19 

20 

21# Create a global instance 

22biobb_global_properties = BioBBGlobalProperties()