src.api.adapters.database_orm module

class src.api.adapters.database_orm.Base[source]

Bases: DeclarativeBase

__init__(**kwargs: Any) None

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

_sa_registry: ClassVar[_RegistryType] = <sqlalchemy.orm.decl_api.registry object>
metadata: ClassVar[MetaData] = MetaData()

Refers to the _schema.MetaData collection that will be used for new _schema.Table objects.

See also

orm_declarative_metadata

registry: ClassVar[_RegistryType] = <sqlalchemy.orm.decl_api.registry object>

Refers to the _orm.registry in use where new _orm.Mapper objects will be associated.

class src.api.adapters.database_orm.EphemerisPointDb[source]

Bases: Base

__init__(**kwargs)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

_sa_class_manager = {'covariance': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'ephemeris_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'position': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'timestamp': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'velocity': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}
covariance: Column[Any]
ephemeris_id
id
position: Column[Any]
timestamp
velocity: Column[Any]
class src.api.adapters.database_orm.InterpolableEphemerisDb[source]

Bases: Base

__init__(**kwargs)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

_sa_class_manager = {'data_source': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'date_collected': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'ephemeris_start': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'ephemeris_stop': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'file_reference': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'frame': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'generated_at': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'points': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'satellite': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'satellite_ref': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}
data_source
date_collected
ephemeris_start
ephemeris_stop
file_reference
frame
generated_at
id
points
satellite
satellite_ref
class src.api.adapters.database_orm.InterpolatedSplineDb[source]

Bases: Base

__init__(**kwargs)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

_sa_class_manager = {'chunk_size': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'created_at': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'ephemeris': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'ephemeris_ref': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'overlap': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'position_splines': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'satellite': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'satellite_ref': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'time_range_end': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'time_range_start': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'velocity_splines': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}
chunk_size
created_at
ephemeris
ephemeris_ref
id
overlap
position_splines: Column[Any]
satellite
satellite_ref
time_range_end
time_range_start
velocity_splines: Column[Any]
class src.api.adapters.database_orm.SatelliteDb[source]

Bases: Base

__init__(**kwargs)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

_sa_class_manager = {'constellation': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'date_added': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'date_modified': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'decay_date': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'generation': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'has_current_sat_number': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'launch_date': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'object_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'object_type': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'rcs_size': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'sat_name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'sat_number': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}
constellation
date_added
date_modified
decay_date
generation
has_current_sat_number
id
launch_date
object_id
object_type
rcs_size
sat_name
sat_number
class src.api.adapters.database_orm.TLEDb[source]

Bases: Base

__init__(**kwargs)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

_sa_class_manager = {'data_source': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'date_collected': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'epoch': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'is_supplemental': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'sat_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'satellite': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'tle_line1': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'tle_line2': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}
data_source
date_collected
epoch
id
is_supplemental
sat_id
satellite
tle_line1
tle_line2
class src.api.adapters.database_orm.TdmPredictionDb[source]

Bases: Base

To store predictions from a TDM format of RA/Dec/Mag for a given observing location

__init__(**kwargs)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

_sa_class_manager = {'creation_date': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'date_added': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'folder_name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'norad_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'predicted_points': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'reference_frame': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'site_name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'time_range_end': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'time_range_start': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'track_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}
creation_date
date_added
folder_name
id
norad_id
predicted_points
reference_frame
site_name
time_range_end
time_range_start
track_id
class src.api.adapters.database_orm.TdmPredictionPointDb[source]

Bases: Base

To store individual prediction points from a TDM format of RA/Dec/Mag for a given observing location

__init__(**kwargs)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

_sa_class_manager = {'apparent_magnitude': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'declination': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'right_ascension': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'tdm_prediction_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'timestamp': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}
apparent_magnitude
declination
id
right_ascension
tdm_prediction_id
timestamp