No project description provided
Project description
PortHub
PortHub is a local-first CLI tool for storing and retrieving Markdown context by hierarchical keys.
MVP Scope
- Local filesystem storage only (
~/.porthub). - CLI-only workflows.
- Four commands:
set,get,search,list. - Exact match for
get. - Case-insensitive substring match for
search.
Install
uv sync
You can run commands either through uv:
uv run porthub --help
Or through the installed script:
porthub --help
Usage
Set Markdown content:
porthub set python/typer "# Typer\nCLI framework for Python"
Get content by exact key:
porthub get python/typer
Search by key or content (case-insensitive):
porthub search typer
List all keys:
porthub list
Skills
This repository includes a local skill for package-documentation retrieval workflows:
- Install (method 1):
npx skills add narumiruna/porthub
- Install (method 2):
npx ctx7 skills install narumiruna/porthub
- Skill source:
skills/porthub/SKILL.md
Key Rules
A key is valid only when all rules pass:
- It is not empty after trimming spaces.
- It does not start or end with
/. - It does not contain
//. - It does not contain
... - It does not end with
.md.
Error Behavior
- Validation failures return non-zero exit code.
getreturns non-zero when a key is not found.searchreturns empty output with exit code0when no match exists.
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
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 porthub-0.0.3.tar.gz.
File metadata
- Download URL: porthub-0.0.3.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30ff4e83af4234eef92f6e8a1a74caf98a767cea8f0a366f9a3304a675f703d1
|
|
| MD5 |
8c7fb39742c208dbb2d0180430214b31
|
|
| BLAKE2b-256 |
e29824eefc8ac698a885389b07110ff05329114d8af198e7543ee54b2caae127
|
File details
Details for the file porthub-0.0.3-py3-none-any.whl.
File metadata
- Download URL: porthub-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f29b11db01c7b9db2ea30beeb33b67dd51bc508df111ea1673a3cbf2a11c883c
|
|
| MD5 |
a0dce1004d1e1b2a82f13f590290bf13
|
|
| BLAKE2b-256 |
cb92820d4d4a17cb424b8ca1db94bf621d61c10b255e7d3164c7de6a5dd92701
|