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.2.tar.gz (26.1 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.2-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for content_hub-0.2.2.tar.gz
Algorithm Hash digest
SHA256 0c6ddc1e490b1e29e602f8c8c83862e0a923f12e1064f2200f823d52c565e6a0
MD5 3e43ac265ab018ad356e240d9e4faf1b
BLAKE2b-256 ecc8cba2f1d1ee0d81b1c2f86cb32f2eb3e6837834b9dd0a482b05259e545bf0

See more details on using hashes here.

Provenance

The following attestation bundles were made for content_hub-0.2.2.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.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for content_hub-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 93a8bcc5d943d2688f37aec98de0d33472c691258408bfbc02287f01982228fe
MD5 dd3eb0a27e560f8b88e1530cd713832d
BLAKE2b-256 5888c5bc660ee55b69fe27116c98036b70354360b3ed81c63cdf4cb74bf02a97

See more details on using hashes here.

Provenance

The following attestation bundles were made for content_hub-0.2.2-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