.. py:currentmodule:: coc
A coc.py client instance can be created through the utility function, :meth:`coc.login`:
.. autofunction:: login
.. autofunction:: login_with_keys
import coc
client = coc.login("email", "password", key_names="keys for my windows pc", key_count=5)
With the returned instance, you can complete any of the operations detailed below.
This details special parameters passed to the :class:`Client` which may have more than 1 option (True/False). Currently this only includes :class:`LoadGameData`, but may be expanded in the future.
.. autoclass:: LoadGameData
The following details all operations on the basic client instance.
.. autoclass:: Client :members:
The following details all valid operations for the :class:`EventsClient`. This extends the :class:`Client` class, and all methods from :class:`Client` are valid with the :class:`EventsClient`, too.
.. autoclass:: EventsClient :members: