mergeway-python
mergeway-python is a Python automation layer for Mergeway repositories. The
published PyPI package is mergeway. It
wraps mergeway-cli, uses the CLI's JSON output as its data boundary, and can
generate typed Python models from a repository's mergeway.yaml schema.
For the broader Mergeway toolset, see the main website:
https://mergewayhq.github.io/
Goals
- provide a Python-first API for Mergeway repository automation
- keep
mergeway-clias the source of truth for reads, writes, and validation - generate typed dataclasses from Mergeway entity definitions
- expose repository operations without introducing a custom persistence layer
Installation
mergeway-python requires mergeway-cli to be available on PATH.
Install the package into your Python environment:
pip install mergeway
If you are working from a local checkout and want an editable install:
pip install -e .
If mergeway-cli is not already available in your environment, install it by
following the official installation guide:
https://mergewayhq.github.io/cli/getting-started/installation/
Quick Example
This example assumes you already have a Mergeway repository on disk:
from pathlib import Path
from mergeway import Database
repo_root = Path("/path/to/mergeway-repo")
db = Database(repo_root / "mergeway.yaml")
db.generate_classes(repo_root / "generated_models.py")
user = db.get("User", "user-alice")
posts = db.export("Post")
print(user.to_payload())
print([post.title for post in posts])
Full Docs
Contributing
Please see CONTRIBUTING.md
Metadata
Release files for mergeway 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mergeway-0.2.0.tar.gz | 12.8 kB | With provenance | Details for mergeway-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mergeway-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for mergeway-0.2.0-py3-none-any.whl |
Total release size: 23.9 kB
Release files / mergeway-0.2.0.tar.gz
| Download URL | mergeway-0.2.0.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb9de0e9a5554e59fd377b1a29b3f51d5e0e600d6a6b8822502ca8276ced8c81
|
|
BLAKE2b-256 checksum How to use checksums |
4e9f539ea0ede68f4cda7d7265bd951ac9bf7e1124270413e77fe2cd72542e47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 4, 2026.
Transparency logRelease files / mergeway-0.2.0-py3-none-any.whl
| Download URL | mergeway-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca7c7890fe0204981731cd2cce49a84c608afc130c744f2ede1e1ace9b63a24d
|
|
BLAKE2b-256 checksum How to use checksums |
9f0aca0cc2edd672ba2f176337ea2c4fa9c7896be020521417aeba236e587c77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 4, 2026.
Transparency logSecurity for mergeway 0.2.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mergeway-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 4, 2026.
Transparency logA 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.