完成森空岛api model

This commit is contained in:
qwerdvd 2023-07-20 13:50:59 +08:00
parent 600e6d260b
commit 1fd568b00a
10 changed files with 4039 additions and 0 deletions

673
.gitignore vendored Normal file
View File

@ -0,0 +1,673 @@
# Created by https://www.toptal.com/developers/gitignore/api/visualstudio,visualstudiocode,jetbrains+all,python
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudio,visualstudiocode,jetbrains+all,python
### JetBrains+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# AWS User-specific
.idea/**/aws.xml
# Generated files
.idea/**/contentModel.xml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr
# CMake
cmake-build-*/
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# File-based project format
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# SonarLint plugin
.idea/sonarlint/
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Editor-based Rest Client
.idea/httpRequests
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
### JetBrains+all Patch ###
# Ignore everything but code style settings and run configurations
# that are supposed to be shared within teams.
.idea/*
### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
.pybuilder/
target/
# Jupyter Notebook
.ipynb_checkpoints
# IPython
profile_default/
ipython_config.py
# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version
# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock
# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock
# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/
# Celery stuff
celerybeat-schedule
celerybeat.pid
# SageMath parsed files
*.sage.py
# Environments
.env/
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker
.pyre/
# pytype static type analyzer
.pytype/
# Cython debug symbols
cython_debug/
# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
### VisualStudioCode ###
!.vscode/*
# Local History for Visual Studio Code
.history/
# Built Visual Studio Code Extensions
*.vsix
### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide
# Support for Project snippet scope
.vscode/*.code-snippets
# Ignore code-workspaces
*.code-workspace
### VisualStudio ###
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Mono auto generated files
mono_crash.*
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# Visual Studio 2017 auto generated files
Generated\ Files/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
# ASP.NET Scaffolding
ScaffoldingReadMe.txt
# StyleCop
StyleCopReport.xml
# Files built by Visual Studio
*_i.c
*_p.c
*_h.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.tlog
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# Visual Studio Trace Files
*.e2e
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# AxoCover is a Code Coverage Tool
.axoCover/*
!.axoCover/settings.json
# Coverlet is a free, cross platform Code Coverage Tool
coverage*.json
coverage*.xml
coverage*.info
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
*.appxbundle
*.appxupload
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!?*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
ServiceFabricBackup/
*.rptproj.bak
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
*- [Bb]ackup.rdl
*- [Bb]ackup ([0-9]).rdl
*- [Bb]ackup ([0-9][0-9]).rdl
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio 6 auto-generated project file (contains which files were open etc.)
*.vbp
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
*.dsw
*.dsp
# Visual Studio 6 technical files
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# CodeRush personal settings
.cr/personal
# Python Tools for Visual Studio (PTVS)
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
# OpenCover UI analysis results
OpenCover/
# Azure Stream Analytics local run output
ASALocalRun/
# MSBuild Binary and Structured Log
*.binlog
# NVidia Nsight GPU debugger configuration file
*.nvuser
# MFractors (Xamarin productivity tool) working folder
.mfractor/
# Local History for Visual Studio
.localhistory/
# Visual Studio History (VSHistory) files
.vshistory/
# BeatPulse healthcheck temp database
healthchecksdb
# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder
.ionide/
# Fody - auto-generated XML schema
FodyWeavers.xsd
# VS Code files for those working on multiple tools
# Local History for Visual Studio Code
# Windows Installer files from build outputs
*.cab
*.msi
*.msix
*.msm
*.msp
# JetBrains Rider
*.sln.iml
### VisualStudio Patch ###
# Additional files built by Visual Studio
# End of https://www.toptal.com/developers/gitignore/api/visualstudio,visualstudiocode,jetbrains+all,python,data
### CI ###
result.txt
### ArknightsUID ###
### Debug ###
testnb2/

37
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,37 @@
ci:
autofix_commit_msg: "🚨 `pre-commit-ci`修复格式错误"
skip:
- "poetry-lock"
autofix_prs: true
autoupdate_branch: v4
autoupdate_schedule: monthly
autoupdate_commit_msg: "⬆️ `pre-commit-ci`自动升级"
repos:
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/hadialqattan/pycln
rev: v2.1.5
hooks:
- id: pycln
- repo: https://github.com/python-poetry/poetry
rev: 1.5.0
hooks:
- id: poetry-check
- id: poetry-lock
- id: poetry-export
args: ["-f", "requirements.txt", "--without-hashes", "-o", "requirements.txt"]
verbose: true

View File

@ -0,0 +1 @@

View File

View File

@ -0,0 +1,486 @@
import datetime
from typing import Dict, List, Optional
import msgspec
from msgspec import Struct, field
class PlayerSkinAsset(Struct):
pass
class PlayerCharAsset(Struct):
pass
class PlayerManufactureFormulaInfo(Struct):
id_: str = field(name='id')
itemId: str
count: int
weight: int
costs: List[str]
costPoint: int
class PlayerEquipmentInfo(Struct):
id_: str = field(name='id')
name: str
desc: str
typeIcon: str
typeName1: str
shiningColor: str
class PlayerCampaignZoneInfo(Struct):
id_: str = field(name='id')
name: str
class PlayerMedalInfo(Struct):
pass
class PlayerCampaignInfo(Struct):
id_: str = field(name='id')
name: str
campaignZoneId: str
class PlayerRogueInfo(Struct):
id_: str = field(name='id')
name: str
sort: int
class PlayerTowerInfo(Struct):
id_: str = field(name='id')
name: str
subName: str
hasHard: bool
stageNum: int
class PlayerZoneInfo(Struct):
id_: str = field(name='id')
name: str
class PlayerActivityInfo(Struct):
id_: str = field(name='id')
name: str
startTime: int
endTime: int
rewardEndTime: int
isReplicate: bool
type_: str = field(name='type')
class PlayerStageInfo(Struct):
id_: str = field(name='id')
code: str
name: str
class PlayerSkinInfo(Struct):
id_: str = field(name='id')
name: str
brandId: str
brandName: str
brandCapitalName: str
illustId: str
dynIllustId: str
avatarId: str
portraitId: str
sortId: int
displayTagId: str
skinGroupId: str
class PlayerCharInfo(Struct):
id_: str = field(name='id')
name: str
nationId: str
groupId: str
displayNumber: str
rarity: int
profession: str
subProfessionId: str
class ActivityZoneStageStatus(Struct):
stageId: str
completed: bool
class ActivityZone(Struct):
zoneId: str
zoneReplicaId: str
clearedStage: int
totalStage: int
stageStatus: List[ActivityZoneStageStatus]
class PlayerActivity(Struct):
actId: str
actReplicaId: str
type_: str = field(name='type')
zones: List[ActivityZone]
class RewoardItem(Struct):
current: int
total: int
class PlayerRoutine(Struct):
daily: RewoardItem
weekly: RewoardItem
class BankItem(Struct):
current: int
record: int
class RogueRecord(Struct):
rogueId: str
clearTime: int
relicCnt: int
bank: BankItem
mission: RewoardItem
class PlayerRogue(Struct):
records: List[RogueRecord]
class TowerReward(Struct):
higherItem: RewoardItem
lowerItem: RewoardItem
termTs: int
class TowerRecord(Struct):
towerId: str
best: int
hasHard: bool
stageNum: int
unlockHard: bool
hardBest: int
class PlayerTower(Struct):
records: List[TowerRecord]
reward: TowerReward
class CampaignReward(Struct):
current: int
total: int
class CampaignRecord(Struct):
campaignId: str
maxKills: int
class PlayerCampaign(Struct):
records: List[CampaignRecord]
reward: CampaignReward
class RecruitTag(Struct):
tagId: int
pick: int
class PlayerRecruit(Struct):
startTs: int
finishTs: int
duration: int
selectTags: List[Optional[RecruitTag]]
state: int
class BuildingTrainingTrainee(Struct):
charId: str
targetSkill: int
ap: int
lastApAddTime: int
class BuildingTrainingTrainer(Struct):
charId: str
ap: int
lastApAddTime: int
class BuildingClue(Struct):
own: int
received: int
dailyReward: bool
needReceive: int
board: List[str]
sharing: bool
shareCompleteTime: int
class BuildingCharBubbleInfo(Struct):
add: int
ts: int
class BuildingCharBubble(Struct):
normal: BuildingCharBubbleInfo
assist: BuildingCharBubbleInfo
class BuildingChar(Struct):
charId: str
ap: int
lastApAddTime: int
index: int
bubble: BuildingCharBubble
workTime: int
class BuildingControl(Struct):
slotId: str
slotState: int
level: int
chars: List[BuildingChar]
class BuildingCorridor(Struct):
slotId: str
slotState: int
level: int
class BuildingElevator(Struct):
slotId: str
slotState: int
level: int
class BuildingFurniture(Struct):
total: int
class BuildingLabor(Struct):
maxValue: int
value: int
lastUpdateTime: int
remainSecs: int
class BuildingTraining(Struct):
slotId: str
level: int
trainee: BuildingTrainingTrainee
trainer: BuildingTrainingTrainer
remainPoint: float
speed: float
lastUpdateTime: int
remainSecs: int
slotState: int
class BuildingHire(Struct):
slotId: str
level: int
chars: List[BuildingChar]
state: int
refreshCount: int
completeWorkTime: int
slotState: int
class BuildingMeeting(Struct):
slotId: str
level: int
chars: List[BuildingChar]
clue: BuildingClue
lastUpdateTime: int
completeWorkTime: int
class BuildingDormitories(Struct):
slotId: str
level: int
chars: List[BuildingChar]
comfort: int
class BuildingTradings(Struct):
slotId: str
level: int
chars: List[BuildingChar]
completeWorkTime: int
lastUpdateTime: int
strategy: str
stock: List[int]
stockLimit: int
class BuildingManufactures(Struct):
slotId: str
level: int
chars: List[BuildingChar]
completeWorkTime: int
lastUpdateTime: int
formulaId: str
capacity: int
weight: int
complete: int
remain: int
speed: float
class BuildingPower(Struct):
slotId: str
level: int
chars: List[BuildingChar]
class PlayerBuilding(Struct):
tiredChars: List[str]
powers: List[BuildingPower]
manufactures: List[BuildingManufactures]
tradings: List[BuildingTradings]
dormitories: List[BuildingDormitories]
meeting: BuildingMeeting
hire: BuildingHire
training: BuildingTraining
labor: BuildingLabor
furniture: BuildingFurniture
elevators: List[BuildingElevator]
corridors: List[BuildingCorridor]
control: BuildingControl
class PlayerInfoSkin(Struct):
id_: str = field(name='id')
ts: int
class PlayerInfoCharSkill(Struct):
id_: str = field(name='id')
specializeLevel: int
class PlayerInfoCharEquip(Struct):
id_: str = field(name='id')
level: int
class PlayerInfoChar(Struct):
charId: str
skinId: str
level: int
evolvePhase: int
potentialRank: int
mainSkillLvl: int
skills: Optional[List[PlayerInfoCharSkill]]
equip: Optional[List[PlayerInfoCharEquip]]
favorPercent: int
defaultSkillId: str
gainTime: int
defaultEquipId: str
class PlayerAssistCharEquip(Struct):
id_: str = field(name='id')
level: int
class PlayerAssistChar(Struct):
charId: str
skinId: str
level: int
evolvePhase: int
potentialRank: int
skillId: str
mainSkillLvl: int
specializeLevel: int
equip: Optional[PlayerAssistCharEquip]
class PlayerMedal(Struct):
type_: str = field(name='type')
template: str
templateMedalList: List[str]
customMedalLayout: List[str]
total: int
class PlayerStatusAp(Struct):
current: int
max: int
lastApAddTime: int
completeRecoveryTime: int
class PlayerStatusSecretary(Struct):
charId: str
skinId: str
class PlayerStatusAvatar(Struct):
type_: str = field(name='type')
id_: str = field(name='id')
class PlayerStatus(Struct):
uid: str
name: str
level: int
avatar: PlayerStatusAvatar
registerTs: int
mainStageProgress: str
secretary: PlayerStatusSecretary
resume: str
subscriptionEnd: int
ap: PlayerStatusAp
storeTs: int
lastOnlineTs: int
charCnt: int
furnitureCnt: int
skinCnt: int
class DisplayShowConfig(Struct):
charSwitch: bool
skinSwitch: bool
standingsSwitch: bool
class ArknightsPlayerInfoModel(Struct, omit_defaults=True, gc=False):
currentTs: int
showConfig: DisplayShowConfig
status: PlayerStatus
medal: PlayerMedal
assistChars: List[PlayerAssistChar]
chars: List[PlayerInfoChar]
skins: List[PlayerInfoSkin]
building: PlayerBuilding
recruit: List[PlayerRecruit]
campaign: PlayerCampaign
tower: PlayerTower
rogue: PlayerRogue
routine: PlayerRoutine
activity: List[PlayerActivity]
charInfoMap: Dict[str, PlayerCharInfo]
skinInfoMap: Dict[str, PlayerSkinInfo]
stageInfoMap: Dict[str, PlayerStageInfo]
activityInfoMap: Dict[str, PlayerActivityInfo]
zoneInfoMap: Dict[str, PlayerZoneInfo]
towerInfoMap: Dict[str, PlayerTowerInfo]
rogueInfoMap: Dict[str, PlayerRogueInfo]
campaignInfoMap: Dict[str, PlayerCampaignInfo]
medalInfoMap: Dict[str, PlayerMedalInfo]
campaignZoneInfoMap: Dict[str, PlayerCampaignZoneInfo]
equipmentInfoMap: Dict[str, PlayerEquipmentInfo]
manufactureFormulaInfoMap: Dict[str, PlayerManufactureFormulaInfo]
charAssets: List[PlayerCharAsset]
skinAssets: List[PlayerSkinAsset]

View File

0
__init__.py Normal file
View File

2765
poetry.lock generated Normal file

File diff suppressed because it is too large Load Diff

77
pyproject.toml Normal file
View File

@ -0,0 +1,77 @@
[tool.black]
line-length = 79
target-version = ["py38", "py39", "py310"]
include = '\.pyi?$'
skip-string-normalization = true
extend-exclude = '''
'''
[tool.isort]
profile = "black"
line_length = 79
length_sort = true
skip_gitignore = true
force_sort_within_sections = true
extra_standard_library = ["typing_extensions"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
[build-system]
requires = ["poetry-core>=1.2.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "GenshinUID"
version = "4.0.0"
description = "基于HoshinoBot/NoneBot2/QQ官方频道/微信Bot的原神面板查询/原神Wiki/米社签到/树脂提醒插件"
authors = ["KimigaiiWuyi <444835641@qq.com>"]
license = "GPL-3.0-or-later"
readme = "README.md"
homepage = "https://github.com/KimigaiiWuyi/GenshinUID/tree/v4"
repository = "https://github.com/KimigaiiWuyi/GenshinUID"
documentation = "https://github.com/KimigaiiWuyi/GenshinUID/wiki"
packages = [
{ include = "GenshinUID" }
]
exclude = ["tests", "deploy"]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/KimigaiiWuyi/GenshinUID/issues"
[tool.poetry.dependencies]
python = "^3.8.1"
httpx = ">=0.23.0"
beautifulsoup4 = ">=4.11.1"
lxml = ">=4.9.2"
openpyxl = ">=3.0.10"
aiohttp = ">=3.8.1"
sqlalchemy = ">=1.4.39"
pillow = ">=9.2.0"
aiosqlite = ">=0.17.0"
nonebot-plugin-apscheduler = ">=0.1.4"
aiofiles = ">=0.8.0"
sqlmodel = ">=0.0.8"
gitpython = ">=3.1.27"
fastapi-amis-admin = ">=0.2.1"
fastapi = ">=0.87.0,!=0.89.0,<1.0.0"
msgspec = ">=0.13.1"
fastapi-user-auth = ">=0.2.1"
qrcode = {extras = ["pil"], version = "^7.3.1"}
[[tool.poetry.source]]
name = "USTC"
url = "https://pypi.mirrors.ustc.edu.cn/simple"
priority = "default"
[tool.poetry.group.dev.dependencies]
flake8 = "^6.0.0"
black = "^23.1.0"
isort = "^5.12.0"
pre-commit = "^2.21.0"
pycln = "^2.1.2"
[tool.poetry.group.test.dependencies]
nonebug = "^0.3.0"
pytest = "^7.2.0"
pytest-asyncio = "^0.20.3"