✨ Made repo REUSE compliant
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
version = 1
|
version = 1
|
||||||
test_patterns = ["classquiz/tests/**", "test_*.py"]
|
test_patterns = ["classquiz/tests/**", "test_*.py"]
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1,4 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
.env*
|
.env*
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
[flake8]
|
[flake8]
|
||||||
max-line-length = 120
|
max-line-length = 120
|
||||||
extend-ignore = E203
|
extend-ignore = E203
|
||||||
|
|||||||
@@ -1,2 +1,5 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
ko_fi: mawoka
|
ko_fi: mawoka
|
||||||
liberapay: Mawoka
|
liberapay: Mawoka
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
|
||||||
|
SPDX-License-Identifier: MPL-2.0
|
||||||
|
-->
|
||||||
---
|
---
|
||||||
name: Feature request
|
name: Feature request
|
||||||
about: Make a clear demand for improving ClassQuiz 💪
|
about: Make a clear demand for improving ClassQuiz 💪
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
|
||||||
|
SPDX-License-Identifier: MPL-2.0
|
||||||
|
-->
|
||||||
---
|
---
|
||||||
name: Project refactoring
|
name: Project refactoring
|
||||||
about: All issues concerning CI/CD, improvements of documentation, development setup etc. 🔧
|
about: All issues concerning CI/CD, improvements of documentation, development setup etc. 🔧
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
name: Bug Report
|
name: Bug Report
|
||||||
description: File a bug report
|
description: File a bug report
|
||||||
labels: ["bug"]
|
labels: ["bug"]
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
|
||||||
|
SPDX-License-Identifier: MPL-2.0
|
||||||
|
-->
|
||||||
|
|
||||||
#### :tophat: What? Why?
|
#### :tophat: What? Why?
|
||||||
*Please describe your pull request.*
|
*Please describe your pull request.*
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
codecov:
|
codecov:
|
||||||
require_ci_to_pass: false
|
require_ci_to_pass: false
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
# .github/workflows/app.yaml
|
# .github/workflows/app.yaml
|
||||||
name: PyTest
|
name: PyTest
|
||||||
on:
|
on:
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
__pycache__/
|
__pycache__/
|
||||||
.idea/
|
.idea/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
# See https://pre-commit.com for more information
|
# See https://pre-commit.com for more information
|
||||||
# See https://pre-commit.com/hooks.html for more hooks
|
# See https://pre-commit.com/hooks.html for more hooks
|
||||||
repos:
|
repos:
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
*.y*ml
|
*.y*ml
|
||||||
*.json
|
*.json
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
|
||||||
|
SPDX-License-Identifier: MPL-2.0
|
||||||
|
-->
|
||||||
Welcome to the ClassQuiz community
|
Welcome to the ClassQuiz community
|
||||||
|
|
||||||
Grant and indulge critique constructively, within desired privacy.
|
Grant and indulge critique constructively, within desired privacy.
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
|
||||||
|
SPDX-License-Identifier: MPL-2.0
|
||||||
|
-->
|
||||||
# Contribute to ClassQuiz
|
# Contribute to ClassQuiz
|
||||||
|
|
||||||
For the development-setup, please check out the
|
For the development-setup, please check out the
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
#* {
|
#* {
|
||||||
:8080 {
|
:8080 {
|
||||||
# tls /home/mawoka/certs/cert.pem /home/mawoka/certs/key.pem
|
# tls /home/mawoka/certs/cert.pem /home/mawoka/certs/key.pem
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
:8080 {
|
:8080 {
|
||||||
reverse_proxy * http://frontend:3000
|
reverse_proxy * http://frontend:3000
|
||||||
reverse_proxy /api/* http://api:80
|
reverse_proxy /api/* http://api:80
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
FROM python:3.11-slim
|
FROM python:3.11-slim
|
||||||
|
|
||||||
COPY Pipfile* /app/
|
COPY Pipfile* /app/
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
[[source]]
|
[[source]]
|
||||||
url = "https://pypi.org/simple"
|
url = "https://pypi.org/simple"
|
||||||
verify_ssl = true
|
verify_ssl = true
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
|
||||||
|
SPDX-License-Identifier: MPL-2.0
|
||||||
@@ -1,3 +1,9 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
|
||||||
|
SPDX-License-Identifier: MPL-2.0
|
||||||
|
-->
|
||||||
|
|
||||||
<a href="https://github.com/mawoka-myblock/ClassQuiz/stargazers"><img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/mawoka-myblock/classquiz?style=for-the-badge"></a>
|
<a href="https://github.com/mawoka-myblock/ClassQuiz/stargazers"><img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/mawoka-myblock/classquiz?style=for-the-badge"></a>
|
||||||
<a href="https://github.com/mawoka-myblock/ClassQuiz/graphs/contributors"><img alt="GitHub contributors" src="https://img.shields.io/github/contributors/mawoka-myblock/classquiz?color=green&style=for-the-badge"></a>
|
<a href="https://github.com/mawoka-myblock/ClassQuiz/graphs/contributors"><img alt="GitHub contributors" src="https://img.shields.io/github/contributors/mawoka-myblock/classquiz?color=green&style=for-the-badge"></a>
|
||||||
<a href="https://github.com/mawoka-myblock/ClassQuiz/network/members"><img alt="GitHub forks" src="https://img.shields.io/github/forks/mawoka-myblock/classquiz?style=for-the-badge"></a>
|
<a href="https://github.com/mawoka-myblock/ClassQuiz/network/members"><img alt="GitHub forks" src="https://img.shields.io/github/forks/mawoka-myblock/classquiz?style=for-the-badge"></a>
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
|
||||||
|
SPDX-License-Identifier: MPL-2.0
|
||||||
|
-->
|
||||||
|
|
||||||
# Socket.IO-Client-Docs
|
# Socket.IO-Client-Docs
|
||||||
|
|
||||||
## Main structure
|
## Main structure
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
# A generic, single database configuration.
|
# A generic, single database configuration.
|
||||||
|
|
||||||
[alembic]
|
[alembic]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
import sentry_sdk
|
import sentry_sdk
|
||||||
from fastapi import FastAPI, Request
|
from fastapi import FastAPI, Request
|
||||||
|
|||||||
+4
-3
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
import uuid
|
import uuid
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from typing import Dict
|
from typing import Dict
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
import uuid
|
import uuid
|
||||||
from json import loads
|
from json import loads
|
||||||
|
|||||||
+4
-3
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from functools import lru_cache
|
from functools import lru_cache
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import databases
|
import databases
|
||||||
import sqlalchemy
|
import sqlalchemy
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import uuid
|
import uuid
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
import enum
|
import enum
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import smtplib
|
import smtplib
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
|
||||||
|
SPDX-License-Identifier: MPL-2.0
|
||||||
|
-->
|
||||||
<style>
|
<style>
|
||||||
.link-hover {
|
.link-hover {
|
||||||
background: linear-gradient(90deg, #009444, #39b54a, #8dc63f);
|
background: linear-gradient(90deg, #009444, #39b54a, #8dc63f);
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
|
||||||
|
SPDX-License-Identifier: MPL-2.0
|
||||||
|
-->
|
||||||
<div style='box-sizing: border-box;display: block;max-width: 600px;margin: 0 auto;padding: 10px'><span
|
<div style='box-sizing: border-box;display: block;max-width: 600px;margin: 0 auto;padding: 10px'><span
|
||||||
style='color: transparent;height: 0;max-height: 0;max-width: 0;opacity: 0;overflow: hidden;mso-hide: all;visibility: hidden;width: 0'>Let's confirm your email address.</span>
|
style='color: transparent;height: 0;max-height: 0;max-width: 0;opacity: 0;overflow: hidden;mso-hide: all;visibility: hidden;width: 0'>Let's confirm your email address.</span>
|
||||||
<div style='box-sizing: border-box;width: 100%;margin-bottom: 30px;margin-top: 15px'>
|
<div style='box-sizing: border-box;width: 100%;margin-bottom: 30px;margin-top: 15px'>
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
|
||||||
|
SPDX-License-Identifier: MPL-2.0
|
||||||
|
-->
|
||||||
|
|
||||||
<div style='box-sizing: border-box;display: block;max-width: 600px;margin: 0 auto;padding: 10px'><span
|
<div style='box-sizing: border-box;display: block;max-width: 600px;margin: 0 auto;padding: 10px'><span
|
||||||
style='color: transparent;height: 0;max-height: 0;max-width: 0;opacity: 0;overflow: hidden;mso-hide: all;visibility: hidden;width: 0'>Let's confirm your email address.</span>
|
style='color: transparent;height: 0;max-height: 0;max-width: 0;opacity: 0;overflow: hidden;mso-hide: all;visibility: hidden;width: 0'>Let's confirm your email address.</span>
|
||||||
<div style='box-sizing: border-box;width: 100%;margin-bottom: 30px;margin-top: 15px'>
|
<div style='box-sizing: border-box;width: 100%;margin-bottom: 30px;margin-top: 15px'>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import py_avataaars_no_png as pa
|
import py_avataaars_no_png as pa
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import random
|
import random
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
#!/usr/bin/env python2.3
|
#!/usr/bin/env python2.3
|
||||||
|
|
||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
"""Implement Hashcash version 1 protocol in Python
|
"""Implement Hashcash version 1 protocol in Python
|
||||||
+-------------------------------------------------------+
|
+-------------------------------------------------------+
|
||||||
| Written by David Mertz; released to the Public Domain |
|
| Written by David Mertz; released to the Public Domain |
|
||||||
@@ -33,9 +38,7 @@ Notice that '_mint()' behaves deterministically, finding the same suffix
|
|||||||
every time it is passed the same arguments. 'mint()' incorporates a random
|
every time it is passed the same arguments. 'mint()' incorporates a random
|
||||||
salt in stamps (as per the hashcash v.1 protocol).
|
salt in stamps (as per the hashcash v.1 protocol).
|
||||||
"""
|
"""
|
||||||
# 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/.
|
|
||||||
|
|
||||||
from string import ascii_letters
|
from string import ascii_letters
|
||||||
from math import ceil, floor
|
from math import ceil, floor
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
# 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/.
|
|
||||||
import enum
|
import enum
|
||||||
|
|
||||||
from aiohttp import ClientSession
|
from aiohttp import ClientSession
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
|
||||||
|
SPDX-License-Identifier: MPL-2.0
|
||||||
|
-->
|
||||||
|
|
||||||
# Kahoot-Importer
|
# Kahoot-Importer
|
||||||
|
|
||||||
With this package you can search kahoot-quizzes and get their data.
|
With this package you can search kahoot-quizzes and get their data.
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from typing import List, Any, Optional
|
from typing import List, Any, Optional
|
||||||
from uuid import UUID
|
from uuid import UUID
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from aiohttp import ClientSession
|
from aiohttp import ClientSession
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import html
|
import html
|
||||||
import io
|
import io
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from datetime import timedelta, datetime
|
from datetime import timedelta, datetime
|
||||||
|
|
||||||
from fastapi import APIRouter, Request, Response
|
from fastapi import APIRouter, Request, Response
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from classquiz.db.models import User, UserSession
|
from classquiz.db.models import User, UserSession
|
||||||
from fastapi import Response, Request, HTTPException
|
from fastapi import Response, Request, HTTPException
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
import asyncpg
|
import asyncpg
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import uuid
|
import uuid
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
import asyncpg
|
import asyncpg
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from authlib.integrations.starlette_client import OAuth
|
from authlib.integrations.starlette_client import OAuth
|
||||||
from classquiz.config import settings
|
from classquiz.config import settings
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from uuid import UUID
|
from uuid import UUID
|
||||||
|
|
||||||
from fastapi import APIRouter, Depends
|
from fastapi import APIRouter, Depends
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import gzip
|
import gzip
|
||||||
|
|
||||||
from fastapi import APIRouter, Response, HTTPException, Depends
|
from fastapi import APIRouter, Response, HTTPException, Depends
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from fastapi import APIRouter
|
from fastapi import APIRouter
|
||||||
from classquiz.routers.box_controller import web, embedded
|
from classquiz.routers.box_controller import web, embedded
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
# 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/.
|
|
||||||
import os
|
import os
|
||||||
import uuid
|
import uuid
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import enum
|
import enum
|
||||||
import typing
|
import typing
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
|
||||||
|
SPDX-License-Identifier: MPL-2.0
|
||||||
|
-->
|
||||||
|
|
||||||
## Basic Request
|
## Basic Request
|
||||||
|
|
||||||
Every request is a json-object: `{"type": "SOME_TYPE", "data": "ANY_DATA"}`
|
Every request is a json-object: `{"type": "SOME_TYPE", "data": "ANY_DATA"}`
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from fastapi import APIRouter, HTTPException
|
from fastapi import APIRouter, HTTPException
|
||||||
from uuid import UUID
|
from uuid import UUID
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
|
||||||
|
SPDX-License-Identifier: MPL-2.0
|
||||||
|
-->
|
||||||
|
|
||||||
# .cqa - ClassQuizArchive
|
# .cqa - ClassQuizArchive
|
||||||
|
|
||||||
A file-format for ClassQuiz-quizzes which stores images and the quiz in one compact file
|
A file-format for ClassQuiz-quizzes which stores images and the quiz in one compact file
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import html
|
import html
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import io
|
import io
|
||||||
import json
|
import json
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
import enum
|
import enum
|
||||||
import os
|
import os
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import re
|
import re
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from uuid import UUID, uuid4
|
from uuid import UUID, uuid4
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from uuid import UUID, uuid4
|
from uuid import UUID, uuid4
|
||||||
|
|
||||||
from fastapi import APIRouter, Depends, HTTPException
|
from fastapi import APIRouter, Depends, HTTPException
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from fastapi import APIRouter, Depends, HTTPException
|
from fastapi import APIRouter, Depends, HTTPException
|
||||||
|
|
||||||
from classquiz.auth import get_current_user
|
from classquiz.auth import get_current_user
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from uuid import UUID
|
from uuid import UUID
|
||||||
|
|
||||||
from fastapi import APIRouter, Depends, HTTPException
|
from fastapi import APIRouter, Depends, HTTPException
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import pydantic
|
import pydantic
|
||||||
from fastapi import APIRouter
|
from fastapi import APIRouter
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from fastapi import APIRouter
|
from fastapi import APIRouter
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from tempfile import SpooledTemporaryFile
|
from tempfile import SpooledTemporaryFile
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from fastapi import APIRouter
|
from fastapi import APIRouter
|
||||||
from classquiz.db.models import User
|
from classquiz.db.models import User
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import gzip
|
import gzip
|
||||||
import os
|
import os
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
|
||||||
from fastapi import APIRouter, Depends, HTTPException
|
from fastapi import APIRouter, Depends, HTTPException
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import io
|
import io
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
import hashlib
|
import hashlib
|
||||||
import json
|
import json
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import json
|
import json
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from typing import Optional, BinaryIO
|
from typing import Optional, BinaryIO
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
class DeletionFailedError(Exception):
|
class DeletionFailedError(Exception):
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from shutil import copyfileobj
|
from shutil import copyfileobj
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
# 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/.
|
|
||||||
import hashlib
|
import hashlib
|
||||||
import hmac
|
import hmac
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from typing import Generator
|
from typing import Generator
|
||||||
from fastapi.testclient import TestClient
|
from fastapi.testclient import TestClient
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from classquiz.auth import get_password_hash, verify_password, settings, ALGORITHM, create_access_token
|
from classquiz.auth import get_password_hash, verify_password, settings, ALGORITHM, create_access_token
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import io
|
import io
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
from arq import cron
|
from arq import cron
|
||||||
from arq.connections import RedisSettings
|
from arq.connections import RedisSettings
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
# 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/.
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
import ormar.exceptions
|
import ormar.exceptions
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
/*
|
// SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||||
* 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
|
// SPDX-License-Identifier: MPL-2.0
|
||||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
||||||
*/
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user