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.
  • Three commands: set, get, search.
  • 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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: porthub-0.0.1.tar.gz
  • Upload date:
  • Size: 2.7 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.1.tar.gz
Algorithm Hash digest
SHA256 535328d6ed5525543471590d4dd87278f457c9bf3ef6a781bebe30885cc93b67
MD5 0d3671fb62be8c7d1a1c713b049ec11b
BLAKE2b-256 95f827417f4900e12f419e39ec47916a4c51b8bf58fa2bb8eeaef16b9a3628ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: porthub-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 59ddf5542a13b31e44f374630020783dc33f8a75a49410e7f0b7953ca9b80f13
MD5 eb4b43af6dd11ae9365389b2139c0544
BLAKE2b-256 0dbc57b0923f3a909662b023e09d3f9932f6e7b960914727f4a45c29a7510b92

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