No project description provided
Project description
useful tools for the KnowledgeBase
knowldge.py
tool to read/modify kdb files
$ knowledge.py -h
usage: knowledge.py [-h] [-D DATABASE] [-e EXPORTDIR] [-k] [-v]
{categories,categorise,clean,deArrow,import,load_excel,load_opml,query,replace,sort,step_in,step_out,to_csv,args}
...
tool to inspect, query and edit Knowledge Base sqlite files
positional arguments:
{categories,categorise,clean,deArrow,import,load_excel,load_opml,query,replace,sort,step_in,step_out,to_csv,args}
operations
categories inspect the structure for categories for the templates in the KDB
categorise change the category from asis to tobe, empty string "" for None
clean remote html tags from descriptions
deArrow remove -> arrows from descriptions
import import cloud outliner cod file to a node parent
load_excel load an excel sheet into the KDB file
load_opml load OPML xml format into the KDB
query query a value, and filter by category
replace search and replace in item names
sort sort an items child items
step_in todo
step_out todo
to_csv export data to directory as tables of raw KDB types
args print the values for the args
optional arguments:
-h, --help show this help message and exit
-D DATABASE, --database DATABASE
Knowledge Base database, default=Empty.kdb
-e EXPORTDIR, --exportdir EXPORTDIR
output to export dir, default=export
-k, --klobber klobber db
-v, --verbose verbose logging
usage
to query a kdb do the following; note the '%' for sql like patten globbing
$ pip3 install --upgrade KnowledgeBase
$ knowledge.py -D Recipies.kdb query '%'
Recipies
Fetachini Pesto
Corn fritters
or you can inspect with filter parameters
$ knowledge.py query -h
usage: knowledge.py query [-h] [-d] [-u] [-a] [-r {i,o,b}] [-c CATEGORIES [CATEGORIES ...]] name
query a value, and filter by category
positional arguments:
name string to search in name for
optional arguments:
-h, --help show this help message and exit
-d, --description include description
-u, --url include url
-a, --attachments include attachments
-r {i,o,b}, --references {i,o,b}
include references
-c CATEGORIES [CATEGORIES ...], --categories CATEGORIES [CATEGORIES ...]
restrict to categories
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
KnowledgeBase-1.12.tar.gz
(12.2 kB
view details)
File details
Details for the file KnowledgeBase-1.12.tar.gz
.
File metadata
- Download URL: KnowledgeBase-1.12.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d8033167210bdfa1b5c679f4b134a256707ee51cadad5051dcfaab670be2f74 |
|
MD5 | a4b51ee42e85997dec55e8e788f755a1 |
|
BLAKE2b-256 | eb22484e210f98af4009df32c67cc4bb156a2524989af014b26341f62e6f5b59 |