Changelog¶
Version 0.6.0¶
Released on September 12, 2017.
- Fixed
KeyError
fromClient.get()
on an entity is redirected to its canonical entity.
Version 0.5.3¶
Released on June 30, 2017.
Fixed
ValueError
fromEntity.label
/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.1¶
Released on June 28, 2017.
- Fixed
AssertionError
fromlen()
or iterating (iter()
) onEntity
objects with empty claims.
Version 0.5.0¶
Released on June 13, 2017.
Wikidata API calls over network became possible to be cached.
Client
now hascache_policy
attribute and constructor option. Nothing is cached by default.Added
wikidata.cache
module andCachePolicy
interface in it. Two built-in implementation of the interface were added:NullCachePolicy
No-op.
MemoryCachePolicy
LRU cache in memory.
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 asDEBUG
level.
Version 0.4.4¶
Released on June 30, 2017.
Fixed
ValueError
fromEntity.label
/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.2¶
Released on June 28, 2017.
- Fixed
AssertionError
fromlen()
or iterating (iter()
) onEntity
objects with empty claims.
Version 0.4.1¶
Released on April 30, 2017.
- Fixed
AssertionError
fromgetlist()
on entities with empty claims.
Version 0.4.0¶
Released on April 24, 2017.
- Monolingual texts became able to be handled.
- Added
MonolingualText
type which is a true subtype ofstr
.
- Added
Version 0.3.0¶
Released on February 23, 2017.
- Now
Client
became able to customize how it decodes datavalues to Python objects.- Added
wikidata.datavalue
module andDecoder
class inside it. - Added
datavalue_decoder
option 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.commonsmedia
module andFile
class inside it.
- The meaning of
Client
constructor’sbase_url
prameter beccame not to contain the trailing pathwiki/
fromhttps://www.wikidata.org/wiki/
. As its meaning changed, the value ofWIKIDATA_BASE_URL
constant also changed to not have the trailing path. - Added
load
option toClient.get()
method.
Version 0.2.0¶
Released on February 19, 2017.
- Made
Entity
multidict. Now it satisfiesMapping
[Entity
,object
] protocol. - Added
Entity.type
property andEntityType
enum class to represent it. - Added
entity_type_guess
option andguess_entity_type()
method toClient
class. - Implemented
Hashable
protocol and==
/=
operators toEntity
for equality test.
Version 0.1.0¶
Initial version. Released on February 15, 2017.