The traffic library is based on three main core classes for handling:
aircraft trajectories are accessible through traffic.core.Flight;
collections of aircraft trajectories are traffic.core.Traffic;
airspaces and sectors are represented with traffic.core.Airspace.
Flight and Traffic are wrappers around pandas DataFrames with relevant efficiently implemented methods for trajectory analysis. Airspaces take advantage of shapely Geometries for geometrical analysis.
FlightIterator has been introduced to deal with iteration over pieces of trajectories and for many navigational events (e.g., holding patterns, go-arounds). This structure allows for more flexibility and accuracy when trying to identify specific events.