github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

njr0 / fdb.py

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 16
    • 3
  • Source
  • Commits
  • Network (3)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Python library for accessing FluidDB — Read more

  cancel

http://abouttag.blogspot.com/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

 2008/09/01 v1.22      Updated to "new" API (thanks, Terry...). 
njr0 (author)
Tue Nov 24 12:08:38 -0800 2009
commit  44095f9e6ab1bb62b79c577a6562057144aafa52
tree    08d81980618be0f0606975c3dcc4d42d81e3f80e
parent  93261b623cee8162d681cf8699038181de32f055
fdb.py /
name age
history
message
file AUTHORS Loading commit data...
file KNOWN-PROBLEMS
file LICENSE
file README
file README-DELICIOUS
file delicious.cgi
file delicious.py
file delicious2fluiddb.py
file deliconfig.py
file delicous2FluidDB.pdf
file example.py
file fdb.py
file flags.py
README
FDB PYTHON LIBRARY
==================

fdb is a primarily a library for providing access to the FluidDB database
(http://fluidinfo.com/fluiddb) from Fluidinfo (http://fluidinfo.com/.)
There is lots of coverage of the library (and its evolution) at
http://abouttag.blogspot.com/.


FDB COMMAND LINE ACCESS
=======================

fdb can also be used for command-line access to FluidDB.
See 'USING THE COMMAND LINE', below.


DEPENDENCIES
============

If you're running python 2.6, fdb.py should just run.   With earlier
version of python, you need to get access to simplejson and httplib2.
You can get simplejson from http://pypi.python.org/pypi/simplejson/
and httplib2 from http://code.google.com/p/httplib2/.


CREDENTIALS
===========

For many operations, you also need an account on FluidDB,
and credentials (a username and password).   You can get these from
    http://fluidinfo.com/accounts/new
The library allows you to give it your credentials in various
different ways, but life is simplest if you stick them in
a 2-line file (preferably with restricted read access) in the format

username
password

On Unix, the default location for this is ~/.fluidDBcredentials,
and on Windows the default file is fluidDBcredentials.ini in your
home folder.


TESTS
=====

The library includes a set of tests.   If you have valid credentials,
and everything is OK, these should run successfully if you just execute
the file fdb.py.   For example, at the time of writing this README file
(version 0.8 of the fdb), I get this:

$ python fdb.py
....................
----------------------------------------------------------------------
Ran 20 tests in 46.311s

OK


USING THE LIBRARY
=================

Four ways of exploring the library are:
  1. look at the tests (the ones in the class TestFluidDB)
  2. look at the blog (http://abouttag.blogspot.com)
  3. read the function documentation, which is...existent.
  4. look at and run example.py, which should print DADGAD and 10.


USING THE COMMAND LINE
======================

Commands can be run by giving arguments to fdb.py.
For a list of commands, use

  python fdb.py help

An example command is

python fdb.py show -a DADGAD rating /fluiddb/about

Obviously, if you want to use fdb as a command from the shell, it will
probably be convenient to use an alias or create a trivial shell script
to run it.   I use bash, with the alias

alias fdb='python ~/python/fluiddb/fdb.py'

which allows me to type

fdb show -a DADGAD rating /fluiddb/about

etc.


DELICIOUS
=========

Also distributed with fdb itself is code for accessing delicious.com
(http://del.icio.us/, as was), and for migrating bookmarks and other
data to FluidDB.   This also includes functionality for creating web
homepages from delicious based on a home tag.   See the README-DELICIOUS
file for details on this functionality.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server