A simple flatfile database for freenet spiders.
Currently it is a backend only. Import it via python.
>>> from fdb import get_data_for_key, edit_data_for_key
>>> edit_data_for_key(key, site=None, state=None, action="put",
Key is USK@.../bla/foo or SSK@.../bla/foo or KSK@...
They can contain a 'path' key. If you set path_from_key=False, that path will be used in the entry. Else the the path will be computed from the key:
* for a KSK@... the path is just the full key (KSK@...)
* for a USK or SSK the path is only the part after the main key. USK@.../bla/foo becomes /bla/foo. You can use fbd_io.key_to_subkey(key) to turn a key into the path component. fbd_io.key_to_subkey(key, latest_revision=True) turns it into a key to the latest revision
fdb - A simple flatfile database for freenet spiders.
Copyright © 2010 Arne Babenhauserheide
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
The yaml part is licensed under a MIT license. See yaml/LICENSE for details.OB