Wikidata

Latest version: v0.8.1

Safety actively analyzes 688634 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 3

0.4.2

-------------

Released on June 28, 2017.

- Fixed :exc:`AssertionError` from :func:`len()` or iterating (:func:`iter()`)
on :class:`~wikidata.entity.Entity` objects with empty claims.

0.4.1

-------------

Released on April 30, 2017.

- Fixed :exc:`AssertionError` from :meth:`~wikidata.entity.Entity.getlist()`
on entities with empty claims.

0.4.0

-------------

Released on April 24, 2017.

- Monolingual texts became able to be handled.

- Added :class:`~wikidata.multilingual.MonolingualText` type which is a true
subtype of :class:`str`.

0.3.0

-------------

Released on February 23, 2017.

- Now :class:`~wikidata.client.Client` became able to customize how it decodes
datavalues to Python objects.

- Added :mod:`wikidata.datavalue` module and
:class:`~wikidata.datavalue.Decoder` class inside it.
- Added :attr:`~.wikidata.client.Client.datavalue_decoder` option to
:class:`~wikidata.client.Client`.

- Now files on Wikimeda Commons became able to be handled.

- New decoder became able to parse Wikimedia Commons files e.g. images.
- Added :mod:`wikidata.commonsmedia` module and
:class:`~wikidata.commonsmedia.File` class inside it.

- The meaning of :class:`~wikidata.client.Client` constructor's ``base_url``
prameter beccame not to contain the trailing path ``wiki/`` from
``https://www.wikidata.org/wiki/``. As its meaning changed, the value of
:const:`~wikidata.client.WIKIDATA_BASE_URL` constant also changed to not
have the trailing path.

- Added ``load`` option to :meth:`Client.get() <wikidata.client.Client.get>`
method.

0.2.0

-------------

Released on February 19, 2017.

- Made :class:`~wikidata.entity.Entity` multidict. Now it satisfies
:class:`~typing.Mapping`\ [:class:`~wikidata.entity.Entity`, :class:`object`]
protocol.
- Added :attr:`Entity.type <wikidata.entity.Entity.type>` property and
:class:`~wikidata.entity.EntityType` enum class to represent it.
- Added :attr:`~wikidata.client.Client.entity_type_guess` option and
:meth:`~wikidata.client.Client.guess_entity_type()` method to
:class:`~wikidata.client.Client` class.
- Implemented :class:`~typing.Hashable` protocol and :token:`==`/:token:`!=`
operators to :class:`~wikidata.entity.Entity` for equality test.

0.1.0

-------------

Initial version. Released on February 15, 2017.

Page 3 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.