ctftime-api 0.1.4__tar.gz → 0.1.6__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.
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/.github/workflows/docs.yml +1 -1
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/.github/workflows/publish.yml +10 -1
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/PKG-INFO +6 -15
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/README.md +5 -13
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/pyproject.toml +1 -2
- ctftime_api-0.1.6/tests/__init__.py +0 -0
- ctftime_api-0.1.6/uv.lock +1492 -0
- ctftime_api-0.1.4/uv.lock +0 -1452
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/.github/dependabot.yml +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/.github/workflows/cleanup.yml +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/.github/workflows/codeql.yml +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/.github/workflows/test.yml +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/.gitignore +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/LICENSE +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/ctftime_api/__init__.py +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/ctftime_api/client.py +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/ctftime_api/models/__init__.py +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/ctftime_api/models/duration.py +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/ctftime_api/models/event.py +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/ctftime_api/models/rating.py +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/ctftime_api/models/team.py +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/ctftime_api/models/vote.py +0 -0
- /ctftime_api-0.1.4/tests/__init__.py → /ctftime_api-0.1.6/ctftime_api/py.typed +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/docs/api/client.md +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/docs/api/models/duration.md +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/docs/api/models/event.md +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/docs/api/models/rating.md +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/docs/api/models/team.md +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/docs/api/models/vote.md +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/docs/assets/fonts/inter/italic.woff2 +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/docs/assets/fonts/inter/italic_ext.woff2 +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/docs/assets/fonts/inter/normal.woff2 +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/docs/assets/fonts/inter/normal_ext.woff2 +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/docs/assets/fonts/jetbrains_mono/normal.woff2 +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/docs/assets/fonts/jetbrains_mono/normal_ext.woff2 +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/docs/index.md +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/docs/stylesheets/fonts.css +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/examples/test_methods/main.py +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/justfile +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/mkdocs.yml +0 -0
- {ctftime_api-0.1.4 → ctftime_api-0.1.6}/tests/test_client.py +0 -0
|
@@ -44,7 +44,7 @@ jobs:
|
|
|
44
44
|
run: uv run mkdocs build
|
|
45
45
|
|
|
46
46
|
- name: Upload docs
|
|
47
|
-
if: github.
|
|
47
|
+
if: ${{ (github.event.inputs.upload || github.ref_type == 'tag') }}
|
|
48
48
|
id: deployment
|
|
49
49
|
uses: actions/upload-pages-artifact@v3
|
|
50
50
|
with:
|
|
@@ -39,15 +39,23 @@ jobs:
|
|
|
39
39
|
- name: Install the project
|
|
40
40
|
run: uv sync --no-group docs --no-group dev
|
|
41
41
|
|
|
42
|
+
- name: Test code
|
|
43
|
+
id: test
|
|
44
|
+
run: uv run pytest
|
|
45
|
+
|
|
42
46
|
- name: Package project
|
|
47
|
+
id: build
|
|
43
48
|
run: uv build -o dist/
|
|
44
49
|
|
|
45
50
|
- name: Sign build artifacts
|
|
51
|
+
id: sign
|
|
52
|
+
if: ${{ (github.event.inputs.upload || github.ref_type == 'tag') }}
|
|
46
53
|
uses: actions/attest-build-provenance@v2
|
|
47
54
|
with:
|
|
48
55
|
subject-path: "dist/*"
|
|
49
56
|
|
|
50
57
|
- name: Upload build artifacts
|
|
58
|
+
id: upload
|
|
51
59
|
uses: actions/upload-artifact@v4
|
|
52
60
|
with:
|
|
53
61
|
name: release-dists
|
|
@@ -62,7 +70,6 @@ jobs:
|
|
|
62
70
|
if: ${{ (github.event.inputs.upload || github.ref_type == 'tag') }}
|
|
63
71
|
|
|
64
72
|
permissions:
|
|
65
|
-
contents: read
|
|
66
73
|
id-token: write
|
|
67
74
|
|
|
68
75
|
environment:
|
|
@@ -70,12 +77,14 @@ jobs:
|
|
|
70
77
|
|
|
71
78
|
steps:
|
|
72
79
|
- name: Retrieve release distributions
|
|
80
|
+
id: download
|
|
73
81
|
uses: actions/download-artifact@v4
|
|
74
82
|
with:
|
|
75
83
|
name: release-dists
|
|
76
84
|
path: dist/
|
|
77
85
|
|
|
78
86
|
- name: Publish package distributions to PyPI
|
|
87
|
+
id: publish
|
|
79
88
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
80
89
|
with:
|
|
81
90
|
attestations: true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ctftime_api
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: CTFTime API wrapper
|
|
5
5
|
Project-URL: repository, https://github.com/jotonedev/ctftime_api
|
|
6
6
|
Project-URL: documentation, https://jotonedev.github.io/ctftime_api/
|
|
@@ -11,7 +11,6 @@ Keywords: api,ctftime,wrapper
|
|
|
11
11
|
Classifier: Development Status :: 4 - Beta
|
|
12
12
|
Classifier: Framework :: Pydantic
|
|
13
13
|
Classifier: Intended Audience :: Developers
|
|
14
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
15
14
|
Classifier: Operating System :: OS Independent
|
|
16
15
|
Classifier: Programming Language :: Python :: 3
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
@@ -43,22 +42,14 @@ A simple Python wrapper for the CTFTime API that provides an asynchronous interf
|
|
|
43
42
|
|
|
44
43
|
## Features
|
|
45
44
|
|
|
46
|
-
- **Asynchronous
|
|
47
|
-
- **Type Safe
|
|
48
|
-
- **Modular
|
|
49
|
-
- **Tested
|
|
45
|
+
- **Asynchronous**: Utilize Python's async/await for non-blocking API requests.
|
|
46
|
+
- **Type Safe**: Fully type annotated using Pydantic models.
|
|
47
|
+
- **Modular**: Organized into client and models modules for easy maintenance and extension.
|
|
48
|
+
- **Tested**: Includes comprehensive unit tests in the [tests](tests/) directory.
|
|
50
49
|
|
|
51
50
|
## Installation
|
|
52
51
|
|
|
53
|
-
Install via
|
|
54
|
-
|
|
55
|
-
```sh
|
|
56
|
-
git clone https://github.com/jotonedev/ctftime_api
|
|
57
|
-
cd ctftime_api
|
|
58
|
-
poetry install
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Or via pip (recommended):
|
|
52
|
+
Install via pip:
|
|
62
53
|
|
|
63
54
|
```sh
|
|
64
55
|
pip install ctftime_api
|
|
@@ -8,22 +8,14 @@ A simple Python wrapper for the CTFTime API that provides an asynchronous interf
|
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
11
|
-
- **Asynchronous
|
|
12
|
-
- **Type Safe
|
|
13
|
-
- **Modular
|
|
14
|
-
- **Tested
|
|
11
|
+
- **Asynchronous**: Utilize Python's async/await for non-blocking API requests.
|
|
12
|
+
- **Type Safe**: Fully type annotated using Pydantic models.
|
|
13
|
+
- **Modular**: Organized into client and models modules for easy maintenance and extension.
|
|
14
|
+
- **Tested**: Includes comprehensive unit tests in the [tests](tests/) directory.
|
|
15
15
|
|
|
16
16
|
## Installation
|
|
17
17
|
|
|
18
|
-
Install via
|
|
19
|
-
|
|
20
|
-
```sh
|
|
21
|
-
git clone https://github.com/jotonedev/ctftime_api
|
|
22
|
-
cd ctftime_api
|
|
23
|
-
poetry install
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
Or via pip (recommended):
|
|
18
|
+
Install via pip:
|
|
27
19
|
|
|
28
20
|
```sh
|
|
29
21
|
pip install ctftime_api
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "ctftime_api"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.6"
|
|
4
4
|
description = "CTFTime API wrapper"
|
|
5
5
|
authors = [{ name = "John Toniutti", email = "john.toniutti@gmail.com" }]
|
|
6
6
|
requires-python = ">=3.11"
|
|
@@ -14,7 +14,6 @@ license = "GPL-3.0-or-later"
|
|
|
14
14
|
classifiers = [
|
|
15
15
|
"Development Status :: 4 - Beta",
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
|
-
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
|
18
17
|
"Framework :: Pydantic",
|
|
19
18
|
"Operating System :: OS Independent",
|
|
20
19
|
"Programming Language :: Python :: 3",
|
|
File without changes
|