obspy.clients.nrl.client.NRLDict

class NRLDict(nrl)[source]

Bases: dict

Public Methods

clear

copy

fromkeys

Create a new dictionary with keys from iterable and values set to value.

get

Return the value for key if key is in the dictionary, else default.

items

keys

pop

If key is not found, default is returned if given, otherwise KeyError is raised

popitem

Remove and return a (key, value) pair as a 2-tuple.

setdefault

Insert key with a value of default if key is not in the dictionary.

update

If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]

values

Private Methods

Warning

Private methods are mainly for internal/developer use and their API might change without notice.

NRLDict._repr_pretty_(p, cycle)[source]

Special Methods

NRLDict.__class_getitem__()

See PEP 585

NRLDict.__contains__(key, /)

True if the dictionary has the specified key, else False.

NRLDict.__delattr__(name, /)

Implement delattr(self, name).

NRLDict.__delitem__(key, /)

Delete self[key].

NRLDict.__dir__()

Default dir() implementation.

NRLDict.__eq__(value, /)

Return self==value.

NRLDict.__format__(format_spec, /)

Default object formatter.

NRLDict.__ge__(value, /)

Return self>=value.

NRLDict.__getattribute__(name, /)

Return getattr(self, name).

NRLDict.__getitem__(name)[source]
NRLDict.__gt__(value, /)

Return self>value.

NRLDict.__init__(nrl)[source]
NRLDict.__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

NRLDict.__ior__(value, /)

Return self|=value.

NRLDict.__iter__()

Implement iter(self).

NRLDict.__le__(value, /)

Return self<=value.

NRLDict.__len__()

Return len(self).

NRLDict.__lt__(value, /)

Return self<value.

NRLDict.__ne__(value, /)

Return self!=value.

NRLDict.__new__(**kwargs)
NRLDict.__or__(value, /)

Return self|value.

NRLDict.__reduce__()

Helper for pickle.

NRLDict.__reduce_ex__(protocol, /)

Helper for pickle.

NRLDict.__repr__()

Return repr(self).

NRLDict.__reversed__()

Return a reverse iterator over the dict keys.

NRLDict.__ror__(value, /)

Return value|self.

NRLDict.__setattr__(name, value, /)

Implement setattr(self, name, value).

NRLDict.__setitem__(key, value, /)

Set self[key] to value.

NRLDict.__sizeof__() size of D in memory, in bytes
NRLDict.__str__()[source]
NRLDict.__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).