Entities¶
Entities (or, simply, objects) are the essential part of gd.py.
Main interaction with data returned from GD servers is achieved through them.
A base class for all entities is AbstractEntity.
-
class
gd.AbstractEntity(*, client: gd.client.Client = None, **options)[source]¶ Class that represents Abstract Entity. This is a base for many gd.py objects.
-
x == y Check if two objects are equal. Compared by hash and type.
-
x != y Check if two objects are not equal.
-
hash(x) Returns
hash(self.hash_str).
-