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.1.0.tar.gz (25.4 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.1.0-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: content_hub-0.1.0.tar.gz
  • Upload date:
  • Size: 25.4 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.1.0.tar.gz
Algorithm Hash digest
SHA256 c7572589973ed885051f4c8b28d051aee35de4ee541cc2955090e9022d20f503
MD5 e6b0808821a6c1ea1b6ffb52386c1cc2
BLAKE2b-256 781953988d8d4c7f953aa0695cd20ace339ea5b725793c9ceb5b6cb095df4334

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: content_hub-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.0 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ef746effb59cb550be317ef7b5a4999beeb657c7aedc627c3bb45be2ba13140
MD5 6ac8d1ae29c7a09a650299f41f48096f
BLAKE2b-256 442fca788a91aa2a9028b559871a3dc4134f44f1cfaa9079ffd33121eb986971

See more details on using hashes here.

Provenance

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