mwcleric.clients package

Submodules

mwcleric.clients.cargo_client module

class mwcleric.clients.cargo_client.CargoClient(client: mwcleric.clients.site.Site, **kwargs)

Bases: object

Extends mwclient.Site with basic Cargo operations.

client = None
create(templates)
page_list(fields=None, limit='max', page_pattern='%s', **kwargs)
query(*, tables: Union[str, List[str]], fields: Union[str, List[str]], where: Optional[str] = None, join_on: Optional[Union[str, List[str]]] = None, group_by: Optional[str] = None, having: Optional[Union[str, List[str]]] = None, order_by: Optional[str] = None, offset: Optional[int] = None, limit: Optional[int] = None, auto_continue: bool = True)
query_one_result(fields, **kwargs)
recreate(templates, replacement=True)

mwcleric.clients.session_manager module

class mwcleric.clients.session_manager.SessionManager

Bases: object

Manages instances of WikiClient

existing_wikis = {}
get_client(url: Optional[str] = None, path: Optional[str] = None, scheme=None, credentials: Optional[mwcleric.auth_credentials.AuthCredentials] = None, force_new=False, **kwargs)

mwcleric.clients.site module

class mwcleric.clients.site.Site(host, path='/w/', ext='.php', pool=None, retry_timeout=30, max_retries=25, wait_callback=<function Site.<lambda>>, clients_useragent=None, max_lag=3, compress=True, force_login=True, do_init=True, httpauth=None, reqs=None, consumer_token=None, consumer_secret=None, access_token=None, access_secret=None, client_certificate=None, custom_headers=None, scheme='https')

Bases: mwclient.client.Site

Wrap mwclient since we might include a site object in constructors

Module contents