Skip to main content

A CLI for managing the lifecycle of directory content across multiple locations.

Project description

content-hub

content-hub is a CLI tool that syncs directory content between one origin and one or more workspaces, driven by a config file.

Quick Start

Requires Python 3.14+.

pip install content-hub

Initialize a config:

contentctl init

This creates content-hub.yaml:

origin: origin
workspaces:
  docs: ./docs

Run sync flows:

contentctl deploy docs              # deploy origin → workspace
contentctl deploy docs --delete     # deploy + remove workspace files missing in origin
contentctl adopt docs               # adopt workspace → origin
contentctl deploy docs --dry-run    # show planned operations without changes

Behavior:

  • --path is relative to the origin/workspace roots (default .).
  • --delete removes workspace files missing in origin, filtered by include/exclude globs.

Config Notes

  • origin sets the primary content directory.
  • workspaces maps aliases to workspace paths.
  • ${VAR} environment variable expansion is supported in config values.

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

content_hub-0.2.0.tar.gz (25.9 kB view details)

Uploaded Source

Built Distribution

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

content_hub-0.2.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file content_hub-0.2.0.tar.gz.

File metadata

  • Download URL: content_hub-0.2.0.tar.gz
  • Upload date:
  • Size: 25.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for content_hub-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ceaa79d130bf2e10665ad50e0433075fe04579e29bc79159ee749a28dad1085b
MD5 8c33faab0ef4ced12c52cdb9760abe41
BLAKE2b-256 6526834455072d96fc88c9fbeaa2eb3f5b418740e9733b517c0940d2e304fb4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for content_hub-0.2.0.tar.gz:

Publisher: on-release-tag.yml on iplaylf2/content-hub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file content_hub-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: content_hub-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for content_hub-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba15ae27e0ded1d9f19d463d2029f00f21df03e8d81fa590fc617a8663b380f0
MD5 df7323c98445f24e7b4e8ac2856619dd
BLAKE2b-256 27329e44d3ab42a0f2bcc4478475091585107c40df29a827c8849da90947650b

See more details on using hashes here.

Provenance

The following attestation bundles were made for content_hub-0.2.0-py3-none-any.whl:

Publisher: on-release-tag.yml on iplaylf2/content-hub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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