Metadata-Version: 2.5
Name: configdirector-server-sdk
Version: 1.3.0
Summary: Python server SDK for ConfigDirector. ConfigDirector is a remote configuration and feature flag service.
Project-URL: Homepage, https://www.configdirector.com
Project-URL: Documentation, https://docs.configdirector.com/sdks/server/python
Project-URL: Repository, https://github.com/ConfigDirector/python-server-sdk
Project-URL: Changelog, https://github.com/ConfigDirector/python-server-sdk/blob/main/configdirector-server-sdk/CHANGELOG.md
Project-URL: Support, https://www.configdirector.com/support
Author: ConfigDirector
License-Expression: MIT
License-File: LICENSE
Keywords: config,configdirector,configuration,feature flag,feature switch,feature toggle,remote config,remote configuration
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
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: Programming Language :: Python :: 3.14
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: urllib3<3,>=2.7
Description-Content-Type: text/markdown

# ConfigDirector Python SDK

[![CI][ci-badge]][ci] [![PyPI][pypi-badge]][pypi]

Python server SDK for [ConfigDirector](https://www.configdirector.com), remote config and feature flags with typed values, JSON Schema validation, and safe renames of live flags. Start free, no card required.

## Install

```bash
pip install configdirector-server-sdk
```

## Retrieve a value

```python
from configdirector import create_client

# The server SDK key is a secret. Do not commit it to your source code.
client = create_client("YOUR-SERVER-SDK-KEY")
client.initialize()

new_checkout = client.get_value("new-checkout", False)
```

Full details are in the [official documentation](https://docs.configdirector.com/sdks/server/python).

## Documentation

Refer to the [official documentation for the Python SDK](https://docs.configdirector.com/sdks/server/python).

There is also [a quickstart guide for ConfigDirector and any of our SDKs](https://docs.configdirector.com/getting-started/quickstart).

## Sample apps

[`samples/configdirector-server-sdk/`](https://github.com/ConfigDirector/python-server-sdk/tree/main/samples/configdirector-server-sdk)
holds small, runnable applications built on this SDK, one per web framework. Start with
[`flask`](https://github.com/ConfigDirector/python-server-sdk/tree/main/samples/configdirector-server-sdk/flask):

```bash
cd samples/configdirector-server-sdk/flask
uv run flask --app app run --port 3600
```

## OpenFeature

To read ConfigDirector flags through the [OpenFeature](https://openfeature.dev) API, use
[`configdirector-openfeature-server-provider`](https://pypi.org/project/configdirector-openfeature-server-provider/),
which is built on this SDK.

## Getting Help

- [Ask a question in Discussions](https://github.com/orgs/ConfigDirector/discussions)
- [Contact support](https://www.configdirector.com/support)

[//]: # "links"
[ci-badge]: https://github.com/ConfigDirector/python-server-sdk/actions/workflows/ci.yml/badge.svg
[ci]: https://github.com/ConfigDirector/python-server-sdk/actions/workflows/ci.yml
[pypi-badge]: https://img.shields.io/pypi/v/configdirector-server-sdk
[pypi]: https://pypi.org/project/configdirector-server-sdk/
