Wikidata

Latest version: v0.8.1

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

Scan your dependencies

Page 2 of 3

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/

0.5.2

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

Released on June 28, 2017.

- Fixed :exc:`AssertionError` from empty
:class:`~wikidata.entity.multilingual_attribute`\ s.

0.5.1

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

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.5.0

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

Released on June 13, 2017.

- Wikidata API calls over network became possible to be cached.

- :class:`~wikidata.client.Client` now has
:attr:`~wikidata.client.Client.cache_policy` attribute and constructor
option. Nothing is cached by default.

- Added :mod:`wikidata.cache` module and :class:`~wikidata.cache.CachePolicy`
interface in it. Two built-in implementation of the interface were added:

:class:`~wikidata.cache.NullCachePolicy`
No-op.

:class:`~wikidata.cache.MemoryCachePolicy`
LRU cache in memory.

:class:`~wikidata.cache.ProxyCachePolicy`
Proxy/adapter to another proxy object. Useful for utilizing third-party
cache libraries.

- ``wikidata.client.Client.request`` logger became to record logs about
cache hits as :const:`~logging.DEBUG` level.

0.4.4

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

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_.

0.4.3

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

Released on June 28, 2017.

- Fixed :exc:`AssertionError` from empty
:class:`~wikidata.entity.multilingual_attribute`\ s.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.