Wikidata

Latest version: v0.7.0

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

Scan your dependencies

Page 1 of 3

0.8.0

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

To be released.

0.7.0

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

Released on July 31, 2020.

- Marked the package as supporting type checking by following :pep:`561`.

- Now non-existent entities became able to be handled. [:pr:`11`]

- Added :class:`~wikidata.entity.EntityState` enum class.
- Added :attr:`Entity.state <wikidata.entity.Entity.state>` attribute.
- Fixed a bug that raised :exc:`~urllib.error.HTTPError` when
non-existent :class:`~wikidata.entity.Entity` was requested.

- Languages (locales) became no more represented as :class:`babel.core.Locale`,
but represented :class:`wikidata.multilingual.Locale` instead.
[:issue:`2`, :issue:`27`, :pr:`30` by Nelson Liu]

- Removed Babel_ from the dependencies.

- Added :class:`wikidata.multilingual.Locale` type.

To replace the :class:`babel.core.Locale` type,
the :class:`wikidata.multilingual.Locale` type has been
aliased to `str`. This is a *breaking change* for all Wikidata public API
functions that formerly returned or ingested :class:`babel.core.Locale` .

- Added support for ``time`` datatypes with precision 9 (year-only).
[:pr:`26` by Nelson Liu]

- Added support for globe coordinate datatype. [:pr:`28` by Nelson Liu]

- Added support for decoding the ``globe-coordinate`` datatype.
- Added :mod:`wikidata.globecoordinate` module.

- Added support for quantity datatype. [:pr:`29` by Nelson Liu]

- Added support for decoding the ``quantity`` datatype.
- Added :mod:`wikidata.quantity` module. [:pr:`29`]

- Fixed :exc:`KeyError` from :meth:`Entity.getlist()
<wikidata.entity.Entity.getlist>` if the property is explicitly associated
with "no value". [:issue:`18`]

- Fixed a bug that raised :exc:`KeyError` when accessing an image more than
once and :class:`~wikidata.cache.MemoryCachePolicy` was enabled.
[:pr:`24` by Héctor Cordobés]

0.6.1

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

Released on September 18, 2017.

- Fixed :exc:`ImportError` on Python 3.4 due to lack of :mod:`typing` module.
[:issue:`4`]

0.6.0

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

Released on September 12, 2017.

- Fixed :exc:`KeyError` from :meth:`Client.get() <wikidata.client.Client.get>`
on an entity is redirected to its canonical entity.

0.5.4

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

Released on September 18, 2017.

- Fixed :exc:`ImportError` on Python 3.4 due to lack of :mod:`typing` module.
[:issue:`4`]

0.5.3

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

Released on June 30, 2017.

- Fixed :exc:`ValueError` from :attr:`Entity.label
<wikidata.entity.Entity.label>`/:attr:`Entity.description
<wikidata.entity.Entity.description>` with languages `ISO 639-1`_
doesn't cover (e.g. ``cbk-zam``). [:issue:`2`]

Although this fix prevents these properties from raising :exc:`ValueError`,
it doesn't completely fix the problem. :class:`babel.core.Locale` type,
which Wikidata depends on, currently doesn't supprot languages other
than `ISO 639-1`_. In order to completely fix the problem, we need to
patch Babel_ to support them, or make Wikidata independent from Babel_.

.. _ISO 639-1: https://www.iso.org/standard/22109.html
.. _Babel: http://babel.pocoo.org/

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.