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.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pkb-0.1.9.tar.gz
  • Upload date:
  • Size: 7.7 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.9.tar.gz
Algorithm Hash digest
SHA256 4585152fbe15eac1f996e5a64062e81b41a7e42e9ad2213a1358db2d2d68360b
MD5 44e71f88c12b74c9371d352ab835c5af
BLAKE2b-256 d4b77d4df2c722237a479e6c5cf50c816da659a501ac21827d3d22bf99735d5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pkb-0.1.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9a0db7ee2c174d51185eba0221de9d5b57dee5322a1f90c59a425147fd0d9520
MD5 94e696999d50f599142fbc59d9a17f31
BLAKE2b-256 17781b15be14839e7025aa24ff87478be56286ed507b429727c024121fbae11d

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