Client

class kuma.Client(host='https://developer.mozilla.org', locale='en-US')

This is the kuma.Client class that takes care of the communication with kuma servers. kuma.Client is locale-aware. kuma.Client.host defaults to the public Mozilla Developer Network URL and the default locale is United States English.

base_url

Returns the base URL of the current kuma.Client instance. Used to fetch documents.

get(endpoint, query=None, meta=None)

Returns a specific resource on the current kuma host. Can accept queries so as to return raw html, specific sections, children pages, return the page in JSON format etc. This method returns either string or dict, according to the response’s content-type header.

host = None

The kuma host to connect.

locale = None

The locale to use.