Skip to content

Commit

Permalink
Integrate license to all skii/ python files
Browse files Browse the repository at this point in the history
  • Loading branch information
boot-sandre committed Oct 20, 2023
1 parent d185819 commit 697927d
Show file tree
Hide file tree
Showing 48 changed files with 336 additions and 0 deletions.
7 changes: 7 additions & 0 deletions skii/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
__version__ = "0.4.1"
7 changes: 7 additions & 0 deletions skii/endpoint/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
7 changes: 7 additions & 0 deletions skii/endpoint/api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
import json
import logging
from ipaddress import IPv4Address, IPv6Address
Expand Down
7 changes: 7 additions & 0 deletions skii/endpoint/apps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from django.apps import AppConfig


Expand Down
7 changes: 7 additions & 0 deletions skii/endpoint/filters.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from datetime import datetime

from django.db.models import Q
Expand Down
7 changes: 7 additions & 0 deletions skii/endpoint/routers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from .student import sub_route as route_student
from .teacher import sub_route as route_teacher
from .location import router as route_location
Expand Down
7 changes: 7 additions & 0 deletions skii/endpoint/routers/abstract.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from typing import List

from ninja import Router, NinjaAPI
Expand Down
7 changes: 7 additions & 0 deletions skii/endpoint/routers/agenda.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from django.http import HttpRequest
from django.contrib.auth import get_user_model
from django.utils.translation import gettext_lazy as _
Expand Down
7 changes: 7 additions & 0 deletions skii/endpoint/routers/lesson.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from typing import List

from django.http import HttpRequest
Expand Down
7 changes: 7 additions & 0 deletions skii/endpoint/routers/location.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from typing import List

from django.db.models import Model
Expand Down
7 changes: 7 additions & 0 deletions skii/endpoint/routers/mixins.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
import logging
from typing import List, Any

Expand Down
7 changes: 7 additions & 0 deletions skii/endpoint/routers/student.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
""" Profile and user are related by foreign key.
"""
from typing import List
Expand Down
7 changes: 7 additions & 0 deletions skii/endpoint/routers/teacher.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
""" Profile and user are related by foreign key.
"""
from typing import List
Expand Down
7 changes: 7 additions & 0 deletions skii/endpoint/schemas/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
7 changes: 7 additions & 0 deletions skii/endpoint/schemas/identifier.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from typing import Type

from ninja.schema import Schema
Expand Down
7 changes: 7 additions & 0 deletions skii/endpoint/schemas/ninja.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from typing import List, Any, Dict

from ninja import Schema
Expand Down
7 changes: 7 additions & 0 deletions skii/endpoint/schemas/response.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from typing import List, Type

from ninja import Schema
Expand Down
7 changes: 7 additions & 0 deletions skii/endpoint/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from devtools import debug
from django.http import HttpRequest
from ninja import Schema
Expand Down
7 changes: 7 additions & 0 deletions skii/platform/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
7 changes: 7 additions & 0 deletions skii/platform/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from django.contrib import admin

from skii.platform.models.agent import (
Expand Down
7 changes: 7 additions & 0 deletions skii/platform/apps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from django.apps import AppConfig


Expand Down
7 changes: 7 additions & 0 deletions skii/platform/constants.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
import copy

LATITUDE_RANGE_CONFIG = {
Expand Down
7 changes: 7 additions & 0 deletions skii/platform/controllers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from datetime import datetime
from typing import Iterable

Expand Down
7 changes: 7 additions & 0 deletions skii/platform/entities.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
import uuid
from dataclasses import dataclass
from datetime import datetime, timedelta, time
Expand Down
7 changes: 7 additions & 0 deletions skii/platform/factories/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from skii.platform.factories.agent import (
SuperUserFactory,
UserFactory,
Expand Down
7 changes: 7 additions & 0 deletions skii/platform/factories/agent.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
import factory

from django.contrib.auth import get_user_model
Expand Down
7 changes: 7 additions & 0 deletions skii/platform/factories/common.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
import factory

from skii.platform.constants import LATITUDE_RANGE_CONFIG, LONGITUDE_RANGE_CONFIG
Expand Down
7 changes: 7 additions & 0 deletions skii/platform/factories/event.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from datetime import timedelta, datetime, UTC

from django.db.models import Model
Expand Down
7 changes: 7 additions & 0 deletions skii/platform/factories/resource.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
import factory

from .common import GeoCoordinateFactory, VisualAlbumFactory, VisualPictureFactory
Expand Down
7 changes: 7 additions & 0 deletions skii/platform/forms.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from django import forms

from skii.platform.entities import mutate_event_state
Expand Down
7 changes: 7 additions & 0 deletions skii/platform/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
# Generated by Django 4.2.5 on 2023-09-17 05:38

from decimal import Decimal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
# Generated by Django 4.2.5 on 2023-09-28 18:40

from django.db import migrations
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
# Generated by Django 4.2.6 on 2023-10-05 00:22

from django.db import migrations, models
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
# Generated by Django 4.2.6 on 2023-10-09 16:28

from django.conf import settings
Expand Down
7 changes: 7 additions & 0 deletions skii/platform/migrations/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
7 changes: 7 additions & 0 deletions skii/platform/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from .user import SkiiUser

__all__ = [
Expand Down
7 changes: 7 additions & 0 deletions skii/platform/models/agent.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from django.contrib.auth import get_user_model
from django.db import models
from django.utils.translation import gettext_lazy as _
Expand Down
Loading

0 comments on commit 697927d

Please sign in to comment.