class
BlockMethods
- def add_item(self, item: Item, pos: int = -1) -> Item
- def as_string(self, options: WriteOptions = gemmi.cif.WriteOptions()) -> str
- Returns a string in CIF format.
- def as_string(self, style: Style) -> str
- def find(self, prefix: str, tags: typing.List[str]) -> Table
- def find(self, tags: typing.List[str]) -> Table
- def find_frame(self, name: str) -> Block
- def find_loop(self, tag: str) -> Column
- def find_loop_item(self, tag: str) -> Item
- def find_mmcif_category(self, category: str) -> Table
- Returns Table with all items in the category.
- def find_or_add(self, prefix: str, tags: typing.List[str]) -> Table
- def find_pair(self, tag: str) -> object
- def find_pair_item(self, tag: str) -> Item
- def find_value(self, tag: str) -> str
- def find_values(self, tag: str) -> Column
- def get_index(self, tag: str) -> int
- def get_mmcif_category(self, name: str, raw: bool = False) -> dict
- def get_mmcif_category_names(self, /) -> typing.List[str]
- For mmCIF files only. Returns list of all category prefixes (_x.)
- def init_loop(self, prefix: str, tags: typing.List[str]) -> Loop
- def init_mmcif_loop(self, cat: str, tags: typing.List[str]) -> Loop
- def item_as_table(self, arg0: Item, /) -> Table
- def move_item(self, old_pos: int, new_pos: int) -> None
- def set_mmcif_category(self, name: str, data: dict, raw: bool = False) -> None
- def set_pair(self, tag: str, value: str) -> None
- def set_pairs(self, prefix: str, data: dict, raw: bool = False) -> None
- def write_file(self, filename: str, options: WriteOptions = gemmi.cif.WriteOptions()) -> None
- Write data to a CIF file.
- def write_file(self, filename: str, style: Style) -> None
Special methods
- def __getitem__(self, index: int) -> Item
- def __init__(self, arg0: str, /) -> None
- def __iter__(self, /) -> typing.Iterator
- def __repr__(self, /) -> str
Properties
- name: str get set