Wikidata


NameWikidata JSON
Version 0.7.0 PyPI version JSON
download
home_pagehttps://github.com/dahlia/wikidata
SummaryWikidata client library
upload_time2020-07-30 20:47:05
maintainer
docs_urlNone
authorHong Minhee
requires_python
licenseGPLv3 or later
keywords wikidata ontology
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            Wikidata_ client library for Python
===================================

.. image:: https://badge.fury.io/py/Wikidata.svg
   :target: https://pypi.org/project/Wikidata/
   :alt: Latest PyPI version

.. image:: https://readthedocs.org/projects/wikidata/badge/?version=latest
   :target: https://wikidata.readthedocs.io/
   :alt: Documentation Status

.. image:: https://travis-ci.org/dahlia/wikidata.svg
   :alt: Build Status
   :target: https://travis-ci.org/dahlia/wikidata

This package provides easy APIs to use Wikidata_ for Python.

>>> from wikidata.client import Client
>>> client = Client()  # doctest: +SKIP
>>> entity = client.get('Q20145', load=True)
>>> entity
<wikidata.entity.Entity Q20145 'IU'>
>>> entity.description
m'South Korean singer and actress'
>>> image_prop = client.get('P18')
>>> image = entity[image_prop]
>>> image
<wikidata.commonsmedia.File 'File:KBS "The Producers" press conference, 11 May 2015 10.jpg'>
>>> image.image_resolution
(820, 1122)
>>> image.image_url
'https://upload.wikimedia.org/wikipedia/commons/6/60/KBS_%22The_Producers%22_press_conference%2C_11_May_2015_10.jpg'

.. _Wikidata: https://www.wikidata.org/

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dahlia/wikidata",
    "name": "Wikidata",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "wikidata ontology",
    "author": "Hong Minhee",
    "author_email": "hong.minhee@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f5/5e/cbaa3824308404281cb225eebc703527e2b4b8048b9f41ab799be4a3ca5f/Wikidata-0.7.0.tar.gz",
    "platform": "any",
    "description": "Wikidata_ client library for Python\n===================================\n\n.. image:: https://badge.fury.io/py/Wikidata.svg\n   :target: https://pypi.org/project/Wikidata/\n   :alt: Latest PyPI version\n\n.. image:: https://readthedocs.org/projects/wikidata/badge/?version=latest\n   :target: https://wikidata.readthedocs.io/\n   :alt: Documentation Status\n\n.. image:: https://travis-ci.org/dahlia/wikidata.svg\n   :alt: Build Status\n   :target: https://travis-ci.org/dahlia/wikidata\n\nThis package provides easy APIs to use Wikidata_ for Python.\n\n>>> from wikidata.client import Client\n>>> client = Client()  # doctest: +SKIP\n>>> entity = client.get('Q20145', load=True)\n>>> entity\n<wikidata.entity.Entity Q20145 'IU'>\n>>> entity.description\nm'South Korean singer and actress'\n>>> image_prop = client.get('P18')\n>>> image = entity[image_prop]\n>>> image\n<wikidata.commonsmedia.File 'File:KBS \"The Producers\" press conference, 11 May 2015 10.jpg'>\n>>> image.image_resolution\n(820, 1122)\n>>> image.image_url\n'https://upload.wikimedia.org/wikipedia/commons/6/60/KBS_%22The_Producers%22_press_conference%2C_11_May_2015_10.jpg'\n\n.. _Wikidata: https://www.wikidata.org/\n",
    "bugtrack_url": null,
    "license": "GPLv3 or later",
    "summary": "Wikidata client library",
    "version": "0.7.0",
    "split_keywords": [
        "wikidata",
        "ontology"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "f06e88ff131b05b2fcec4f9d80b06ac5",
                "sha256": "601ce7b4133c42ca82e63b4653829c4f825eae63fe537b304a418af060c486ec"
            },
            "downloads": -1,
            "filename": "Wikidata-0.7.0-py3-none-any.whl",
            "has_sig": true,
            "md5_digest": "f06e88ff131b05b2fcec4f9d80b06ac5",
            "packagetype": "bdist_wheel",
            "python_version": "3.7",
            "requires_python": null,
            "size": 29265,
            "upload_time": "2020-07-30T20:47:08",
            "upload_time_iso_8601": "2020-07-30T20:47:08.409777Z",
            "url": "https://files.pythonhosted.org/packages/80/e1/07775cf5d39af11cb51a4cc54dd8b4e3f256f25977b7683d27af9e455b48/Wikidata-0.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "ff249be0b5a64070b88ae14d288d8eb1",
                "sha256": "32ad4cc2c695435d411c83417b1eac210baa635abaf3ff38779666012daedd47"
            },
            "downloads": -1,
            "filename": "Wikidata-0.7.0.tar.gz",
            "has_sig": true,
            "md5_digest": "ff249be0b5a64070b88ae14d288d8eb1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 13161,
            "upload_time": "2020-07-30T20:47:05",
            "upload_time_iso_8601": "2020-07-30T20:47:05.710270Z",
            "url": "https://files.pythonhosted.org/packages/f5/5e/cbaa3824308404281cb225eebc703527e2b4b8048b9f41ab799be4a3ca5f/Wikidata-0.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-07-30 20:47:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "dahlia",
    "github_project": "wikidata",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "wikidata"
}
        
Elapsed time: 0.02390s