bibliometa package

Submodules

bibliometa.config module

This file provides constants used throughout other modules.

bibliometa.configuration module

This module provides basic classes used for configuration of other objects.

class bibliometa.configuration.BibliometaConfiguration(d, **kwargs)[source]

Bases: abc.ABC

The abstract BibliometaConfiguration defines a configuration object for use as basis for Bibliometa classes. Configuration values can be accessed using dot notation (e.g., self.config.name).

get_config(*args)[source]

Get configuration. If no args given, the full configuration is returned. Otherwise, only the configuration parameters given in args are returned.

Returns

The calling instance if no args given, else a Config object

Return type

bibliometa.configuration.BibliometaConfiguration or bibliometa.configuration.Config

set_config(**kwargs)[source]

Set configuration for key-value pairs given in kwargs.

Returns

The calling instance

Return type

bibliometa.configuration.BibliometaConfiguration

class bibliometa.configuration.Config(d)[source]

Bases: object

The Config defines a configuration object whose values can be accessed using dot notation (e.g., self.config.name).

bibliometa.conversion module

This module provides the CSV2JSON.

class bibliometa.conversion.CSV2JSON(**kwargs)[source]

Bases: bibliometa.configuration.BibliometaConfiguration

The CSV2JSON allows to configure and run the conversion from an input CSV file to a JSON file containing only those information from the CSV file needed for further analysis.

It extends the abstract BibliometaConfiguration class.

get_config(*args)

Get configuration. If no args given, the full configuration is returned. Otherwise, only the configuration parameters given in args are returned.

Returns

The calling instance if no args given, else a Config object

Return type

bibliometa.configuration.BibliometaConfiguration or bibliometa.configuration.Config

set_config(**kwargs)

Set configuration for key-value pairs given in kwargs.

Returns

The calling instance

Return type

bibliometa.configuration.BibliometaConfiguration

start()[source]

Start the conversion.

Raises

FileNotFoundError – If file given in self.config.i can not be found.

Module contents

Main package of Bibliometa.