Skip to main content

PyPI Python License Status Tests

pyvenvmerge

A Python CLI utility for safely merging multiple virtual environments through deterministic dependency reconstruction instead of direct venv modification.


Features

Environment Analysis

  • Virtual environment validation
  • Python version compatibility checks
  • Dependency extraction using pip freeze

Dependency Resolution

  • PEP 508 compliant parsing
  • Specifier-based merging
  • Conflict detection and resolution
  • Semantic dependency validation

Merge Intelligence

  • Dependency graph analysis
  • Conflict classification
  • Risk analysis and compatibility scoring
  • Dry-run diagnostics

Dependency Support

  • PyPI packages
  • Editable installs (-e)
  • Git dependencies (git+...)
  • File dependencies (package @ file://...)

Reliability

  • Deterministic environment rebuild
  • Two-phase installation pipeline
  • Integrity verification using pip check
  • JSON merge reports

Reporting & Reproducibility

  • Structured merge report generation
  • JSON report export
  • Deterministic lockfile export
  • Resuable report generation layer
  • Serializable merge metadata artifacts

Example

pyvenvmerge envA envB --dry-run

Example output:

Compatibility Score : 82/100
Risk Level          : MEDIUM

Warnings:
⚠ pandas requires numpy<2.0 but selected version is 2.4.2

Installation

pip install pyvenvmerge

Usage

pyvenvmerge envA envB -o mergedEnv

Save structured data

pyvenvmerge envA envB --dry-run --save-report report.json

Export deterministic lockfile

pyvenvmerge envA envB --dry-run --export-lock requirements.lock

Conflict Resolution Strategies

pyvenvmerge envA envB -o mergedEnv --strategy highest
# default

pyvenvmerge envA envB -o mergedEnv --strategy strict

pyvenvmerge envA envB -o mergedEnv --strategy unpinned

Dry-Run Mode

Preview the merge plan without creating an environment:

pyvenvmerge envA envB --dry-run

JSON Report

pyvenvmerge envA envB --dry-run --report json

Limitations

Current limitations:

  • No deep resolution for Git/file dependencies.
  • Environment markers are partially evaluated.
  • Extra merging is basic.
  • Advanced specifiers such as !=, ~=, === are not fully optimized yet.
  • Complex specifier combination are not fully optimized yet.

These will be improved in future versions.


Documentation

Detailed documentation:

ARCHITECTURE CHANGELOG


License

MIT License

Metadata

Release files for pyvenvmerge 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyvenvmerge 1.0.0
File Size Uploaded Provenance Actions
pyvenvmerge-1.0.0.tar.gz 17.4 kB Without provenance Details for pyvenvmerge-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyvenvmerge 1.0.0
File Interpreter ABI Platform Actions
pyvenvmerge-1.0.0-py3-none-any.whl Python 3 none any Details for pyvenvmerge-1.0.0-py3-none-any.whl

Total release size: 35.9 kB

Release files / pyvenvmerge-1.0.0.tar.gz

Download URL pyvenvmerge-1.0.0.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
df23869652b75ed067b7e3c665d17cff8d8662cce0370667549d70440dd19935
BLAKE2b-256 checksum
How to use checksums
1c7762477379304f6b7764af4f413583c0c2624a715771358014bfb5572f236f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / pyvenvmerge-1.0.0-py3-none-any.whl

Download URL pyvenvmerge-1.0.0-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6fc7ac481e42309bb0a0fd6de30fafc5dab7df1857c3d3ebd3d0c4061dffb6c5
BLAKE2b-256 checksum
How to use checksums
179927d7a858948d905a221542f2c43c072de924b09a726245c78389efb83e7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for pyvenvmerge 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page