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

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.7.tar.gz (7.5 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.7-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pkb-0.1.7.tar.gz
  • Upload date:
  • Size: 7.5 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.7.tar.gz
Algorithm Hash digest
SHA256 55be847de0003c04f6f7be40108c39f5c6aa4fab6d7cac56a5f1d2749ddadd1c
MD5 7674af14b9aa84ebc0bd730c219fc87d
BLAKE2b-256 bf643f7596deb299f1c9ec4b97e04d2b8376ec01b68aed21e494242787bee46d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pkb-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 10.5 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6011ea235bf3193d6cac220a19a73d4a9507f326937273b14d04897227169406
MD5 2b6e07cbdb1e8ca64acb7cd10337c5ad
BLAKE2b-256 a3f0e0a76d479004155454adf92cb58c3a0db202aad151c3db7d344b27994bd7

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