casys.utilities.annex_table
Annex tables management classes.
Functions
|
Expand and normalize the provided path. |
Classes
|
|
|
Class allowing to manage writable annex tables. |
|
|
|
Field object representing parameters/variables in data sources. |
Exceptions
Exception raised if an error related to annex table occurs. |
- class casys.utilities.annex_table.AnnexTable(name, reference, fields)
Bases:
object
- descriptor(dir_name='Annexes')
Generate the descriptor content of this annex.
- Return type:
- Returns:
Descriptor content.
- exception casys.utilities.annex_table.AnnexTableError
Bases:
Exception
Exception raised if an error related to annex table occurs.
- add_note(object, /)
Exception.add_note(note) – add a note to the exception
- args
- with_traceback(object, /)
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- class casys.utilities.annex_table.AnnexTableManager(location, reference='/work/ALT/peachi/commun/data/TABLES/DSC/')
Bases:
object
Class allowing to manage writable annex tables.
Initialize a writable annex table.
- Parameters:
- annex_table(name)
Return the request annex table.
- Parameters:
name (
str
) – Name of the annex table.- Return type:
- Returns:
Annex table.
- create_annex(name, reference, fields)
Create a new annex table.
- remove_annex(name)
Remove the provided annex table data and configuration files.
- Parameters:
name (
str
) – Name of the annex table to remove.
- classmethod schema()
- Return type:
- class casys.utilities.annex_table.AnnexTableManagerConfig(reference, annexes=<factory>, field_nb=500000)
Bases:
object
- Parameters:
reference (
str
)annexes (
dict
[str
,AnnexTable
])field_nb (
int
)
-
annexes:
dict
[str
,AnnexTable
]
- create_annex(name, reference, fields)
Create a new annex table.
- Parameters:
- Return type:
- Returns:
Newly created annex.