Metadata-Version: 2.4
Name: flagpact
Version: 0.1.1
Summary: Check a Flagsmith config change against every app version before you publish it
Author: Nithinaug
License-Expression: MIT
Project-URL: Homepage, https://github.com/Nithinaug/flagpact
Project-URL: Repository, https://github.com/Nithinaug/flagpact
Project-URL: Issues, https://github.com/Nithinaug/flagpact/issues
Keywords: flagsmith,feature-flags,remote-config,app-versions,testing,release-safety
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: flagsmith==6.7.0
Requires-Dist: flagsmith-flag-engine==11.1.2
Requires-Dist: semver==3.1.2
Dynamic: license-file

# flagpact

Check a Flagsmith config change against every app version before you publish it.

A Flagsmith remote-config value changes, and the apps that read it get the new value at once. An old build still in people's hands can crash the moment you save. flagpact replays each app version's own tests against the new value, shows which versions would break and how many users are on them, and keeps those versions on the previous value with a segment on `app_version`.

## Install

```bash
pip install flagpact
```

Python 3.10 or newer.

## Use

Check a pending value against every app version. It exits 1 if a version would break, and 0 if none would:

```bash
flagpact check --value new.json --config flagpact.json
```

Read a public GitHub repository (or a local folder) and draft a `flagpact.json`. Release tags such as `v1.0.0` and `v2.0.0` each become an app version:

```bash
flagpact import https://github.com/owner/repo --out flagpact.json
```

Open the local console, against a Flagsmith on your own machine:

```bash
flagpact-server .flagpact-keys.env flagpact.json
```

## More

The console, the one-command demo, the GitHub Action, the agent skill for the Flagsmith CLI, and the full documentation are in the repository: https://github.com/Nithinaug/flagpact

flagpact writes only to a Flagsmith on `127.0.0.1` or `localhost`. It is MIT licensed.
