Hi!
After some development, I think there's a version of pywikidata which works well enough to work with. It is still missing some features; however, creating items, getting them by id, and saving them is covered.
You can find it here (https://github.com/jcreus/pywikidata)https://github.com/jcreus/pywikidata. The file example.pyhttps://github.com/jcreus/pywikidata/blob/master/example.pyincludes some examples of how it works.
Finally, in case you find bugs you're welcome to report themhttps://github.com/jcreus/pywikidata/issues, even more to send a pull request ;). Pending things include handling permission errors (which some time ago I couldn't trigger, I'll try now), or getting items by interwiki.
Thanks a lot, and sorry for my English!
Joan Creus
On Thu, Aug 23, 2012 at 5:35 PM, Joan Creus joan.creus.c@gmail.com wrote:
Hi!
After some development, I think there's a version of pywikidata which works well enough to work with. It is still missing some features; however, creating items, getting them by id, and saving them is covered.
You can find it here (https://github.com/jcreus/pywikidata). The file example.py includes some examples of how it works.
Finally, in case you find bugs you're welcome to report them, even more to send a pull request ;). Pending things include handling permission errors (which some time ago I couldn't trigger, I'll try now), or getting items by interwiki.
Thanks a lot, and sorry for my English!
Joan Creus
Wohooooooooo! As I already told you on IRC this is pretty awesome \o/ Please keep us posted on the progress.
Cheers Lydia
-----Original Message----- From: Lydia Pintscher [mailto:lydia.pintscher@wikimedia.de] Sent: Thursday, August 23, 2012 10:32 AM To: Discussion list for the Wikidata project. Subject: Re: [Wikidata-l] Pywikidata 0.1: a Python interface to Wikidata'sAPI
On Thu, Aug 23, 2012 at 5:35 PM, Joan Creus joan.creus.c@gmail.com wrote:
Hi!
After some development, I think there's a version of pywikidata which works well enough to work with. It is still missing some features; however, creating items, getting them by id, and saving them is covered.
You can find it here (https://github.com/jcreus/pywikidata). The file example.py includes some examples of how it works.
Finally, in case you find bugs you're welcome to report them, even more to send a pull request ;). Pending things include handling permission errors (which some time ago I couldn't trigger, I'll try now), or getting items by interwiki.
Thanks a lot, and sorry for my English!
Joan Creus
Wohooooooooo! As I already told you on IRC this is pretty awesome \o/ Please keep us posted on the progress.
Cheers Lydia
________________________
Joan, This is a very cool development. I'm going to follow this closely.
Now that the technology is here to make mass uploads, I wonder how this is going to effect the policy of Wikidata accepting batch-uploads. At Wikimania I remember Daniel saying that it's going to be discouraged to import a lot of data at once. I wonder now that we have this interface, will that change? What type of pywikidata bots are going to be allowed to run?
Max Klein Wikipedia in Residence kleinm@oclc.org +17074787023
On Fri, Aug 24, 2012 at 7:41 PM, Klein,Max kleinm@oclc.org wrote:
Joan, This is a very cool development. I'm going to follow this closely.
Now that the technology is here to make mass uploads, I wonder how this is going to effect the policy of Wikidata accepting batch-uploads. At Wikimania I remember Daniel saying that it's going to be discouraged to import a lot of data at once. I wonder now that we have this interface, will that change? What type of pywikidata bots are going to be allowed to run?
Hey :)
Nothing changed really. Large mass uploads of data are still (initially) discouraged. We really need to be very careful especially at the beginning to not kill the Wikidata community before it even started to grow. So please let's take it slowly. It'll be the right thing in the long run. (For a related story read Robert Kaye's chapter in Open Advice btw: http://open-advice.org.)
That being said, there sure are things that the community can agree on that are ok to import at the beginning (some language link sets maybe?) and this is where pywikidata comes in. And there are a lot of things in the long run that it will be useful for.
Cheers Lydia