Skip to main content

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:
npx skills add narumiruna/porthub
  • Skill source: skills/porthub/SKILL.md

Key Rules

A key is valid only when all rules pass:

  1. It is not empty after trimming spaces.
  2. It does not start or end with /.
  3. It does not contain //.
  4. It does not contain ...
  5. It does not end with .md.

Error Behavior

  • Validation failures return non-zero exit code.
  • get returns non-zero when a key is not found.
  • search returns empty output with exit code 0 when 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

porthub-0.0.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

porthub-0.0.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file porthub-0.0.2.tar.gz.

File metadata

  • Download URL: porthub-0.0.2.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

Hashes for porthub-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3f3edf96a76d80faa3f4913ccd90ff0db4088636ce85cd522839a95240795343
MD5 97e8dc5fc7f7c3fc92658b24bfaaabd6
BLAKE2b-256 42809899261ae9117e0c2eaab254eb90a7e77f46e19edaef1986a295faa726f5

See more details on using hashes here.

File details

Details for the file porthub-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: porthub-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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

Hashes for porthub-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2d003f9f275c709e3ebb4433e0bb5ac771fa8410386884db01ab95fa48b20f6
MD5 e1142e4e0d6495eb3c350ce862a8a42e
BLAKE2b-256 42311a812cc00d45dac125e599cf5f2cfeea32a410995014696169373f7a99a5

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