obspy.io.xseed.fields.VariableString
- class VariableString(id, name, min_length=0, max_length=None, flags='', **kwargs)[source]
Bases:
Field
Variable length ASCII string, ending with a tilde: ~ (ASCII 126).
Variable length fields cannot have leading or trailing spaces. Character counts for variable length fields do not include the tilde terminator.
Public Methods
Private Methods
Warning
Private methods are mainly for internal/developer use and their API might change without notice.
- VariableString._format_string(s)
Using SEED specific flags to format strings.
This method is partly adopted from fseed.py, the SEED builder for SeisComP written by Andres Heinloo, GFZ Potsdam in 2005.
- VariableString._repr_pretty_(p, cycle)
Special Methods
- VariableString.__delattr__(name, /)
Implement delattr(self, name).
- VariableString.__dir__()
Default dir() implementation.
- VariableString.__eq__(value, /)
Return self==value.
- VariableString.__format__(format_spec, /)
Default object formatter.
- VariableString.__ge__(value, /)
Return self>=value.
- VariableString.__getattribute__(name, /)
Return getattr(self, name).
- VariableString.__gt__(value, /)
Return self>value.
- VariableString.__hash__()
Return hash(self).
- VariableString.__init_subclass__()
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- VariableString.__le__(value, /)
Return self<=value.
- VariableString.__lt__(value, /)
Return self<value.
- VariableString.__ne__(value, /)
Return self!=value.
- VariableString.__new__(**kwargs)
- VariableString.__reduce__()
Helper for pickle.
- VariableString.__reduce_ex__(protocol, /)
Helper for pickle.
- VariableString.__repr__()
Return repr(self).
- VariableString.__setattr__(name, value, /)
Implement setattr(self, name, value).
- VariableString.__sizeof__()
Size of object in memory, in bytes.
- VariableString.__str__()
- VariableString.__subclasshook__()
Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).