Qualifier#

class fastobo.qual.Qualifier(key, value)#

A qualifier used as a modifier for a clause.

__eq__(value, /)#

Return self==value.

__ge__(value, /)#

Return self>=value.

__gt__(value, /)#

Return self>value.

__le__(value, /)#

Return self<=value.

__lt__(value, /)#

Return self<value.

__ne__(value, /)#

Return self!=value.

__new__(**kwargs)#
__repr__()#

Return repr(self).

__str__()#

Return str(self).

key#

the key of the qualifier.

Type:

Ident

value#

the value of the qualifier.

Type:

str

class fastobo.qual.QualifierList(qualifiers=None)#

A list of qualifiers.

__contains__(key, /)#

Return bool(key in self).

__getitem__(key, /)#

Return self[key].

__len__()#

Return len(self).

__new__(**kwargs)#
__repr__()#

Return repr(self).

__str__()#

Return str(self).

append(object)#

Append object to the end of the list.

Raises:

TypeError – when the object is not of the right type for this container (see type-level documentation for the required type).

clear()#

Remove all items from list.

copy()#

Return a shallow copy of the list.

count(value)#

Return number of occurrences of value.

Raises:

TypeError – when the object is not of the right type for this container (see type-level documentation for the required type).

insert(index, object)#

Insert object before index.

If index is greater than the number of elements in the list, object will be added at the end of the list.

pop(index=-1)#

Remove and return item at index (default last).

Raises:

IndexError – when list is empty or index is out of range.

reverse()#

Reverse IN PLACE.