Skip to content

Latest commit

 

History

History
174 lines (113 loc) · 5.07 KB

changes.rst

File metadata and controls

174 lines (113 loc) · 5.07 KB

Changelog

Version 0.5.3

Released on June 30, 2017.

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

    Although this fix prevents these properties from raising ValueError, it doesn't completely fix the problem. 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.

Version 0.5.2

Released on June 28, 2017.

  • Fixed AssertionError from empty ~wikidata.entity.multilingual_attributes.

Version 0.5.1

Released on June 28, 2017.

  • Fixed AssertionError from len() or iterating (iter()) on ~wikidata.entity.Entity objects with empty claims.

Version 0.5.0

Released on June 13, 2017.

  • Wikidata API calls over network became possible to be cached.
    • ~wikidata.client.Client now has ~wikidata.client.Client.cache_policy attribute and constructor option. Nothing is cached by default.
    • Added wikidata.cache module and ~wikidata.cache.CachePolicy interface in it. Two built-in implementation of the interface were added:
      ~wikidata.cache.NullCachePolicy

      No-op.

      ~wikidata.cache.MemoryCachePolicy

      LRU cache in memory.

      ~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 ~logging.DEBUG level.

Version 0.4.4

Released on June 30, 2017.

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

    Although this fix prevents these properties from raising ValueError, it doesn't completely fix the problem. 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.

Version 0.4.3

Released on June 28, 2017.

  • Fixed AssertionError from empty ~wikidata.entity.multilingual_attributes.

Version 0.4.2

Released on June 28, 2017.

  • Fixed AssertionError from len() or iterating (iter()) on ~wikidata.entity.Entity objects with empty claims.

Version 0.4.1

Released on April 30, 2017.

  • Fixed AssertionError from ~wikidata.entity.Entity.getlist() on entities with empty claims.

Version 0.4.0

Released on April 24, 2017.

  • Monolingual texts became able to be handled.
    • Added ~wikidata.multilingual.MonolingualText type which is a true subtype of str.

Version 0.3.0

Released on February 23, 2017.

  • Now ~wikidata.client.Client became able to customize how it decodes datavalues to Python objects.
    • Added wikidata.datavalue module and ~wikidata.datavalue.Decoder class inside it.
    • Added ~.wikidata.client.Client.datavalue_decoder option to ~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 wikidata.commonsmedia module and ~wikidata.commonsmedia.File class inside it.
  • The meaning of ~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 ~wikidata.client.WIKIDATA_BASE_URL constant also changed to not have the trailing path.
  • Added load option to Client.get() <wikidata.client.Client.get> method.

Version 0.2.0

Released on February 19, 2017.

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

Version 0.1.0

Initial version. Released on February 15, 2017.