flowmachine¶
Source: flowmachine/__init__.py
FlowMachine is a Python based SQL wrapper built specifically for Flowminder's PostgreSQL CDR database: Flowdb.
It provides a standardised way of interfacing with our postgres database. FlowMachine provides SQL based queries that compute commonly used features and metrics to do with CDR data, such as DailyLocations
, ModalLocations
, Flows
and RadiusOfGyration
. The heart of flowmachine is the AbstractBaseClass Query, which defines how an SQL-based feature behaves. All metrics define an SQL querty, and inherit from FlowMachine's main Query()
class.