> ## Documentation Index
> Fetch the complete documentation index at: https://docs.responsibleailabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Python: Compliance

> client.compliance_check() - regulatory framework checks.

<Info>
  **Concept:** [Compliance](/concepts/compliance) | **API:** [Compliance API](/api-reference/compliance)
</Info>

<CodeGroup>
  ```python Single framework theme={null}
  from rail_score_sdk import RailScoreClient

  client = RailScoreClient(api_key="YOUR_RAIL_API_KEY")

  result = client.compliance_check(
      content="We process user data to improve recommendations.",
      frameworks=["gdpr"],
      context="B2C SaaS serving EU users",
  )

  print(f"Compliant: {result.overall_compliant}")
  for framework, check in result.frameworks.items():
      print(f"{framework}: {'PASS' if check.compliant else 'FAIL'}")
      for issue in check.issues:
          print(f"  - {issue.description}")
          print(f"    Remedy: {issue.remediation}")
  ```

  ```python Multiple frameworks theme={null}
  result = client.compliance_check(
      content="Our AI hiring tool screens resumes automatically.",
      frameworks=["gdpr", "eu_ai_act", "ccpa"],
      context="AI-assisted hiring platform",
  )
  ```

  ```python Healthcare theme={null}
  result = client.compliance_check(
      content="Patient records are stored and shared with authorized providers.",
      frameworks=["hipaa"],
      context="EHR system for US healthcare providers",
  )
  ```
</CodeGroup>
