gemmi.cif.Block class

Contents

Methods

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_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) -> typing.List[str[2]]
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 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

Special methods

def __init__(self, arg0: str, /) -> None
def __iter__(self, /) -> typing.Iterator[Item]
def __repr__(self, /) -> str

Properties

name: str get set