LogoLogo
HomeBlogGet a Demo
  • Introduction
  • Install Lunar
  • Learn the basics
  • 📖Docs
    • Key concepts
    • Component JSON
    • Catalog JSON
    • Lunar CLI Reference
  • 📝Configuration
    • lunar-config.yml
      • catalogers
      • catalogers/hooks
      • domains
      • components
      • collectors
      • collectors/hooks
      • policies
    • lunar.yml
  • 🛠️Plugin SDKs
    • Plugins configuration
      • lunar-cataloger.yml
      • lunar-collector.yml
      • lunar-policy.yml
    • Bash SDK
      • Cataloger
      • Collector
    • Python SDK
      • Collector
      • Policy
        • Check
        • Path
        • ComponentData
        • NoDataError
        • Utility Functions
  • ⚙️SQL API
    • Overview
    • Views
      • domains
      • components
      • component_deltas
      • initiatives
      • policies
      • checks
      • prs
      • catalog
Powered by GitBook

©️ Earthly Technologies

On this page
  • get_results
  • get_last_check
  1. Plugin SDKs
  2. Python SDK
  3. Policy

Utility Functions

The Python Policy SDK provides several utility functions that help with policy development, testing, and debugging.

get_results

get_results()

Retrieves the results of all checks that have been executed in the current process.

  • Returns: A Results object containing information about all executed checks

The Results object has the following properties:

  • passed (bool): Whether all checks passed

  • checks (list): A list of all checks that were executed

get_last_check

get_last_check()

Retrieves the most recently executed check in the current process.

  • Returns: The last Check object that was executed or None if no checks have been executed

PreviousNoDataErrorNextOverview

Last updated 19 hours ago

🛠️