inspirehep package

Subpackages

Submodules

inspirehep.celery module

inspirehep.celery_tests module

inspirehep.cli module

INSPIREHEP CLI app instantiation.

inspirehep.config module

INSPIREHEP app configuration.

inspirehep.config.COLLECTIONS_DELETED_RECORDS = '{dbquery} AND NOT deleted:True'

Enhance collection query to exclude deleted records.

inspirehep.config.COLLECTIONS_REGISTER_RECORD_SIGNALS = False

Don’t register the signals when instantiating the extension.

Since we are instantiating the invenio-collections extension two times we don’t want to register the signals twice, but we want to explicitly call register_signals() on our own.

inspirehep.config.COLLECTIONS_USE_PERCOLATOR = False

Define which percolator you want to use.

Default value is False to use the internal percolator. You can also set True to use ElasticSearch to provide percolator resolver. NOTE that ES percolator uses high memory and there might be some problems when creating records.

inspirehep.config.FEATURE_FLAG_ENABLE_UPDATE_TO_LEGACY = False

This feature flag will prevent to send a replace update to legacy.

inspirehep.config.HEP_ONTOLOGY_FILE = 'HEPont.rdf'

Name or path of the ontology to use for hep articles keyword extraction.

inspirehep.config.INSPIRE_FULL_THEME = True

Allows to switch between labs.inspirehep.net view and full version.

inspirehep.config.INSPIRE_REF_UPDATER_WHITELISTS = {'literature': ['accelerator_experiments.record', 'authors.affiliations.record', 'authors.record', 'collaboration.record', 'publication_info.conference_record', 'publication_info.journal_record', 'publication_info.parent_record', 'references.record', 'related_records.record', 'thesis.institutions.record', 'thesis_supervisors.affiliations.record'], 'jobs': ['experiments.record', 'institutions.record'], 'conferences': [], 'experiments': ['affiliation.record', 'related_records.record', 'spokespersons.record'], 'authors': ['advisors.record', 'conferences', 'experiments.record', 'posititions.institutions.record'], 'journals': ['related_records.record'], 'institutions': ['related_records.record']}

Controls which fields are updated when the referred record is updated.

inspirehep.config.RECORDS_DEFAULT_FILE_LOCATION_NAME = 'records'

Name of default records Location reference.

inspirehep.config.RECORDS_DEFAULT_STORAGE_CLASS = 'S'

Default storage class for record files.

inspirehep.config.RECORDS_MIGRATION_SKIP_FILES = False

Disable the downloading of files at record migration time.

Note

This variable takes precedence over RECORDS_SKIP_FILES, but can be overriden by the tasks in the inspirehep.modules.migrator.tasks module.

inspirehep.config.RECORDS_SKIP_FILES = False

Disable the downloading of files at record creation and update times.

Note

The skip_files parameter passed to InspireRecord.create or InspireRecord.update takes precedence on this config variable.

Prevents the “Remember Me” cookie from being accessed by client-side scripts

inspirehep.config.WORKFLOWS_DEFAULT_FILE_LOCATION_NAME = 'holdingpen'

Name of default workflow Location reference.

inspirehep.config.WORKFLOWS_OBJECT_CLASS = 'invenio_workflows_files.api.WorkflowObject'

Enable obj.files API.

inspirehep.factory module

INSPIREHEP app factories.

inspirehep.factory.api_config_loader(app, **kwargs_config)[source]
inspirehep.factory.config_loader(app, **kwargs_config)[source]
inspirehep.factory.instance_path = '/home/docs/checkouts/readthedocs.org/user_builds/inspirehep/envs/latest/var/inspirehep-instance'

Instance path for Invenio.

Defaults to <env_prefix>_INSTANCE_PATH or if environment variable is not set <sys.prefix>/var/<app_name>-instance.

inspirehep.factory.static_folder = '/home/docs/checkouts/readthedocs.org/user_builds/inspirehep/envs/latest/var/inspirehep-instance/static'

Static folder path.

Defaults to <env_prefix>_STATIC_FOLDER or if environment variable is not set <sys.prefix>/var/<app_name>-instance/static.

inspirehep.version module

inspirehep.wsgi module

inspirehep.wsgi_with_coverage module

Module contents

INSPIREHEP.