ezquiz 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ezquiz-0.2.0 → ezquiz-0.2.1}/PKG-INFO +1 -1
- {ezquiz-0.2.0 → ezquiz-0.2.1}/pyproject.toml +1 -1
- {ezquiz-0.2.0 → ezquiz-0.2.1}/src/ezquiz/apigame.py +2 -3
- {ezquiz-0.2.0 → ezquiz-0.2.1}/src/ezquiz/templates/index.html +2 -2
- {ezquiz-0.2.0 → ezquiz-0.2.1}/tests/basic_addition.py +1 -1
- {ezquiz-0.2.0 → ezquiz-0.2.1}/uv.lock +17 -17
- {ezquiz-0.2.0 → ezquiz-0.2.1}/.gitignore +0 -0
- {ezquiz-0.2.0 → ezquiz-0.2.1}/.python-version +0 -0
- {ezquiz-0.2.0 → ezquiz-0.2.1}/README.md +0 -0
- {ezquiz-0.2.0 → ezquiz-0.2.1}/src/ezquiz/__init__.py +0 -0
- {ezquiz-0.2.0 → ezquiz-0.2.1}/src/ezquiz/cligame.py +0 -0
- {ezquiz-0.2.0 → ezquiz-0.2.1}/src/ezquiz/ezquiz.py +0 -0
- {ezquiz-0.2.0 → ezquiz-0.2.1}/src/ezquiz/py.typed +0 -0
|
@@ -21,10 +21,9 @@ class APIGame:
|
|
|
21
21
|
|
|
22
22
|
def start(
|
|
23
23
|
self,
|
|
24
|
-
|
|
25
|
-
param=10,
|
|
24
|
+
**fastapi_kw,
|
|
26
25
|
):
|
|
27
|
-
app = FastAPI()
|
|
26
|
+
app = FastAPI(**fastapi_kw)
|
|
28
27
|
|
|
29
28
|
templates = Jinja2Templates(directory=Path(__file__).parent / "templates")
|
|
30
29
|
|
|
@@ -262,7 +262,7 @@
|
|
|
262
262
|
// Fetch next question
|
|
263
263
|
async function fetchNextQuestion() {
|
|
264
264
|
try {
|
|
265
|
-
const response = await fetch('
|
|
265
|
+
const response = await fetch('api/next', {
|
|
266
266
|
method: 'POST',
|
|
267
267
|
headers: {
|
|
268
268
|
'Content-Type': 'application/json'
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
try {
|
|
306
|
-
const response = await fetch('
|
|
306
|
+
const response = await fetch('api/submit', {
|
|
307
307
|
method: 'POST',
|
|
308
308
|
headers: {
|
|
309
309
|
'Content-Type': 'application/json'
|
|
@@ -53,6 +53,23 @@ wheels = [
|
|
|
53
53
|
{ url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },
|
|
54
54
|
]
|
|
55
55
|
|
|
56
|
+
[[package]]
|
|
57
|
+
name = "ezquiz"
|
|
58
|
+
version = "0.2.1"
|
|
59
|
+
source = { editable = "." }
|
|
60
|
+
dependencies = [
|
|
61
|
+
{ name = "fastapi" },
|
|
62
|
+
{ name = "jinja2" },
|
|
63
|
+
{ name = "uvicorn" },
|
|
64
|
+
]
|
|
65
|
+
|
|
66
|
+
[package.metadata]
|
|
67
|
+
requires-dist = [
|
|
68
|
+
{ name = "fastapi", specifier = ">=0.128.0" },
|
|
69
|
+
{ name = "jinja2", specifier = ">=3.1.6" },
|
|
70
|
+
{ name = "uvicorn", specifier = ">=0.40.0" },
|
|
71
|
+
]
|
|
72
|
+
|
|
56
73
|
[[package]]
|
|
57
74
|
name = "fastapi"
|
|
58
75
|
version = "0.128.0"
|
|
@@ -182,23 +199,6 @@ wheels = [
|
|
|
182
199
|
{ url = "https://files.pythonhosted.org/packages/9f/ed/068e41660b832bb0b1aa5b58011dea2a3fe0ba7861ff38c4d4904c1c1a99/pydantic_core-2.41.5-cp314-cp314t-win_arm64.whl", hash = "sha256:35b44f37a3199f771c3eaa53051bc8a70cd7b54f333531c59e29fd4db5d15008", size = 1974769, upload-time = "2025-11-04T13:42:01.186Z" },
|
|
183
200
|
]
|
|
184
201
|
|
|
185
|
-
[[package]]
|
|
186
|
-
name = "ezquiz"
|
|
187
|
-
version = "0.2.0"
|
|
188
|
-
source = { editable = "." }
|
|
189
|
-
dependencies = [
|
|
190
|
-
{ name = "fastapi" },
|
|
191
|
-
{ name = "jinja2" },
|
|
192
|
-
{ name = "uvicorn" },
|
|
193
|
-
]
|
|
194
|
-
|
|
195
|
-
[package.metadata]
|
|
196
|
-
requires-dist = [
|
|
197
|
-
{ name = "fastapi", specifier = ">=0.128.0" },
|
|
198
|
-
{ name = "jinja2", specifier = ">=3.1.6" },
|
|
199
|
-
{ name = "uvicorn", specifier = ">=0.40.0" },
|
|
200
|
-
]
|
|
201
|
-
|
|
202
202
|
[[package]]
|
|
203
203
|
name = "starlette"
|
|
204
204
|
version = "0.50.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|