# Path: brede/config.py
# CONFIG_FILENAMES = [
#     'brede.cfg',
#     '~/etc/brede.cfg',
#     '~/brede.cfg']
# DEFAULTS = """
# [requests]
# user_agent = brede
# 
# [data]
# data_dir = ~/brede_data
# """


import json
import requests
    import docopt
from ..config import config
#!/usr/bin/env python
"""Interface to Wikidata.

Usage:
  wikidata.py [options] [<query>]

Options:
  -h --help    Help
  --id         Return id if relevant
  --limit=<n>  Limit for the number of results [default: 1]

Example:
  $ python -m brede.api.wikidata --id "Helle Thorning"

"""

from __future__ import absolute_import, division, print_function





API_URL = "https://www.wikidata.org/w/api.php"


class Wikidata(object):
    """Interface to wikidata.org."""

    def __init__(self):
        """Setup credentials for an IBM Watson instance."""

# Path: brede/config.py
# CONFIG_FILENAMES = [
#     'brede.cfg',
#     '~/etc/brede.cfg',
#     '~/brede.cfg']
# DEFAULTS = """
# [requests]
# user_agent = brede
# 
# [data]
# data_dir = ~/brede_data
# """


# Path: brede/api/wikidata.py
import json
import requests
    import docopt
from ..config import config

#!/usr/bin/env python
"""Interface to Wikidata.

Usage:
  wikidata.py [options] [<query>]

Options:
  -h --help    Help
  --id         Return id if relevant
  --limit=<n>  Limit for the number of results [default: 1]

Example:
  $ python -m brede.api.wikidata --id "Helle Thorning"

"""

from __future__ import absolute_import, division, print_function





API_URL = "https://www.wikidata.org/w/api.php"


class Wikidata(object):
    """Interface to wikidata.org."""

    def __init__(self):
        """Setup credentials for an IBM Watson instance."""

        self.user_agent = config.get('requests', 'user_agent')