Skip to main content

Personal Knowledge Base

Project description

Personal Knowledge Base (PKB)

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

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 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 ./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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pkb-0.1.8.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pkb-0.1.8-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file pkb-0.1.8.tar.gz.

File metadata

  • Download URL: pkb-0.1.8.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.13.1 Darwin/23.5.0

File hashes

Hashes for pkb-0.1.8.tar.gz
Algorithm Hash digest
SHA256 177349248a59c6d604322ef7db433d5247b0041abe230867de356a4dccad6b90
MD5 33ac4daad023f8aed73d8c9b95655bfd
BLAKE2b-256 beaa0b38ca49740ae0ebce5fbf303186c80c74d222aac60fe97a9979cb349565

See more details on using hashes here.

File details

Details for the file pkb-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: pkb-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.13.1 Darwin/23.5.0

File hashes

Hashes for pkb-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d590581e0b46693eea8bdbe62b2ad74d3c7d868f9441212ee3bf3a996e8cac0a
MD5 6089514cd11b2384684ce92d7ad65606
BLAKE2b-256 e26135b09cb3188194a3226df7cd6ddede65b92dab86c773c02673039201080e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page