swimlane.core.resources.report module¶
-
class
swimlane.core.resources.report.Report(app, raw, **kwargs)[source]¶ Bases:
swimlane.core.resources.base.APIResource,swimlane.core.cursor.PaginatedCursorA report class used for searching
Can be iterated over to retrieve results
Notes
Record retrieval is lazily evaluated and cached internally, adding a filter and attempting to iterate again will not respect the additional filter and will return the same set of records each time
Examples
Lazy retrieval of records with direct iteration over report
report = app.reports.build('new-report') report.filter('field_1', 'equals', 'value') for record in report: do_thing(record)
Full immediate retrieval of all records
report = app.reports.build('new-report') report.filter('field_1', 'doesNotEqual', 'value') records = list(report)
-
name¶ str – Report name
Keyword Arguments: -
default_limit= 50¶
-