freebase-python is a library for accessing the open data repository stored at http://freebase.com. Freebase is huge, user-edited database of over 100 million of facts about over 5 million topics, all under the Creative Commons CC-BY license.

The freebase-python library 1.0 is now available! It introduces a new syntax for accessing the freebase api, it updates the available commands to reflect the entire web api, and it introduces some cool schema manipulation utilities. It's backwards compatible with previous versions of the library.

The new syntax makes it easy to start running with freebase:
>>> import freebase
>>> print freebase.mqlread({"id" : "/en/the_beatles", "name" : None})
{u'id': u'/en/the_beatles', u'name': u'The Beatles'}

You can also access freebase.sandbox as easily:

>>> import freebase.sandbox
>>> print freebase.sandbox.mqlread(...)

freebase-python can now do all of the current api calls that the website handles. For a full list of the api calls and examples, you can refer to http://code.google.com/p/freebase-python/wiki/GettingStarted .

The schema manipulation utilities introduced make it easy copy and move types, properties, and objects. This means that you can save bases to your computer so that their survive a sandbox refresh, keep different versions of your bases and types on your own machine, or move types between bases. There are a few recipes on the freebase- python wiki that you can find here: http://code.google.com/p/freebase-python/w/list?can=2&q=label%3ARecipe%2CSchema-Manipulation

freebase-python is also Google App Engine friendly. You can check out how to write your own app at http://code.google.com/p/freebase-python/wiki/GoogleAppEngine . You can also check out a sample app at http://freebase-images.appspot.com .

There are also more test and more docs!

Installing is easy, if you have easy_install, just say
 $ easy_install freebase
If you don't have easy_install, you can get it by running http://peak.telecommunity.com/dist/ez_setup.py .
--
http://mail.python.org/mailman/listinfo/python-announce-list

       Support the Python Software Foundation:
       http://www.python.org/psf/donations/

Reply via email to