Wikidata

Latest version: v0.8.1

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

Scan your dependencies

Page 1 of 3

0.9.0

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

To be released.

0.8.0

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

Released on July 7, 2024.

- Python 3.4--3.7 are no more supported. The minimum supported Python version
is Python 3.8. Instead, now it's tested with Python 3.8--3.11.
- :class:`~wikidata.entity.Entity` and :class:`~wikidata.client.Client` became
possible to be serialized using :mod:`pickle`. [:issue:`31`]
- Fixed a typing bug that :attr:`Entity.label <wikidata.entity.Entity.label>`
and :attr:`Entity.description <wikidata.entity.Entity.description>` properties
were incorrectly typed.
- :class:`wikidata.multilingual.MultilingualText`'s constructor became to take
only :class:`Locale` for parameter ``locale``.
- Added date precision 7 in :class:`wikidata.datavalue.decoder`.
[:pr:`59` by Baptiste Bayche]
- Added date precision 10 in :class:`wikidata.datavalue.decoder`.
[:pr:`60` by David Doukhan]

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`]

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.