Wikidata


NameWikidata JSON
Version 0.8.1 PyPI version JSON
download
home_pagehttps://github.com/dahlia/wikidata
SummaryWikidata client library
upload_time2024-07-07 03:46:11
maintainerNone
docs_urlNone
authorHong Minhee
requires_python>=3.8.0
licenseGPLv3 or later
keywords wikidata ontology
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
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://github.com/dahlia/wikidata/actions/workflows/main.yaml/badge.svg?branch=main
   :alt: GitHub Actions
   :target: https://github.com/dahlia/wikidata/actions/workflows/main.yaml

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": null,
    "docs_url": null,
    "requires_python": ">=3.8.0",
    "maintainer_email": null,
    "keywords": "wikidata ontology",
    "author": "Hong Minhee",
    "author_email": "hong.minhee@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f5/61/b8c6f83737e02dd4098a33fca84a517d6583a1bf2755ac9e1adb4ec5c8b6/Wikidata-0.8.1.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://github.com/dahlia/wikidata/actions/workflows/main.yaml/badge.svg?branch=main\n   :alt: GitHub Actions\n   :target: https://github.com/dahlia/wikidata/actions/workflows/main.yaml\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.8.1",
    "project_urls": {
        "Docs": "https://wikidata.readthedocs.io/",
        "Homepage": "https://github.com/dahlia/wikidata"
    },
    "split_keywords": [
        "wikidata",
        "ontology"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3904000f4b830f0a14a56d2fe1fea43e67b7f7ea561e7cca8d9b57f48157ec4c",
                "md5": "a3432397b7123b579a57b5e15a625dc0",
                "sha256": "2f0e2b8b77150cb374a729f3b4fbadbfedfbd091e1f25d08f5403cb0d8306cda"
            },
            "downloads": -1,
            "filename": "Wikidata-0.8.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a3432397b7123b579a57b5e15a625dc0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8.0",
            "size": 29118,
            "upload_time": "2024-07-07T03:46:08",
            "upload_time_iso_8601": "2024-07-07T03:46:08.609226Z",
            "url": "https://files.pythonhosted.org/packages/39/04/000f4b830f0a14a56d2fe1fea43e67b7f7ea561e7cca8d9b57f48157ec4c/Wikidata-0.8.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f561b8c6f83737e02dd4098a33fca84a517d6583a1bf2755ac9e1adb4ec5c8b6",
                "md5": "fe74b7599b33d59b2ca20b1697a8bcf3",
                "sha256": "2d44aa538ca3bcbc36ddf9f88957f6e487407d96e7a8a7bcee39da472b90f28b"
            },
            "downloads": -1,
            "filename": "Wikidata-0.8.1.tar.gz",
            "has_sig": false,
            "md5_digest": "fe74b7599b33d59b2ca20b1697a8bcf3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8.0",
            "size": 26112,
            "upload_time": "2024-07-07T03:46:11",
            "upload_time_iso_8601": "2024-07-07T03:46:11.162879Z",
            "url": "https://files.pythonhosted.org/packages/f5/61/b8c6f83737e02dd4098a33fca84a517d6583a1bf2755ac9e1adb4ec5c8b6/Wikidata-0.8.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-07 03:46:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dahlia",
    "github_project": "wikidata",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "wikidata"
}
        
Elapsed time: 0.25997s