Skip to main content

useful tools for the KnowledgeBase

KnowledgeBase by Ingo Straub

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

Metadata

Release files for KnowledgeBase 1.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for KnowledgeBase 1.12
File Size Uploaded Provenance
KnowledgeBase-1.12.tar.gz 12.2 kB Without provenance Details

Release files / KnowledgeBase-1.12.tar.gz

Download URL KnowledgeBase-1.12.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1d8033167210bdfa1b5c679f4b134a256707ee51cadad5051dcfaab670be2f74
BLAKE2b-256 checksum
How to use checksums
eb22484e210f98af4009df32c67cc4bb156a2524989af014b26341f62e6f5b59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.13

Security for KnowledgeBase 1.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page