Skip to main content

Flipt Migrator

This is a tool to migrate feature flags from one source (e.g. competitor) to Flipt.

It works by exporting the feature flags from the source into a set of *.features.yml files that can then be imported into Flipt or run as the source data with Flipt in 'local' mode.

Disclaimer

:warning: This tool is best effort and may not work for all use cases. Because of the differences in how feature flags are implemented across different sources and APIs, it is likely that some manual work will be required to get the feature flags into a state that works with Flipt after they have been exported.

The main goal of this tool is to make it easier to get started with Flipt by reducing the amount of manual work required to migrate from another source.

No guarantees are made about the correctness of the exported feature flags. It is recommended that you review the exported feature flags before importing them into Flipt.

Legal

:balance_scale: This tool is not affiliated with or endorsed by any of the sources it supports. All trademarks are the property of their respective owners.

Usage

usage: flipt-migrate [-h] [--source {LaunchDarkly}] [--out OUT]

Migrate from a feature flag source to Flipt.

options:
  -h, --help            show this help message and exit
  --source {LaunchDarkly}
                        The source to migrate from.
  --out OUT             The location to export Flipt data. Defaults to current directory.

Sources

LaunchDarkly

To export feature flags from LaunchDarkly, you will need to set the following environment variables or you will be prompted for them:

  • LAUNCHDARKLY_API_KEY - Your LaunchDarkly API key
  • LAUNCHDARKLY_PROJECT_KEY - The LaunchDarkly project key to export (optional)

Contributing

Conventional Commits

We use Conventional Commits for commit messages. This allows us to automatically generate a changelog and releases with Release Please.

Adding a New Source

To add a new source, you will need to create a new class that inherits from Transformer and implements the transform method. The transform method should return a Collection which maps to the Flipt state model.

Once you have created the new source, you will need to add it to the SOURCES dictionary to load the necessary Transformer in main.py.

The SOURCES dictionary maps the source name to function which returns the implemented Transformer class. The function is used to delay the import of the Transformer class until it is needed as well as to allow each source to prompt for any necessary credentials or arguments.

Development

We use Poetry to manage dependencies and packaging.

Setup

poetry install

Run

poetry run python flipt_migrate/main.py

Format/Lint

We use black for linting and formatting.

poetry run black .

Metadata

Release files for flipt-migrate 0.1.2

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

Source distribution (sdist)

Source distribution for flipt-migrate 0.1.2
File Size Uploaded
flipt_migrate-0.1.2.tar.gz 9.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flipt-migrate 0.1.2
File Interpreter ABI Platform
flipt_migrate-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 20.3 kB

Release files / flipt_migrate-0.1.2.tar.gz

Download URL flipt_migrate-0.1.2.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8b5bdc41a740a655a4b49ded5106dc1b14b58a504337c17f9e778840c0a7f90a
BLAKE2b-256 checksum
How to use checksums
25cdb6033a85e09e4389482105fa143353eaf980e7f41f2c6d354d3d9a0eaec2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / flipt_migrate-0.1.2-py3-none-any.whl

Download URL flipt_migrate-0.1.2-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83a49705e2bd6de4b4c1833c97511ecd6c4bd75604d4fb6b31b729cbb183c85c
BLAKE2b-256 checksum
How to use checksums
f60d3790a0734cbab206711b89729e588dc27cac06f0d1e1d502ac58cc7e443b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

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