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.1.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.1-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: content_hub-0.2.1.tar.gz
  • Upload date:
  • Size: 26.1 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.1.tar.gz
Algorithm Hash digest
SHA256 da58fe0c047f17084f8d25a4dce2dbadf1e7ad65c2687623d643d6b19afe25f0
MD5 bf252ef7d64b5a9e23434edfa92abc17
BLAKE2b-256 b976c95d1e0da8a78bd583f077eef7100197326dcfae61d367ccba5906e8aef3

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: content_hub-0.2.1-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.7

File hashes

Hashes for content_hub-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85b2d24962f36d630cc150e2302d4a227ce495c97aa1598f66122893729a0657
MD5 93e332d3de186b0e8caf7107ed5cfd67
BLAKE2b-256 04c64bbdaff76f08d00d5e739047ecd32a7e8769cdc155c55697381b5713382a

See more details on using hashes here.

Provenance

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