Coverage for pds_crawler/transformer/__init__.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

4 statements  

1# -*- coding: utf-8 -*- 

2# pds-crawler - ETL to index PDS data to pdssp 

3# Copyright (C) 2023 - CNES (Jean-Christophe Malapert for Pôle Surfaces Planétaires) 

4# This file is part of pds-crawler <https://github.com/pdssp/pds_crawler> 

5# SPDX-License-Identifier: LGPL-3.0-or-later 

6""" 

7Package: transformer 

8 

9Description: 

10This package contains a collection of modules to transform extracted information to STAC. 

11 

12Exported components: 

13 

14* `StacCatalogTransformer`: A module that converts the extracted PDS catalogs to STAC. 

15* `StacRecordsTransformer`: A module that converts the extracted responses from PDsRecordsWs to STAC. 

16 

17Usage: 

18To use this package, you can import and use the exported components as follows: 

19 

20.. code-block:: python 

21 

22 from pds_crawler.extractor import PDSCatalogsDescription 

23 from pds_crawler.transformer import StacCatalogTransformer 

24 cats = PDSCatalogsDescription(database) 

25 cats.download([pds_collection]) 

26 transf = StacCatalogTransformer(database) 

27 transf.to_stac(cats, [pds_collection]) 

28 transf.save() 

29 

30""" 

31from .pds_to_stac import StacCatalogTransformer 

32from .pds_to_stac import StacRecordsTransformer 

33 

34__all__ = ["StacCatalogTransformer", "StacRecordsTransformer"]