Skip to main content

Vendor git source directories into your project tree

Project description

ventwig

Vendors source directories from a git repository into your project — as plain files, not as a submodule or package dependency.

Problem

If you maintain several small CLI tools that share configuration and logging boilerplate, the options are:

  • Add a runtime PyPI dependency on that boilerplate — which anyone forking the tool has to explain
  • Copy the files by hand — which drifts

ventwig is a third option: a dev-time tool that clones a canonical upstream repo, copies a designated subdirectory into your project tree, and tracks a content hash so it can detect if the local copy has been hand-edited since the last sync.

Install

pip install ventwig

ventwig is a dev-time tool. Do not list it in [project.dependencies].

Configure

In your project's pyproject.toml:

[[tool.ventwig.sources]]
name          = "appkit"
local_path    = "vendor/appkit"
upstream      = "https://github.com/you/appkit.git"
upstream_path = "src/appkit"    # optional — defaults to repo root
ref           = "main"          # branch name or tag

Multiple [[tool.ventwig.sources]] entries are allowed. ventwig requires the consuming project to be inside a git working tree.

Use

ventwig sync              # sync all configured sources
ventwig sync appkit       # sync one source by name
ventwig sync --dry-run    # preview changes without writing anything
ventwig sync --force      # overwrite even if local content has drifted

ventwig status            # show sync state for all sources
ventwig status appkit     # show sync state for one source

After a successful sync, ventwig writes .ventwig.lock alongside your pyproject.toml. Commit it — it records the synced commit hash and a content tree hash used for drift detection on the next sync.

What it is not

  • Not a package manager. It vendors files, not installed packages.
  • Not bidirectional. Edits always happen upstream; ventwig only pulls.
  • Not git subtree or git submodule. The vendored directory is plain tracked content with no git history coupling.

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

ventwig-0.1.0.tar.gz (49.4 kB view details)

Uploaded Source

Built Distribution

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

ventwig-0.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ventwig-0.1.0.tar.gz
  • Upload date:
  • Size: 49.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for ventwig-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f2b1ca0c9c926b84a0899eb88d83d62c680414939eca9cf87d5c1109bd05c481
MD5 fb28533367baa810b92c28955c9b7c3c
BLAKE2b-256 efa5647aa37bb6dbefabe1c7b0f0d541036e251020f1fc36d13445b22bda2ac6

See more details on using hashes here.

File details

Details for the file ventwig-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ventwig-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for ventwig-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8950f39134ff42205d96973443430116c48b2261d99a83b226f4c373e4da9e02
MD5 098c2dca5b7678a9b410cf56809685b6
BLAKE2b-256 d3674bf616eb5a813c5dfa785d51d81cfa6213a9d036b7407f293e2736fada02

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