python module: dabu
¶
platform: Unix synopsis: dabu is a python module to handle a data bubble
pydabu – python data bubble
Contents
- python module:
dabu
- description
- submodules
dabu.analyse_data_structure
- copyright + license
dabu.analyse_file_format
- copyright + license
dabu.check_nasa_ames_format
- copyright + license
dabu.check_netcdf_file
- copyright + license
dabu.compare_json_schemas
- copyright + license
dabu.schema_org_data
- copyright + license
dabu.scripts
- description
- submodules
- copyright + license
- copyright + license
description¶
This is the description for the module dabu belonging to the project pydabu.
submodules¶
dabu.analyse_data_structure
¶
Contents
- python module:
dabu
- description
- submodules
dabu.analyse_data_structure
- copyright + license
dabu.analyse_file_format
- copyright + license
dabu.check_nasa_ames_format
- copyright + license
dabu.check_netcdf_file
- copyright + license
dabu.compare_json_schemas
- copyright + license
dabu.schema_org_data
- copyright + license
dabu.scripts
- description
- submodules
- copyright + license
- copyright + license
functions¶
-
dabu.analyse_data_structure.
analyse_data_structure
(path_name='.', result=None)[source]¶ Author: Daniel Mohr Email: daniel.mohr@dlr.de Date: 2021-07-29 (last change). Analyse the data structure of the given path.
Parameters: - path_name – directory path to analyse
- result – you can give a dict, where the results are appended or overridden
copyright + license¶
Author: Daniel Mohr
Date: 2021-01-19 (last change).
License: GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007.
- Copyright (C) 2021 Daniel Mohr
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/
dabu.analyse_file_format
¶
Contents
- python module:
dabu
- description
- submodules
dabu.analyse_data_structure
- copyright + license
dabu.analyse_file_format
- copyright + license
dabu.check_nasa_ames_format
- copyright + license
dabu.check_netcdf_file
- copyright + license
dabu.compare_json_schemas
- copyright + license
dabu.schema_org_data
- copyright + license
dabu.scripts
- description
- submodules
- copyright + license
- copyright + license
functions¶
-
dabu.analyse_file_format.
analyse_file_format
(path)[source]¶ Author: Daniel Mohr Email: daniel.mohr@dlr.de Date: 2021-01-19 (last change). Analyse the file format of the files stored in result.
Parameters: path – directory path to analyse
-
dabu.analyse_file_format.
analyse_file_format_dict
(result, output_format, store_checksums=True, checksum_file=None)[source]¶ Author: Daniel Mohr Email: daniel.mohr@dlr.de Date: 2021-02-17 (last change). Analyse the file format of the files stored in result.
Parameters: - result – a dict; only the key ‘data’ will be adapted
- output_format – describes the output format in a list
- store_checksums – if True find/calculate checksums for each file
- checksum_file – the file to import the checksums from
copyright + license¶
Author: Daniel Mohr
Date: 2021-01-19 (last change).
License: GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007.
- Copyright (C) 2021 Daniel Mohr
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/
dabu.check_nasa_ames_format
¶
Contents
- python module:
dabu
- description
- submodules
dabu.analyse_data_structure
- copyright + license
dabu.analyse_file_format
- copyright + license
dabu.check_nasa_ames_format
- copyright + license
dabu.check_netcdf_file
- copyright + license
dabu.compare_json_schemas
- copyright + license
dabu.schema_org_data
- copyright + license
dabu.scripts
- description
- submodules
- copyright + license
- copyright + license
functions¶
-
dabu.check_nasa_ames_format.
check_nasa_ames_format
(filename, output_format='human_readable')[source]¶ Author: Daniel Mohr Email: daniel.mohr@dlr.de Date: 2021-02-08 (last change). Checks the given file for the nasa ames format, see:
Parameters: filename – file to analyse
copyright + license¶
Author: Daniel Mohr
Date: 2021-02-08 (last change).
License: GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007.
- Copyright (C) 2021 Daniel Mohr
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/
dabu.check_netcdf_file
¶
Contents
- python module:
dabu
- description
- submodules
dabu.analyse_data_structure
- copyright + license
dabu.analyse_file_format
- copyright + license
dabu.check_nasa_ames_format
- copyright + license
dabu.check_netcdf_file
- copyright + license
dabu.compare_json_schemas
- copyright + license
dabu.schema_org_data
- copyright + license
dabu.scripts
- description
- submodules
- copyright + license
- copyright + license
functions¶
-
dabu.check_netcdf_file.
check_netcdf_file
(file, output_format='human_readable')[source]¶ Author: Daniel Mohr Email: daniel.mohr@dlr.de Date: 2021-02-15 (last change). Checks the give file for the format netCDF. It uses the CF Checker: https://github.com/cedadev/cf-checker
Parameters: file – file to analyse
copyright + license¶
Author: Daniel Mohr
Date: 2021-03-10 (last change).
License: GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007.
- Copyright (C) 2021 Daniel Mohr
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/
dabu.compare_json_schemas
¶
Contents
- python module:
dabu
- description
- submodules
dabu.analyse_data_structure
- copyright + license
dabu.analyse_file_format
- copyright + license
dabu.check_nasa_ames_format
- copyright + license
dabu.check_netcdf_file
- copyright + license
dabu.compare_json_schemas
- copyright + license
dabu.schema_org_data
- copyright + license
dabu.scripts
- description
- submodules
- copyright + license
- copyright + license
functions¶
-
dabu.compare_json_schemas.
compare_json_schemas
(a, b, comparefct=<function assertEqual>)[source]¶ Author: Daniel Mohr Date: 2021-03-10 This function compares the two json schemas a and b.
Parameters: - a – json schema to compare
- b – json schema to compare
- comparefct – compare function to use; e. g. self.assertEqual in unittests
copyright + license¶
Author: Daniel Mohr
Date: 2021-03-10 (last change).
License: GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007.
- Copyright (C) 2021 Daniel Mohr
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/
dabu.schema_org_data
¶
Contents
- python module:
dabu
- description
- submodules
dabu.analyse_data_structure
- copyright + license
dabu.analyse_file_format
- copyright + license
dabu.check_nasa_ames_format
- copyright + license
dabu.check_netcdf_file
- copyright + license
dabu.compare_json_schemas
- copyright + license
dabu.schema_org_data
- copyright + license
dabu.scripts
- description
- submodules
- copyright + license
- copyright + license
functions¶
-
dabu.schema_org_data.
get_schema_org_data
(cachefilepath='', cachefilename='')[source]¶ Author: Daniel Mohr Date: 2021-03-09 This function returns the data from https://schema.org/version/latest/schemaorg-current-https.jsonld as a json-ld structure (parsed by the python module json).
Parameters: - cachefilepath – This path is used as the path for the cachefilename.
- cachefilename – If not set to an empty string, the data is read from this file. If this file does not exists, the data is loadd from the website and stored in this file.
Returns: json-ld structure (parsed by the python module json) as dicts and lists
-
dabu.schema_org_data.
json_schema_from_schema_org
(schemaorg_data, vocabulary, draft='draft-04')[source]¶ Author: Daniel Mohr Date: 2021-03-19 This function generates a json schema from https://schema.org , which desribes the vocabulary.
Parameters: - schemaorg_data – json-ld data from https://schema.org as returned
from
get_schema_org_data()
. - vocabulary – list of words, which are a Schema.org Type (Schema.org vocabulary)
- draft –
the used json schema, could be:
- ’draft-04’
- ’draft-06’
- ’draft-07’
- ’2019-09’
Returns: json schema describing a json-ld for the given vocabulary
- schemaorg_data – json-ld data from https://schema.org as returned
from
copyright + license¶
Author: Daniel Mohr
Date: 2021-03-19 (last change).
License: GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007.
- Copyright (C) 2021 Daniel Mohr
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/
dabu.scripts
¶
synopsis: dabu.scripts
is a python module to store the code for scripts belonging to pydabu.
Contents
- python module:
dabu
- description
- submodules
dabu.analyse_data_structure
- copyright + license
dabu.analyse_file_format
- copyright + license
dabu.check_nasa_ames_format
- copyright + license
dabu.check_netcdf_file
- copyright + license
dabu.compare_json_schemas
- copyright + license
dabu.schema_org_data
- copyright + license
dabu.scripts
- description
- submodules
- copyright + license
- copyright + license
description¶
This is the description for the module dabu.scripts
belonging to the
project pydabu.
dabu.scripts
is a python module to store the code for scripts belonging
to pydabu.
submodules¶
dabu.scripts.pydabu
¶
synopsis: dabu.scripts.pydabu
is a python module to store the code for the script pydabu.
Contents
- python module:
dabu
- description
- submodules
dabu.analyse_data_structure
- copyright + license
dabu.analyse_file_format
- copyright + license
dabu.check_nasa_ames_format
- copyright + license
dabu.check_netcdf_file
- copyright + license
dabu.compare_json_schemas
- copyright + license
dabu.schema_org_data
- copyright + license
dabu.scripts
- description
- submodules
- copyright + license
- copyright + license
functions¶
-
dabu.scripts.pydabu.
pydabu_main
()[source]¶ Author: Daniel Mohr Email: daniel.mohr@dlr.de Date: 2021-01-25 (last change).
copyright + license¶
Author: Daniel Mohr
Date: 2021-03-04 (last change).
License: GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007.
- Copyright (C) 2021 Daniel Mohr
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/
dabu.scripts.json_schema_from_schema_org
¶
synopsis: dabu.scripts.pydabu.json_schema_from_schema_org
is a python module to store the code for the script json_schema_from_schema_org.
Contents
- python module:
dabu
- description
- submodules
dabu.analyse_data_structure
- copyright + license
dabu.analyse_file_format
- copyright + license
dabu.check_nasa_ames_format
- copyright + license
dabu.check_netcdf_file
- copyright + license
dabu.compare_json_schemas
- copyright + license
dabu.schema_org_data
- copyright + license
dabu.scripts
- description
- submodules
- copyright + license
- copyright + license
copyright + license¶
Author: Daniel Mohr
Date: 2021-03-04, 2021-12-06 (last change).
License: GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007.
- Copyright (C) 2021 Daniel Mohr
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/
copyright + license¶
Author: Daniel Mohr
Date: 2021-03-04 (last change).
License: GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007.
- Copyright (C) 2021 Daniel Mohr
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/
copyright + license¶
Author: Daniel Mohr
Date: 2021-03-10 (last change).
License: GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007.
- Copyright (C) 2021 Daniel Mohr
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/