{"id":27727,"library":"ethyca-fides","title":"Fides - Data Privacy as Code","description":"Fides is an open-source ecosystem for data privacy as code, providing tools for privacy engineering, data mapping, consent management, and privacy request automation. Version 2.84.5 supports Python 3.13+ only. Releases are frequent (multiple per month).","status":"active","version":"2.84.5","language":"python","source_language":"en","source_url":"https://github.com/ethyca/fides","tags":["privacy","data-mapping","consent","gdpr","ccpa","fastapi","compliance"],"install":[{"cmd":"pip install ethyca-fides","lang":"bash","label":"Install Fides"}],"dependencies":[{"reason":"Fides 2.x requires Python 3.13 or newer (but <4). Older Python versions are not supported.","package":"python>=3.13","optional":false}],"imports":[{"note":"The FastAPI app instance lives in fides.api.main, not top-level fides.","wrong":"from fides import app","symbol":"FidesApp","correct":"from fides.api.main import app"},{"note":"Config module moved to fides.core.config in recent releases.","wrong":"from fides.config import FidesConfig","symbol":"Config","correct":"from fides.core.config import FidesConfig"},{"note":"Models are under fides.api.ops.models.","wrong":"from fides.models.privacy_request import PrivacyRequest","symbol":"privacy_request","correct":"from fides.api.ops.models.privacy_request import PrivacyRequest"}],"quickstart":{"code":"from fides.api.main import app\nimport os\n\n# Example: configure database URL via environment variable\nos.environ.setdefault('FIDES__DATABASE__SERVER', 'localhost')\nos.environ.setdefault('FIDES__DATABASE__USER', 'fides')\nos.environ.setdefault('FIDES__DATABASE__PASSWORD', 'fides')\nos.environ.setdefault('FIDES__DATABASE__DB', 'fides')\n\n# Access the FastAPI app instance\n@app.get(\"/health\")\nasync def health():\n    return {\"status\": \"ok\"}\n\n# Run with: uvicorn fides.api.main:app --reload","lang":"python","description":"Minimal setup to run the Fides API server. Set required environment variables before importing the app."},"warnings":[{"fix":"Upgrade Python to 3.13 or newer.","message":"Fides 2.x requires Python 3.13+ only. Install on older Python will fail.","severity":"breaking","affected_versions":">=2.0"},{"fix":"Use `from fides.api.main import app`.","message":"The main FastAPI application is imported from `fides.api.main`, not `fides` directly. Common mistake leads to import errors.","severity":"gotcha","affected_versions":">=2.0"},{"fix":"Use `from fides.core.config import FidesConfig`.","message":"Direct use of `fides.config` module is deprecated; configuration classes moved to `fides.core.config`.","severity":"deprecated","affected_versions":">=2.80"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run `pip install ethyca-fides` and ensure you are using Python 3.13+.","cause":"Fides is not installed or installed in wrong Python environment.","error":"ModuleNotFoundError: No module named 'fides'"},{"fix":"Upgrade Python to 3.13 or newer.","cause":"Fides requires Python 3.13+. Older Python versions are not supported.","error":"RuntimeError: The current Python version (<3.13) is not supported by Fides."},{"fix":"Use `from fides.core.config import FidesConfig`.","cause":"Configuration classes have been moved to fides.core.config.","error":"ImportError: cannot import name 'FidesConfig' from 'fides.config'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}