Skip to main content

Personal Knowledge Base (PKB)

A tool to organize your personal information using markdown files, folders, and search functionality.

PKG

Source Code: https://github.com/hyw208/pkb

Prerequisites

  • Python 3.12.7 or higher

Installation

  1. Create a Knowledge Base Directory: Start by creating a directory for your knowledge base (e.g., kb) and navigate into it:

    mkdir kb && cd kb
    
  2. Clone the PKB Repository: Clone the PKB repository to get the necessary content folder, static folder and .env file:

    git clone https://github.com/hyw208/pkb.git
    
  3. Copy Essential Files: Copy the content folder and .env file into your knowledge base directory:

    cp -R ./pkb/content .
    cp -R ./pkb/static .
    cp ./pkb/.env .
    
  4. Set Up a Virtual Environment: Create and activate a virtual environment to manage dependencies:

    python -m venv .venv
    source .venv/bin/activate
    
  5. Install the PKB Library: Install the pkb library using pip:

    pip install pkb
    

Launching the PKB

You can launch the PKB using either of the following methods:

Method 1: Using the pkb.fast Module

python -m pkb.fast

Method 2: Using uvicorn

uvicorn pkb.fast:app

Accessing the PKB

You can open a browser and access it using http://0.0.0.0:8000 or http://127.0.0.1:8000/ or http://localhost:8000

Customization

You can customize your PKB by modifying the .env file. After making changes, save the file and restart the PKB to apply them.

Changing the Site Name

To change the site name, modify the WEBSITE_NAME variable in the .env file:

WEBSITE_NAME="Your New Site Name"

Changing Navigation Items

To change the navigation items, modify the HEADER_ITEMS variable in the .env file. The values should correspond to the names of the markdown files in your content folder.

Example:

# From:
HEADER_ITEMS=home,services,contact,about,search

# To:
HEADER_ITEMS=home,"new file 1",new_file_2,search

Note:

Make sure to create markdown files (e.g., new file 1.md and new_file_2.md) with some content under the content folder.

What's Next?

Now that you have your PKB set up, you can:

Delete any files you don't need from the content folder.

Start creating your personal content using markdown files.

Have fun exploring and organizing your knowledge!

Metadata

Release files for pkb 0.1.10

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

Source distribution (sdist)

Source distribution for pkb 0.1.10
File Size Uploaded
pkb-0.1.10.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pkb 0.1.10
File Interpreter ABI Platform
pkb-0.1.10-py3-none-any.whl Python 3 none any Details

Total release size: 18.8 kB

Release files / pkb-0.1.10.tar.gz

Download URL pkb-0.1.10.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
aa2c4ed178c88c0bfe11e63ea2fc74414d77f1032c8f6379461a1f4acdd0caec
BLAKE2b-256 checksum
How to use checksums
7dd01b605bfd3d2ae3adc8ea5690894bd2242eec69c5ad4ea474f7ce2d937baf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.0 CPython/3.13.1 Darwin/23.5.0

Release files / pkb-0.1.10-py3-none-any.whl

Download URL pkb-0.1.10-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e180c1e7a8c951a237c52e864231dc12d18336d65a33e2161ca3bcdc3aaeea3d
BLAKE2b-256 checksum
How to use checksums
dd5562beaef6df203d10948b9728b39f1e741e9c57b015d1fb2ac3f7a37c5ce8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.0 CPython/3.13.1 Darwin/23.5.0

Release history Release notifications | RSS feed

This release

0.1.10 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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