Commit 3b0bd29e authored by parciak's avatar parciak
Browse files

Added GPLv3 using reuse to this project.


Signed-off-by: parciak's avatarMarcel Parciak <marcel.parciak@gmail.com>
parent eca1a760
# SPDX-FileCopyrightText: 2020 https://github.com/github/gitignore
#
# SPDX-License-Identifier: CC0-1.0
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
......@@ -135,4 +139,4 @@ dmypy.json
.pytype/
# Cython debug symbols
cython_debug/
cython_debug/
\ No newline at end of file
# SPDX-FileCopyrightText: 2020 UMG MeDIC <marcel.parciak@med.uni-goettingen.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later
stages:
- test
- publish
......@@ -127,4 +131,4 @@ publish_to_harbor:
- docker build -t harbor.umg.eu/medic/$CI_PROJECT_NAME:latest .
- docker tag harbor.umg.eu/medic/$CI_PROJECT_NAME:latest harbor.umg.eu/medic/$CI_PROJECT_NAME:$AGENTVERSION
- docker push harbor.umg.eu/medic/$CI_PROJECT_NAME:latest
- docker push harbor.umg.eu/medic/$CI_PROJECT_NAME:$AGENTVERSION
- docker push harbor.umg.eu/medic/$CI_PROJECT_NAME:$AGENTVERSION
\ No newline at end of file
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: annotator-agent
Upstream-Contact: Department of Medical Informatics, University Medical Center Göttingen, Germany <marcel.parciak@med.uni-goettingen.de>
Source: https://gitlab.gwdg.de/medinfpub/umg-medic/aw-agents/annotation-agent/
# Sample paragraph, commented out:
#
# Files: src/*
# Copyright: $YEAR $NAME <$CONTACT>
# License: ...
SPDX-FileCopyrightText: 2020 UMG MeDIC <marcel.parciak@med.uni-goettingen.de>
SPDX-License-Identifier: CC0.1.0
\ No newline at end of file
# SPDX-FileCopyrightText: 2020 UMG MeDIC <marcel.parciak@med.uni-goettingen.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later
FROM docker.io/tiangolo/uvicorn-gunicorn-fastapi:python3.8
ENV MODULE_NAME="annotator.main"
......
This diff is collapsed.
# SPDX-FileCopyrightText: 2020 UMG MeDIC <marcel.parciak@med.uni-goettingen.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
......
SPDX-FileCopyrightText: 2020 UMG MeDIC <marcel.parciak@med.uni-goettingen.de>
SPDX-License-Identifier: CC0.1.0
\ No newline at end of file
<!--
SPDX-FileCopyrightText: 2020 UMG MeDIC <marcel.parciak@med.uni-goettingen.de>
SPDX-License-Identifier: GPL-3.0-or-later
-->
An agent barebone for Active Workflow agents.
# Active Workflow Barebone Agent
......
# SPDX-FileCopyrightText: 2020 https://github.com/github/gitignore
#
# SPDX-License-Identifier: CC0-1.0
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
......@@ -135,4 +139,4 @@ dmypy.json
.pytype/
# Cython debug symbols
cython_debug/
cython_debug/
\ No newline at end of file
# SPDX-FileCopyrightText: 2020 UMG MeDIC <marcel.parciak@med.uni-goettingen.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later
import logging
access_log = logging.getLogger("gunicorn.access")
error_log = logging.getLogger("gunicorn.error")
error_log = logging.getLogger("gunicorn.error")
\ No newline at end of file
# SPDX-FileCopyrightText: 2020 UMG MeDIC <marcel.parciak@med.uni-goettingen.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later
VERSION = (0, 2, 0)
__version__ = ".".join(map(str, VERSION))
__version__ = ".".join(map(str, VERSION))
\ No newline at end of file
# SPDX-FileCopyrightText: 2020 UMG MeDIC <marcel.parciak@med.uni-goettingen.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later
from pydantic import BaseSettings
import os
......@@ -27,4 +31,4 @@ agent_description = ""
with open(
os.path.join(os.path.abspath(os.path.dirname(__file__)), os.pardir, "Readme.md")
) as readme:
agent_description = readme.read()
agent_description = readme.read()
\ No newline at end of file
# SPDX-FileCopyrightText: 2020 UMG MeDIC <marcel.parciak@med.uni-goettingen.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later
class ActiveWorkflowError(Exception):
def __init__(self, name: str, message: str):
self.name = name
......@@ -7,4 +11,4 @@ class ActiveWorkflowError(Exception):
class ConfigurationError(Exception):
def __init__(self, message: str):
self.name = "Agent Configuation Error"
self.message = message
self.message = message
\ No newline at end of file
# SPDX-FileCopyrightText: 2020 UMG MeDIC <marcel.parciak@med.uni-goettingen.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later
from annotator.errors import ActiveWorkflowError, ConfigurationError
import datetime
import os
......@@ -284,4 +288,4 @@ async def aw_exception_handler(request: Request, exc: errors.ConfigurationError)
return fastapi.responses.JSONResponse(
status_code=fastapi.status.HTTP_400_BAD_REQUEST,
content=resp.dict(exclude_none=True),
)
)
\ No newline at end of file
# SPDX-FileCopyrightText: 2020 UMG MeDIC <marcel.parciak@med.uni-goettingen.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later
import abc
from typing import Any, Dict, List, Optional, Tuple
......@@ -288,4 +292,4 @@ class ResultCheck(ResultCommon):
class ResponseCheck(ResponseCommon):
result: ResultCheck = Field(ResultCheck(), example=ResultCheck())
result: ResultCheck = Field(ResultCheck(), example=ResultCheck())
\ No newline at end of file
# SPDX-FileCopyrightText: 2020 UMG MeDIC <marcel.parciak@med.uni-goettingen.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later
import datetime
import json
import os
......@@ -77,4 +81,4 @@ class FileInfo(BaseModel):
"r",
) as tpl:
template = Template(tpl.read())
return json.loads(template.render(model=self))
return json.loads(template.render(model=self))
\ No newline at end of file
SPDX-FileCopyrightText: 2020 UMG MeDIC <marcel.parciak@med.uni-goettingen.de>
SPDX-License-Identifier: GPL-3.0-or-later
\ No newline at end of file
SPDX-FileCopyrightText: 2020 UMG MeDIC <marcel.parciak@med.uni-goettingen.de>
SPDX-License-Identifier: GPL-3.0-or-later
\ No newline at end of file
# SPDX-FileCopyrightText: 2020 UMG MeDIC <marcel.parciak@med.uni-goettingen.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later
import sys
import traceback
from typing import Any, Dict, List, Optional, Tuple
......@@ -90,4 +94,4 @@ def upload_jsonld(jsonld: Dict[str, Any], couch_db: str) -> bool:
t, v, tb = sys.exc_info()
error_log.error("Could not connect to CouchDB.")
error_log.error(f"{t}: {v}\n{traceback.print_tb(tb)}")
return False
return False
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment