Changelog¶
Version 0.5.0¶
Released on June 13, 2017.
Wikidata API calls over network became possible to be cached.
Clientnow hascache_policyattribute and constructor option. Nothing is cached by default.Added
wikidata.cachemodule andCachePolicyinterface in it. Two built-in implementation of the interface were added:NullCachePolicyNo-op.
MemoryCachePolicyLRU cache in memory.
ProxyCachePolicyProxy/adapter to another proxy object. Useful for utilizing third-party cache libraries.
wikidata.client.Client.requestlogger became to record logs about cache hits asDEBUGlevel.
Version 0.4.1¶
Released on April 30, 2017.
- Fixed
AssertionErrorfromgetlist()on entities with empty claims.
Version 0.4.0¶
Released on April 24, 2017.
- Monolingual texts became able to be handled.
- Added
MonolingualTexttype which is a true subtype ofstr.
- Added
Version 0.3.0¶
Released on February 23, 2017.
- Now
Clientbecame able to customize how it decodes datavalues to Python objects.- Added
wikidata.datavaluemodule andDecoderclass inside it. - Added
datavalue_decoderoption toClient.
- Added
- Now files on Wikimeda Commons became able to be handled.
- New decoder became able to parse Wikimedia Commons files e.g. images.
- Added
wikidata.commonsmediamodule andFileclass inside it.
- The meaning of
Clientconstructor’sbase_urlprameter beccame not to contain the trailing pathwiki/fromhttps://www.wikidata.org/wiki/. As its meaning changed, the value ofWIKIDATA_BASE_URLconstant also changed to not have the trailing path. - Added
loadoption toClient.get()method.
Version 0.2.0¶
Released on February 19, 2017.
- Made
Entitymultidict. Now it satisfiesMapping[Entity,object] protocol. - Added
Entity.typeproperty andEntityTypeenum class to represent it. - Added
entity_type_guessoption andguess_entity_type()method toClientclass. - Implemented
Hashableprotocol and==/=operators toEntityfor equality test.
Version 0.1.0¶
Initial version. Released on February 15, 2017.