Creating Ingestion class - conrad-blucher-institute/semaphore GitHub Wiki

These instructions are to help someone create a new Ingestion class for Semaphore.

  1. Create a python class the name file name of which is the same and no more than 10 alphanumeric characters in length, as this has to adhere to the DB constraints for source cods (varchar_10).
  2. The class should be a child of the interface IDataIngestion. It should implement the method ingest_series. Its up to your ingestion class to extract all the information from the request and return the series from this method.
  3. Data should be downloaded, loaded into a series object, inserted into the db, and returned.
  1. Place the new class in src/DataIngestion/DataIngestion
  2. Finally load the reference tables with your new source code and any new series names.

You should now be able to ingest series from your new data source.