Source code for indra.sources.crog.processor

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

"""Processor for the `Chemical Roles Graph (CRoG)
<https://github.com/chemical-roles/chemical-roles>`_.
"""

from typing import Optional

from ..utils import RemoteProcessor

__all__ = [
    'CrogProcessor',
]

CROG_URL = 'https://raw.githubusercontent.com/chemical-roles/' \
           'chemical-roles/master/docs/_data/crog.indra.json'


[docs]class CrogProcessor(RemoteProcessor): """A processor for the Chemical Roles Graph. Parameters ---------- url : An optional URL. If none given, defaults to :data:`indra.sources.crog.processor.CROG_URL`. """ def __init__(self, url: Optional[str] = None): super().__init__(url=url or CROG_URL)