enka 2.4.3__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.
Files changed (56) hide show
  1. enka-2.4.3/.gitattributes +2 -0
  2. enka-2.4.3/.github/workflows/pytest.yml +21 -0
  3. enka-2.4.3/.github/workflows/release.yml +21 -0
  4. enka-2.4.3/.github/workflows/ruff-lint.yml +16 -0
  5. enka-2.4.3/.gitignore +155 -0
  6. enka-2.4.3/.python-version +1 -0
  7. enka-2.4.3/.vscode/settings.json +5 -0
  8. enka-2.4.3/LICENSE +674 -0
  9. enka-2.4.3/PKG-INFO +747 -0
  10. enka-2.4.3/README.md +55 -0
  11. enka-2.4.3/enka/__init__.py +11 -0
  12. enka-2.4.3/enka/assets/data.py +75 -0
  13. enka-2.4.3/enka/assets/gi/file_paths.py +17 -0
  14. enka-2.4.3/enka/assets/gi/manager.py +86 -0
  15. enka-2.4.3/enka/assets/hsr/file_paths.py +28 -0
  16. enka-2.4.3/enka/assets/hsr/manager.py +116 -0
  17. enka-2.4.3/enka/assets/updater.py +53 -0
  18. enka-2.4.3/enka/clients/__init__.py +4 -0
  19. enka-2.4.3/enka/clients/base.py +75 -0
  20. enka-2.4.3/enka/clients/cache.py +106 -0
  21. enka-2.4.3/enka/clients/gi.py +301 -0
  22. enka-2.4.3/enka/clients/hsr.py +392 -0
  23. enka-2.4.3/enka/constants/gi.py +55 -0
  24. enka-2.4.3/enka/constants/hsr.py +140 -0
  25. enka-2.4.3/enka/enums/enum.py +17 -0
  26. enka-2.4.3/enka/enums/gi.py +208 -0
  27. enka-2.4.3/enka/enums/hsr.py +139 -0
  28. enka-2.4.3/enka/errors.py +117 -0
  29. enka-2.4.3/enka/gi.py +6 -0
  30. enka-2.4.3/enka/hsr.py +6 -0
  31. enka-2.4.3/enka/models/enka/__init__.py +3 -0
  32. enka-2.4.3/enka/models/enka/owner.py +33 -0
  33. enka-2.4.3/enka/models/gi/__init__.py +8 -0
  34. enka-2.4.3/enka/models/gi/build.py +25 -0
  35. enka-2.4.3/enka/models/gi/character.py +371 -0
  36. enka-2.4.3/enka/models/gi/costume.py +28 -0
  37. enka-2.4.3/enka/models/gi/icon.py +80 -0
  38. enka-2.4.3/enka/models/gi/player.py +77 -0
  39. enka-2.4.3/enka/models/gi/response.py +36 -0
  40. enka-2.4.3/enka/models/hsr/__init__.py +7 -0
  41. enka-2.4.3/enka/models/hsr/build.py +25 -0
  42. enka-2.4.3/enka/models/hsr/character.py +171 -0
  43. enka-2.4.3/enka/models/hsr/icon.py +65 -0
  44. enka-2.4.3/enka/models/hsr/player.py +58 -0
  45. enka-2.4.3/enka/models/hsr/response.py +35 -0
  46. enka-2.4.3/enka/utils.py +31 -0
  47. enka-2.4.3/examples/cache.py +21 -0
  48. enka-2.4.3/examples/gi.py +77 -0
  49. enka-2.4.3/examples/hsr.py +67 -0
  50. enka-2.4.3/pyproject.toml +38 -0
  51. enka-2.4.3/renovate.json +6 -0
  52. enka-2.4.3/ruff.toml +67 -0
  53. enka-2.4.3/tests/__init__.py +0 -0
  54. enka-2.4.3/tests/test_gi.py +70 -0
  55. enka-2.4.3/tests/test_hsr.py +48 -0
  56. enka-2.4.3/uv.lock +774 -0
@@ -0,0 +1,2 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
@@ -0,0 +1,21 @@
1
+ name: Pytest
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ pytest:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - name: Install uv
15
+ uses: astral-sh/setup-uv@v5
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v5
18
+ with:
19
+ python-version-file: ".python-version"
20
+ - name: Run tests
21
+ run: uv run pytest
@@ -0,0 +1,21 @@
1
+ name: Create Release
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+
7
+ jobs:
8
+ create-release:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Checkout code
12
+ uses: actions/checkout@v4
13
+ with:
14
+ fetch-depth: 0
15
+
16
+ - name: Create release
17
+ uses: seriaati/create-release@main
18
+ with:
19
+ pypi_token: ${{ secrets.PYPI_TOKEN }}
20
+ python_version: "3.11"
21
+ tool: "uv"
@@ -0,0 +1,16 @@
1
+ name: Ruff lint
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ workflow_dispatch:
7
+ pull_request:
8
+ types: [opened, synchronize, reopened, closed]
9
+
10
+ jobs:
11
+ ruff-lint:
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: astral-sh/ruff-action@v2
enka-2.4.3/.gitignore ADDED
@@ -0,0 +1,155 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
105
+ __pypackages__/
106
+
107
+ # Celery stuff
108
+ celerybeat-schedule
109
+ celerybeat.pid
110
+
111
+ # SageMath parsed files
112
+ *.sage.py
113
+
114
+ # Environments
115
+ .env
116
+ .venv
117
+ env/
118
+ venv/
119
+ ENV/
120
+ env.bak/
121
+ venv.bak/
122
+
123
+ # Spyder project settings
124
+ .spyderproject
125
+ .spyproject
126
+
127
+ # Rope project settings
128
+ .ropeproject
129
+
130
+ # mkdocs documentation
131
+ /site
132
+
133
+ # mypy
134
+ .mypy_cache/
135
+ .dmypy.json
136
+ dmypy.json
137
+
138
+ # Pyre type checker
139
+ .pyre/
140
+
141
+ # pytype static type analyzer
142
+ .pytype/
143
+
144
+ # Cython debug symbols
145
+ cython_debug/
146
+
147
+ # PyCharm
148
+ # JetBrains specific template is maintainted in a separate JetBrains.gitignore that can
149
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
150
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
151
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
152
+ #.idea/
153
+
154
+ test.py
155
+ .enka_py/*
@@ -0,0 +1 @@
1
+ 3.10
@@ -0,0 +1,5 @@
1
+ {
2
+ "python.analysis.typeCheckingMode": "standard",
3
+ "python.analysis.importFormat": "relative",
4
+ "python.analysis.diagnosticMode": "workspace"
5
+ }