Personal Knowledge Base
Project description
Personal Knowledge Base (PKB)
A tool to organize your personal information using markdown files, folders, and search functionality.
Source Code: https://github.com/hyw208/pkb
Prerequisites
- Python 3.12.7 or higher
Installation
-
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
-
Clone the PKB Repository: Clone the PKB repository to get the necessary
contentfolder and.envfile:git clone https://github.com/hyw208/pkb.git
-
Copy Essential Files: Copy the
contentfolder and.envfile into your knowledge base directory:cp -R ./pkb/content . cp ./pkb/.env .
-
Set Up a Virtual Environment: Create and activate a virtual environment to manage dependencies:
python -m venv .venv source .venv/bin/activate
-
Install the PKB Library: Install the
pkblibrary 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4585152fbe15eac1f996e5a64062e81b41a7e42e9ad2213a1358db2d2d68360b
|
|
| MD5 |
44e71f88c12b74c9371d352ab835c5af
|
|
| BLAKE2b-256 |
d4b77d4df2c722237a479e6c5cf50c816da659a501ac21827d3d22bf99735d5e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a0db7ee2c174d51185eba0221de9d5b57dee5322a1f90c59a425147fd0d9520
|
|
| MD5 |
94e696999d50f599142fbc59d9a17f31
|
|
| BLAKE2b-256 |
17781b15be14839e7025aa24ff87478be56286ed507b429727c024121fbae11d
|