diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..be3bf3b --- /dev/null +++ b/LICENSE @@ -0,0 +1,12 @@ +AVATAO CONFIDENTIAL + +Copyright (C) 2018 Avatao.com Innovative Learning Kft. +All Rights Reserved. + +All source code, configuration files and documentation contained herein +is, and remains the exclusive property of Avatao.com Innovative Learning Kft. +The intellectual and technical concepts contained herein are proprietary +to Avatao.com Innovative Learning Kft. and are protected by trade secret +or copyright law. Dissemination of this information or reproduction of +this material is strictly forbidden unless prior written permission is +obtained from Avatao.com Innovative Learning Kft. diff --git a/lib/envvars.py b/lib/envvars.py index dd6b8e4..712a926 100644 --- a/lib/envvars.py +++ b/lib/envvars.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from collections import namedtuple from os import environ diff --git a/lib/tao/__init__.py b/lib/tao/__init__.py index e69de29..1179607 100644 --- a/lib/tao/__init__.py +++ b/lib/tao/__init__.py @@ -0,0 +1,3 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + diff --git a/lib/tao/config/__init__.py b/lib/tao/config/__init__.py index 08aca1a..9e0efbb 100644 --- a/lib/tao/config/__init__.py +++ b/lib/tao/config/__init__.py @@ -1 +1,4 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from .envvars import * # pylint: disable=wildcard-import diff --git a/lib/tao/config/envvars.py b/lib/tao/config/envvars.py index 8f50c52..da46222 100644 --- a/lib/tao/config/envvars.py +++ b/lib/tao/config/envvars.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from envvars import prefixed_envvars_to_namedtuple TAOENV = prefixed_envvars_to_namedtuple('AVATAO_', 'taoenvtuple') diff --git a/lib/tfw/__init__.py b/lib/tfw/__init__.py index e69de29..1179607 100644 --- a/lib/tfw/__init__.py +++ b/lib/tfw/__init__.py @@ -0,0 +1,3 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + diff --git a/lib/tfw/components/decorators/__init__.py b/lib/tfw/components/decorators/__init__.py index c3d1ffd..80c5788 100644 --- a/lib/tfw/components/decorators/__init__.py +++ b/lib/tfw/components/decorators/__init__.py @@ -1 +1,4 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from .rate_limiter import RateLimiter diff --git a/lib/tfw/components/decorators/rate_limiter.py b/lib/tfw/components/decorators/rate_limiter.py index c71c86c..d1972b8 100644 --- a/lib/tfw/components/decorators/rate_limiter.py +++ b/lib/tfw/components/decorators/rate_limiter.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from functools import wraps from time import time, sleep diff --git a/lib/tfw/components/directory_monitor.py b/lib/tfw/components/directory_monitor.py index 4c56dec..ccec00f 100644 --- a/lib/tfw/components/directory_monitor.py +++ b/lib/tfw/components/directory_monitor.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from functools import wraps from watchdog.observers import Observer diff --git a/lib/tfw/components/directory_monitoring_event_handler.py b/lib/tfw/components/directory_monitoring_event_handler.py index b9f6186..1f29212 100644 --- a/lib/tfw/components/directory_monitoring_event_handler.py +++ b/lib/tfw/components/directory_monitoring_event_handler.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from os.path import isdir, exists from tfw.components.directory_monitor import DirectoryMonitor diff --git a/lib/tfw/components/history_monitor.py b/lib/tfw/components/history_monitor.py index 0d9279f..690ec7b 100644 --- a/lib/tfw/components/history_monitor.py +++ b/lib/tfw/components/history_monitor.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from os.path import dirname from re import findall from re import compile as compileregex diff --git a/lib/tfw/components/mixins/__init__.py b/lib/tfw/components/mixins/__init__.py index fd2a569..777f20e 100644 --- a/lib/tfw/components/mixins/__init__.py +++ b/lib/tfw/components/mixins/__init__.py @@ -1 +1,4 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from .supervisor_mixin import SupervisorMixin diff --git a/lib/tfw/components/mixins/callback_mixin.py b/lib/tfw/components/mixins/callback_mixin.py index c7a97b0..4f031f0 100644 --- a/lib/tfw/components/mixins/callback_mixin.py +++ b/lib/tfw/components/mixins/callback_mixin.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from functools import partial diff --git a/lib/tfw/components/mixins/supervisor_mixin.py b/lib/tfw/components/mixins/supervisor_mixin.py index 750225a..9a350b9 100644 --- a/lib/tfw/components/mixins/supervisor_mixin.py +++ b/lib/tfw/components/mixins/supervisor_mixin.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + import xmlrpc.client from xmlrpc.client import Fault as SupervisorFault from contextlib import suppress diff --git a/lib/tfw/components/process_managing_event_handler.py b/lib/tfw/components/process_managing_event_handler.py index 5efa227..8ccac85 100644 --- a/lib/tfw/components/process_managing_event_handler.py +++ b/lib/tfw/components/process_managing_event_handler.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from xmlrpc.client import Fault as SupervisorFault from tfw.event_handler_base import TriggerlessEventHandler diff --git a/lib/tfw/components/source_code_event_handler.py b/lib/tfw/components/source_code_event_handler.py index 3f9caf5..6bc020c 100644 --- a/lib/tfw/components/source_code_event_handler.py +++ b/lib/tfw/components/source_code_event_handler.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from os.path import isfile, join, relpath, exists, isdir from glob import glob from fnmatch import fnmatchcase diff --git a/lib/tfw/components/terminado_event_handler.py b/lib/tfw/components/terminado_event_handler.py index eb14431..50245f5 100644 --- a/lib/tfw/components/terminado_event_handler.py +++ b/lib/tfw/components/terminado_event_handler.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from tfw.components.terminado_mini_server import TerminadoMiniServer from tfw.event_handler_base import TriggerlessEventHandler from tfw.config import TFWENV diff --git a/lib/tfw/components/terminado_mini_server.py b/lib/tfw/components/terminado_mini_server.py index e796e8c..9c79b83 100644 --- a/lib/tfw/components/terminado_mini_server.py +++ b/lib/tfw/components/terminado_mini_server.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from tornado.ioloop import IOLoop from tornado.web import Application from terminado import TermSocket, SingleTermManager diff --git a/lib/tfw/config/__init__.py b/lib/tfw/config/__init__.py index d3319d7..215a5fa 100644 --- a/lib/tfw/config/__init__.py +++ b/lib/tfw/config/__init__.py @@ -1 +1,4 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from .envvars import * diff --git a/lib/tfw/config/envvars.py b/lib/tfw/config/envvars.py index 120d166..f239d5c 100644 --- a/lib/tfw/config/envvars.py +++ b/lib/tfw/config/envvars.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from envvars import prefixed_envvars_to_namedtuple TFWENV = prefixed_envvars_to_namedtuple('TFW_', 'tfwenvtuple') diff --git a/lib/tfw/config/logs.py b/lib/tfw/config/logs.py index b9f9ca8..15992b2 100644 --- a/lib/tfw/config/logs.py +++ b/lib/tfw/config/logs.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + import logging logging.basicConfig(level=logging.DEBUG) diff --git a/lib/tfw/event_handler_base.py b/lib/tfw/event_handler_base.py index e60d698..d5e3fc2 100644 --- a/lib/tfw/event_handler_base.py +++ b/lib/tfw/event_handler_base.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from abc import ABC, abstractmethod from tfw.networking.serialization import deserialize_all diff --git a/lib/tfw/fsm_base.py b/lib/tfw/fsm_base.py index 9927215..412adb9 100644 --- a/lib/tfw/fsm_base.py +++ b/lib/tfw/fsm_base.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from typing import List from transitions import Machine diff --git a/lib/tfw/message_sender.py b/lib/tfw/message_sender.py index fbd52fb..18a985d 100644 --- a/lib/tfw/message_sender.py +++ b/lib/tfw/message_sender.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from datetime import datetime from tfw.networking.event_handlers.server_connector import ServerUplinkConnector diff --git a/lib/tfw/networking/__init__.py b/lib/tfw/networking/__init__.py index e69de29..1179607 100644 --- a/lib/tfw/networking/__init__.py +++ b/lib/tfw/networking/__init__.py @@ -0,0 +1,3 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + diff --git a/lib/tfw/networking/controller_connector.py b/lib/tfw/networking/controller_connector.py index d4f3f85..427eefc 100644 --- a/lib/tfw/networking/controller_connector.py +++ b/lib/tfw/networking/controller_connector.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + import zmq from zmq.eventloop.zmqstream import ZMQStream diff --git a/lib/tfw/networking/event_handlers/__init__.py b/lib/tfw/networking/event_handlers/__init__.py index e69de29..1179607 100644 --- a/lib/tfw/networking/event_handlers/__init__.py +++ b/lib/tfw/networking/event_handlers/__init__.py @@ -0,0 +1,3 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + diff --git a/lib/tfw/networking/event_handlers/server_connector.py b/lib/tfw/networking/event_handlers/server_connector.py index b9040ad..f202af6 100644 --- a/lib/tfw/networking/event_handlers/server_connector.py +++ b/lib/tfw/networking/event_handlers/server_connector.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from functools import partial import zmq diff --git a/lib/tfw/networking/serialization.py b/lib/tfw/networking/serialization.py index 73acc27..26e222e 100644 --- a/lib/tfw/networking/serialization.py +++ b/lib/tfw/networking/serialization.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + import json diff --git a/lib/tfw/networking/server/__init__.py b/lib/tfw/networking/server/__init__.py index e69de29..1179607 100644 --- a/lib/tfw/networking/server/__init__.py +++ b/lib/tfw/networking/server/__init__.py @@ -0,0 +1,3 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + diff --git a/lib/tfw/networking/server/controller_responder.py b/lib/tfw/networking/server/controller_responder.py index d85e31a..a745bcb 100644 --- a/lib/tfw/networking/server/controller_responder.py +++ b/lib/tfw/networking/server/controller_responder.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from tfw.networking.controller_connector import ControllerConnector from tfw.networking.serialization import deserialize_all, serialize_all diff --git a/lib/tfw/networking/server/event_handler_connector.py b/lib/tfw/networking/server/event_handler_connector.py index 9fbfbd8..f0a2b55 100644 --- a/lib/tfw/networking/server/event_handler_connector.py +++ b/lib/tfw/networking/server/event_handler_connector.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + import zmq from zmq.eventloop.zmqstream import ZMQStream diff --git a/lib/tfw/networking/server/tfw_server.py b/lib/tfw/networking/server/tfw_server.py index a5f9aa6..7df8c1b 100644 --- a/lib/tfw/networking/server/tfw_server.py +++ b/lib/tfw/networking/server/tfw_server.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + from collections import defaultdict from tornado.web import Application diff --git a/lib/tfw/networking/server/zmq_websocket_handler.py b/lib/tfw/networking/server/zmq_websocket_handler.py index 452c516..2f21249 100644 --- a/lib/tfw/networking/server/zmq_websocket_handler.py +++ b/lib/tfw/networking/server/zmq_websocket_handler.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + import json from abc import ABC, abstractmethod diff --git a/lib/tfw/networking/zmq_connector_base.py b/lib/tfw/networking/zmq_connector_base.py index c4c838a..47a850e 100644 --- a/lib/tfw/networking/zmq_connector_base.py +++ b/lib/tfw/networking/zmq_connector_base.py @@ -1,3 +1,6 @@ +# Copyright (C) 2018 Avatao.com Innovative Learning Kft. +# All Rights Reserved. See LICENSE file for details. + import zmq