Metadata-Version: 2.1
Name: wikibase-api
Version: 0.1.1
Summary: Wrapper library for the Wikibase API
Home-page: https://github.com/samuelmeuli/wikibase-api
Keywords: wikibase,wikidata,bot,api,wrapper
Author: Samuel Meuli
Author-email: me@samuelmeuli.com
Requires-Python: >=3.6,<4.0
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Internet
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Wiki
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: requests (>=2.20,<3.0)
Requires-Dist: requests-oauthlib (>=1.0,<2.0)
Project-URL: Documentation, https://wikibase-api.readthedocs.io
Project-URL: Repository, https://github.com/samuelmeuli/wikibase-api
Description-Content-Type: text/markdown

# wikibase-api

`wikibase-api` is a Python library for simple access to the [Wikibase API](https://www.wikidata.org/w/api.php?action=help). It simplifies the authentication process and can be used to query and edit information on Wikidata or any other Wikibase instance.

For an simpler, object-oriented abstraction of the Wikibase API, have a look at [`python-wikibase`](https://github.com/samuelmeuli/python-wikibase).

## Installation

```sh
pip install wikibase-api
```

## Usage

Simple example for getting all information about a Wikidata page:

```python
from wikibase_api import Wikibase

wb = Wikibase()
r = wb.entity.get("Q1")
print(r)
```

Output:

```python
{
  "entities": {
    "Q1": {
      # ...
    }
  },
  "success": 1,
}
```

## Documentation

→ **[Docs](https://wikibase-api.readthedocs.io)**

The documentation for this library can be built using the following commands (you'll need to have Python, Make and [Poetry](https://poetry.eustace.io) installed):

```sh
git clone REPO_URL
make install
make docs-build
make docs-open
```

