phystool.pdbfile
Module Contents
Classes
Data
API
- phystool.pdbfile.logger
“getLogger(…)”
- class phystool.pdbfile.PDBFile(id: int, uuid: uuid.UUID, pdb_type: str, standalone: bool, title: str, tags: phystool.tags.Tags, references: list[uuid.UUID])
Initialization
- UUID_PATTERN
“compile(…)”
- classmethod from_record(pdb_record: phystool.physql.models.PDBRecord) phystool.pdbfile.PDBFile
Converts a PDBRecord into a PDBFile
- classmethod from_file(key: uuid.UUID | pathlib.Path) phystool.pdbfile.PDBFile
Loops over all valid pdb_types and checks if the regex matches the “.tex” file. When a match is found, it parses the
.texfile to extract the PDB_TYPE, the optional title and all references to other PDBFiles. The tags are read from the related.jsonfile if it exists.- Renvoie:
PDBFile
- save() None
Saves the .json file
- create_tmp_tex_file() pathlib.Path
- compile(verbose: bool) None
- zip() None
Create a “.zip” file containing the “.tex” and “.pdf” files of the current PDBFile and its references