python module: dabu

platform:Unix
synopsis:dabu is a python module to handle a data bubble

pydabu – python data bubble

description

This is the description for the module dabu belonging to the project pydabu.

submodules

dabu.analyse_file_format

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/

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/

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/

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

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

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/

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

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-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/