id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
2,289,100
torrentmark.py
demigody_nas-tools/app/plugins/modules/torrentmark.py
from datetime import datetime from threading import Event import pytz from apscheduler.schedulers.background import BackgroundScheduler from apscheduler.triggers.cron import CronTrigger from app.downloader import Downloader from app.message import Message from app.plugins.modules._base import _IPluginModule from app....
9,393
Python
.py
239
21.330544
147
0.456734
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,101
customhosts.py
demigody_nas-tools/app/plugins/modules/customhosts.py
from python_hosts import Hosts, HostsEntry from app.plugins import EventHandler from app.plugins.modules._base import _IPluginModule from app.utils import SystemUtils, IpUtils from app.utils.types import EventType class CustomHosts(_IPluginModule): # 插件名称 module_name = "自定义Hosts" # 插件描述 module_desc =...
6,577
Python
.py
174
19.488506
107
0.431234
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,102
prowlarr.py
demigody_nas-tools/app/plugins/modules/prowlarr.py
import requests from datetime import datetime, timedelta from threading import Event import xml.dom.minidom from jinja2 import Template import re import pytz from apscheduler.schedulers.background import BackgroundScheduler from apscheduler.triggers.cron import CronTrigger from app.utils import RequestUtils from app....
12,349
Python
.py
303
22.580858
125
0.444752
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,103
jackett.py
demigody_nas-tools/app/plugins/modules/jackett.py
import requests from datetime import datetime, timedelta from threading import Event import xml.dom.minidom from jinja2 import Template import pytz from apscheduler.schedulers.background import BackgroundScheduler from apscheduler.triggers.cron import CronTrigger from app.utils import RequestUtils, Torrent from app.i...
15,779
Python
.py
383
21.848564
138
0.426512
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,104
opensubtitles.py
demigody_nas-tools/app/plugins/modules/opensubtitles.py
import os import shutil from functools import lru_cache from urllib.parse import quote from pyquery import PyQuery from app.helper import SiteHelper from app.helper.chrome_helper import ChromeHelper from app.plugins import EventHandler from app.plugins.modules._base import _IPluginModule from app.utils import Request...
9,422
Python
.py
237
24.864979
124
0.510522
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,105
downloader_helper.py
demigody_nas-tools/app/plugins/modules/downloader_helper.py
from app.plugins.modules._base import _IPluginModule from app.downloader import Downloader from config import Config from apscheduler.schedulers.background import BackgroundScheduler from apscheduler.triggers.cron import CronTrigger import pytz from datetime import datetime, timedelta from threading import Event from a...
56,676
Python
.py
1,116
31.985663
6,053
0.554569
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,106
speedlimiter.py
demigody_nas-tools/app/plugins/modules/speedlimiter.py
import time from apscheduler.schedulers.background import BackgroundScheduler from app.downloader import Downloader from app.helper.security_helper import SecurityHelper from app.mediaserver import MediaServer from app.plugins import EventHandler from app.plugins.modules._base import _IPluginModule from app.utils imp...
20,063
Python
.py
456
24.041667
116
0.466449
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,107
customization.py
demigody_nas-tools/app/plugins/modules/customization.py
from app.media.meta.customization import CustomizationMatcher from app.plugins.modules._base import _IPluginModule class Customization(_IPluginModule): # 插件名称 module_name = "自定义占位符" # 插件描述 module_desc = "添加自定义占位符识别正则,重命名格式中添加{customization}使用,自定义多个结果间分隔符" # 插件图标 module_icon = "regex.png" #...
3,626
Python
.py
89
19.651685
106
0.432601
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,108
libraryscraper.py
demigody_nas-tools/app/plugins/modules/libraryscraper.py
from datetime import datetime, timedelta from threading import Event import pytz from apscheduler.schedulers.background import BackgroundScheduler from apscheduler.triggers.cron import CronTrigger from app.media import Scraper from app.plugins import EventHandler from app.plugins.modules._base import _IPluginModule f...
8,574
Python
.py
221
18.520362
123
0.400268
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,109
autosub.py
demigody_nas-tools/app/plugins/modules/autosub.py
import copy import os import re import subprocess import tempfile import time import traceback from datetime import timedelta import iso639 import psutil import srt from lxml import etree from app.helper import FfmpegHelper from app.helper.openai_helper import OpenAiHelper from app.plugins.modules._base import _IPlug...
40,232
Python
.py
869
25.339471
119
0.454571
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,110
_base.py
demigody_nas-tools/app/plugins/modules/_base.py
import json import os from abc import ABCMeta, abstractmethod import log from app.conf import SystemConfig from app.helper import DbHelper from app.message import Message from config import Config class _IPluginModule(metaclass=ABCMeta): """ 插件模块基类,通过继续该类实现插件功能 除内置属性外,还有以下方法可以扩展或调用: - get_fields() 获取...
6,885
Python
.py
201
20.039801
90
0.537464
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,111
zhuque.py
demigody_nas-tools/app/plugins/modules/_autosignin/zhuque.py
import json from lxml import etree from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class ZhuQue(_ISiteSigninHandler): """ ZHUQUE签到 """ # 匹配的站点Url,每一个实现类都需要设置为自己的站点Url site_url = "zhuque.in" @clas...
3,007
Python
.py
64
29.859375
133
0.573836
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,112
hdarea.py
demigody_nas-tools/app/plugins/modules/_autosignin/hdarea.py
from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class HDArea(_ISiteSigninHandler): """ 好大签到 """ # 匹配的站点Url,每一个实现类都需要设置为自己的站点Url site_url = "hdarea.club" # 签到成功 _success_text = "此次签到您获得" ...
2,345
Python
.py
52
27
105
0.592018
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,113
u2.py
demigody_nas-tools/app/plugins/modules/_autosignin/u2.py
import random import re import datetime from lxml import etree from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class U2(_ISiteSigninHandler): """ U2签到 随机 """ # 匹配的站点Url,每一个实现类都需要设置为自己的站点Url site_url =...
4,596
Python
.py
97
29.42268
105
0.553175
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,114
hdtime.py
demigody_nas-tools/app/plugins/modules/_autosignin/hdtime.py
from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class HDTime(_ISiteSigninHandler): """ 时光签到 """ # 匹配的站点Url,每一个实现类都需要设置为自己的站点Url site_url = "hdtime.org" # 签到成功 _success_text = "签到成功" _r...
2,266
Python
.py
49
27.795918
95
0.600923
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,115
btschool.py
demigody_nas-tools/app/plugins/modules/_autosignin/btschool.py
import time from app.helper import ChromeHelper from app.helper.cloudflare_helper import under_challenge from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class BTSchool(_ISiteSigninHandler): """ 学校签到 """ # ...
5,311
Python
.py
108
26.861111
116
0.498301
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,116
52pt.py
demigody_nas-tools/app/plugins/modules/_autosignin/52pt.py
import json import os import random import re from lxml import etree from app.helper.openai_helper import OpenAiHelper from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class FWpt(_ISiteSigninHandler): """ 52pt ...
9,070
Python
.py
192
27.619792
108
0.528001
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,117
ttg.py
demigody_nas-tools/app/plugins/modules/_autosignin/ttg.py
import re from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class TTG(_ISiteSigninHandler): """ TTG签到 """ # 匹配的站点Url,每一个实现类都需要设置为自己的站点Url site_url = "totheglory.im" # 已签到 _sign_regex = ['<b styl...
3,434
Python
.py
72
29.777778
116
0.574552
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,118
hdchina.py
demigody_nas-tools/app/plugins/modules/_autosignin/hdchina.py
import json from lxml import etree from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class HDChina(_ISiteSigninHandler): """ 瓷器签到 """ # 匹配的站点Url,每一个实现类都需要设置为自己的站点Url site_url = "hdchina.org" # 已签到 ...
4,293
Python
.py
91
29.076923
123
0.563437
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,119
hdsky.py
demigody_nas-tools/app/plugins/modules/_autosignin/hdsky.py
import json import time from app.helper import OcrHelper from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class HDSky(_ISiteSigninHandler): """ 天空ocr签到 """ # 匹配的站点Url,每一个实现类都需要设置为自己的站点Url site_url = "hd...
5,250
Python
.py
106
27.207547
112
0.497821
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,120
hdfans.py
demigody_nas-tools/app/plugins/modules/_autosignin/hdfans.py
from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class HDFans(_ISiteSigninHandler): """ hdfans签到 """ # 匹配的站点Url,每一个实现类都需要设置为自己的站点Url site_url = "hdfans.org" # 签到成功 _success_text = "签到成功" ...
2,266
Python
.py
49
27.877551
95
0.601841
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,121
hdcity.py
demigody_nas-tools/app/plugins/modules/_autosignin/hdcity.py
from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class HDCity(_ISiteSigninHandler): """ 城市签到 """ # 匹配的站点Url,每一个实现类都需要设置为自己的站点Url site_url = "hdcity.city" # 签到成功 _success_text = '本次签到获得魅力' # ...
2,233
Python
.py
49
27.673469
119
0.608824
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,122
opencd.py
demigody_nas-tools/app/plugins/modules/_autosignin/opencd.py
import json import time from lxml import etree from app.helper import OcrHelper from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class Opencd(_ISiteSigninHandler): """ 皇后ocr签到 """ # 匹配的站点Url,每一个实现类都需要设置为自己...
4,913
Python
.py
101
29.09901
127
0.546087
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,123
tjupt.py
demigody_nas-tools/app/plugins/modules/_autosignin/tjupt.py
import json import os import time import zhconv import re from io import BytesIO from PIL import Image from lxml import etree from bs4 import BeautifulSoup from app.helper import ChromeHelper from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from con...
13,144
Python
.py
269
28.215613
125
0.516307
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,124
hares.py
demigody_nas-tools/app/plugins/modules/_autosignin/hares.py
import json from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class Hares(_ISiteSigninHandler): """ 白兔签到 """ # 匹配的站点Url,每一个实现类都需要设置为自己的站点Url site_url = "club.hares.top" # 已签到 _sign_text = '已签到' ...
2,705
Python
.py
59
28.59322
117
0.584844
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,125
chdbits.py
demigody_nas-tools/app/plugins/modules/_autosignin/chdbits.py
import json import os import random import re from lxml import etree from app.helper.openai_helper import OpenAiHelper from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class CHDBits(_ISiteSigninHandler): """ 彩虹岛签到...
9,090
Python
.py
192
27.671875
108
0.528885
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,126
hhanclub.py
demigody_nas-tools/app/plugins/modules/_autosignin/hhanclub.py
from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class Hhanclub(_ISiteSigninHandler): """ 海胆签到 """ # 匹配的站点Url,每一个实现类都需要设置为自己的站点Url site_url = "hhanclub.top" # 签到成功 _succeed_regex = ["今日签到排名:(\\d...
2,096
Python
.py
45
28.755556
97
0.591947
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,127
pterclub.py
demigody_nas-tools/app/plugins/modules/_autosignin/pterclub.py
import json from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class PTerClub(_ISiteSigninHandler): """ 猫签到 """ # 匹配的站点Url,每一个实现类都需要设置为自己的站点Url site_url = "pterclub.com" @classmethod def match(c...
2,098
Python
.py
44
29.431818
102
0.587156
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,128
haidan.py
demigody_nas-tools/app/plugins/modules/_autosignin/haidan.py
from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class HaiDan(_ISiteSigninHandler): """ 海胆签到 """ # 匹配的站点Url,每一个实现类都需要设置为自己的站点Url site_url = "haidan.video" # 签到成功 _succeed_regex = ['(?<=value=")已...
2,085
Python
.py
45
28.644444
97
0.590717
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,129
carpt.py
demigody_nas-tools/app/plugins/modules/_autosignin/carpt.py
from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class CarPT(_ISiteSigninHandler): """ 车站签到 """ # 匹配的站点Url,每一个实现类都需要设置为自己的站点Url site_url = "carpt.net" # 签到成功 _success_text = "签到成功" _rep...
2,263
Python
.py
49
27.734694
94
0.600231
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,130
hdupt.py
demigody_nas-tools/app/plugins/modules/_autosignin/hdupt.py
import re import log from app.plugins.modules._autosignin._base import _ISiteSigninHandler from app.utils import StringUtils, RequestUtils from config import Config class HDUpt(_ISiteSigninHandler): """ hdu签到 """ # 匹配的站点Url,每一个实现类都需要设置为自己的站点Url site_url = "pt.hdupt.com" # 已签到 _sign_regex...
2,797
Python
.py
59
29.745763
116
0.593091
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,131
_base.py
demigody_nas-tools/app/plugins/modules/_autosignin/_base.py
# -*- coding: utf-8 -*- import re from abc import ABCMeta, abstractmethod import log from app.utils import StringUtils class _ISiteSigninHandler(metaclass=ABCMeta): """ 实现站点签到的基类,所有站点签到类都需要继承此类,并实现match和signin方法 实现类放置到sitesignin目录下将会自动加载 """ # 匹配的站点Url,每一个实现类都需要设置为自己的站点Url site_url = "" ...
2,086
Python
.py
62
19.806452
75
0.549877
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,132
iyuu_helper.py
demigody_nas-tools/app/plugins/modules/iyuu/iyuu_helper.py
import hashlib import json import time from app.utils import RequestUtils from app.utils.commons import singleton @singleton class IyuuHelper(object): _version = "2.0.0" _api_base = "http://api.bolahg.cn/%s" _sites = {} _token = None def __init__(self, token): self._token = token ...
5,472
Python
.py
152
20.105263
95
0.42621
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,133
moduleconf.py
demigody_nas-tools/app/conf/moduleconf.py
# coding: utf-8 from app.utils.types import * class ModuleConf(object): # 菜单对应关系,配置WeChat应用中配置的菜单ID与执行命令的对应关系,需要手工修改 # 菜单序号在https://work.weixin.qq.com/wework_admin/frame#apps 应用自定义菜单中维护,然后看日志输出的菜单序号是啥(按顺利能猜到的).... # 命令对应关系:/ptt 下载文件转移;/ptr 删种;/pts 站点签到;/rst 目录同步;/db 豆瓣同步;/utf 重新识别; # /ssa 订阅搜索;/tbl 清理...
46,886
Python
.py
1,046
20.6826
266
0.347014
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,134
systemconfig.py
demigody_nas-tools/app/conf/systemconfig.py
import json from app.helper import DictHelper from app.utils.commons import singleton from app.utils.types import SystemConfigKey @singleton class SystemConfig: # 系统设置 systemconfig = {} def __init__(self): self.dicthelper = DictHelper() self.init_config() def init_config(self): ...
1,637
Python
.py
52
21.134615
71
0.558416
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,135
script.py.mako
demigody_nas-tools/scripts/script.py.mako
"""${message} Revision ID: ${up_revision} Revises: ${down_revision | comma,n} Create Date: ${create_date} """ from alembic import op import sqlalchemy as sa ${imports if imports else ""} # revision identifiers, used by Alembic. revision = ${repr(up_revision)} down_revision = ${repr(down_revision)} branch_labels = ${...
510
Python
.py
17
28.117647
43
0.718107
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,136
env.py
demigody_nas-tools/scripts/env.py
from logging.config import fileConfig from sqlalchemy import engine_from_config from sqlalchemy import pool from alembic import context from app.db.models import Base # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = context.config # Interpret the confi...
2,168
Python
.py
60
31.333333
69
0.721264
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,137
69508d1aed24_1_2_1.py
demigody_nas-tools/scripts/versions/69508d1aed24_1_2_1.py
"""1.2.1 Revision ID: 69508d1aed24 Revises: 6abeaa9ece15 Create Date: 2023-03-24 11:12:51.646014 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '69508d1aed24' down_revision = '6abeaa9ece15' branch_labels = None depends_on = None def upgrade() -> None: # ...
655
Python
.py
23
24.869565
76
0.690705
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,138
ae61cfa6ada6_1_2_4.py
demigody_nas-tools/scripts/versions/ae61cfa6ada6_1_2_4.py
"""1.2.4 Revision ID: ae61cfa6ada6 Revises: 1f5cc26cdd3d Create Date: 2023-04-11 10:24:45.522668 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'ae61cfa6ada6' down_revision = '1f5cc26cdd3d' branch_labels = None depends_on = None def upgrade() -> None: # #...
801
Python
.py
24
29.083333
81
0.684416
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,139
13a58bd5311f_1_2_2.py
demigody_nas-tools/scripts/versions/13a58bd5311f_1_2_2.py
"""1.2.2 Revision ID: 13a58bd5311f Revises: 69508d1aed24 Create Date: 2023-04-04 08:49:43.453901 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '13a58bd5311f' down_revision = '69508d1aed24' branch_labels = None depends_on = None def upgrade() -> None: # ...
1,020
Python
.py
30
29
84
0.672098
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,140
6abeaa9ece15_1_2_0.py.py
demigody_nas-tools/scripts/versions/6abeaa9ece15_1_2_0.py.py
"""1.2.0 Revision ID: 6abeaa9ece15 Revises: None Create Date: 2023-03-15 10:07:19.965255 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '6abeaa9ece15' down_revision = None branch_labels = None depends_on = None def upgrade() -> None: # ### commands auto ge...
7,031
Python
.py
166
34.042169
104
0.625893
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,141
532e45e74cc0_3_3_17.py
demigody_nas-tools/scripts/versions/532e45e74cc0_3_3_17.py
"""3.3.18 Revision ID: 532e45e74cc0 Revises: eb3437042cc8 Create Date: 2024-04-15 05:13:43.753754 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '532e45e74cc0' down_revision = 'eb3437042cc8' branch_labels = None depends_on = None def upgrade() -> None: #...
743
Python
.py
24
27.291667
78
0.683544
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,142
702b7666a634_1_2_5.py
demigody_nas-tools/scripts/versions/702b7666a634_1_2_5.py
"""1.2.5 Revision ID: 702b7666a634 Revises: ae61cfa6ada6 Create Date: 2023-04-14 13:08:44.689878 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '702b7666a634' down_revision = 'ae61cfa6ada6' branch_labels = None depends_on = None def upgrade() -> None: # ...
719
Python
.py
24
26.291667
66
0.687045
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,143
a19a48dbb41b_1_2_7.py
demigody_nas-tools/scripts/versions/a19a48dbb41b_1_2_7.py
"""1.2.7 Revision ID: a19a48dbb41b Revises: d68a85a8f10d Create Date: 2023-05-09 14:44:03.251571 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'a19a48dbb41b' down_revision = 'd68a85a8f10d' branch_labels = None depends_on = None def upgrade() -> None: # ...
602
Python
.py
21
25.571429
101
0.705061
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,144
d68a85a8f10d_1_2_6.py
demigody_nas-tools/scripts/versions/d68a85a8f10d_1_2_6.py
"""1.2.6 Revision ID: d68a85a8f10d Revises: 702b7666a634 Create Date: 2023-04-16 14:03:56.871650 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'd68a85a8f10d' down_revision = '702b7666a634' branch_labels = None depends_on = None def upgrade() -> None: # ...
756
Python
.py
24
27.833333
86
0.690608
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,145
7c14267ffbe4_1_2_8.py
demigody_nas-tools/scripts/versions/7c14267ffbe4_1_2_8.py
"""1.2.8 Revision ID: 7c14267ffbe4 Revises: a19a48dbb41b Create Date: 2023-05-13 11:42:58.215215 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '7c14267ffbe4' down_revision = 'a19a48dbb41b' branch_labels = None depends_on = None def upgrade() -> None: # ...
689
Python
.py
22
27.409091
78
0.698027
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,146
1f5cc26cdd3d_1_2_3.py
demigody_nas-tools/scripts/versions/1f5cc26cdd3d_1_2_3.py
"""1.2.3 Revision ID: 1f5cc26cdd3d Revises: 13a58bd5311f Create Date: 2023-04-07 08:23:05.282129 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '1f5cc26cdd3d' down_revision = '13a58bd5311f' branch_labels = None depends_on = None def upgrade() -> None: # ...
657
Python
.py
23
24.956522
78
0.691693
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,147
eb3437042cc8_1_3_1.py
demigody_nas-tools/scripts/versions/eb3437042cc8_1_3_1.py
"""1.3.1 Revision ID: eb3437042cc8 Revises: ff1b04a637f8 Create Date: 2023-11-22 17:07:42.765426 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'eb3437042cc8' down_revision = 'ff1b04a637f8' branch_labels = None depends_on = None def upgrade() -> None: # ...
957
Python
.py
29
28.551724
87
0.675
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,148
ff1b04a637f8_1_3_0.py
demigody_nas-tools/scripts/versions/ff1b04a637f8_1_3_0.py
"""1.3.0 Revision ID: ff1b04a637f8 Revises: 7c14267ffbe4 Create Date: 2023-09-17 09:35:42.773359 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'ff1b04a637f8' down_revision = '7c14267ffbe4' branch_labels = None depends_on = None def upgrade() -> None: # ...
753
Python
.py
24
27.708333
83
0.686546
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,149
trayicon.py
demigody_nas-tools/package/trayicon.py
import os import sys import webbrowser import wx import wx.adv class Balloon(wx.adv.TaskBarIcon): ICON = os.path.dirname(__file__).replace("package", "") + "nas-tools.ico" def __init__(self, homepage, log_path): wx.adv.TaskBarIcon.__init__(self) self.SetIcon(wx.Icon(self.ICON)) self....
1,914
Python
.py
53
27.641509
106
0.631638
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,150
_pypan115.py
demigody_nas-tools/app/downloader/client/_pypan115.py
# -*- coding: utf-8 -*- import re import time from urllib import parse import requests import log from app.utils import RequestUtils, ExceptionUtils class PyPan115: cookie = None user_agent = None req = None space_info = None err = None def __init__(self, cookie): self.cookie = coo...
6,562
Python
.pyp
149
29.067114
247
0.512762
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,151
user.cpython-310-darwin.so
demigody_nas-tools/web/backend/user.cpython-310-darwin.so
Êşº¾@ ш @·...
1,332,663
Python
.pyt
2,079
631.529582
129,640
0.463119
demigody/nas-tools
8
1
0
AGPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,152
test.py
sibisiddharth8_VisionSoC/test.py
from flask import Flask, request, render_template, send_file import os.path as osp import glob import cv2 import numpy as np import torch import RRDBNet_arch as arch import base64 import io from flask import send_file app = Flask(__name__) model_path = 'RRDB_ESRGAN_x4.pth' device = torch.device('cpu') test_img_f...
2,132
Python
.py
53
34.301887
117
0.640927
sibisiddharth8/VisionSoC
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,153
transer_RRDB_models.py
sibisiddharth8_VisionSoC/transer_RRDB_models.py
import os import torch import RRDBNet_arch as arch pretrained_net = torch.load('./models/RRDB_ESRGAN_x4.pth') save_path = './models/RRDB_ESRGAN_x4.pth' crt_model = arch.RRDBNet(3, 3, 64, 23, gc=32) crt_net = crt_model.state_dict() load_net_clean = {} for k, v in pretrained_net.items(): if k.startswith('module.')...
1,840
Python
.py
46
36.282609
70
0.643697
sibisiddharth8/VisionSoC
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,154
RRDBNet_arch.py
sibisiddharth8_VisionSoC/RRDBNet_arch.py
import functools import torch import torch.nn as nn import torch.nn.functional as F def make_layer(block, n_layers): layers = [] for _ in range(n_layers): layers.append(block()) return nn.Sequential(*layers) class ResidualDenseBlock_5C(nn.Module): def __init__(self, nf=64, gc=32, bias=True):...
2,843
Python
.py
61
39.032787
101
0.600723
sibisiddharth8/VisionSoC
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,155
net_interp.py
sibisiddharth8_VisionSoC/net_interp.py
import sys import torch from collections import OrderedDict alpha = float(sys.argv[1]) net_PSNR_path = './models/RRDB_PSNR_x4.pth' net_ESRGAN_path = './models/RRDB_ESRGAN_x4.pth' net_interp_path = './models/interp_{:02d}.pth'.format(int(alpha*10)) net_PSNR = torch.load(net_PSNR_path) net_ESRGAN = torch.load(net_ESRG...
567
Python
.py
15
35.866667
68
0.723443
sibisiddharth8/VisionSoC
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,156
client.py
seriaati_hakushin-py/hakushin/client.py
from __future__ import annotations from typing import TYPE_CHECKING, Any, Literal, overload from hakushin.enums import Game, Language from .clients import GIClient, HSRClient, ZZZClient if TYPE_CHECKING: from aiohttp import ClientSession __all__ = ("HakushinAPI",) class HakushinAPI: """Client to interact...
2,592
Python
.py
83
21.795181
63
0.534186
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,157
errors.py
seriaati_hakushin-py/hakushin/errors.py
from __future__ import annotations __all__ = ("HakushinError", "NotFoundError") class HakushinError(Exception): """Base class for exceptions in the Hakushin API.""" def __init__(self, status: int, message: str, url: str) -> None: super().__init__(message) self.status = status self.me...
808
Python
.py
17
41.294118
108
0.622762
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,158
enums.py
seriaati_hakushin-py/hakushin/enums.py
from __future__ import annotations from enum import IntEnum, StrEnum __all__ = ("Game", "Language") class Game(StrEnum): """Games supported by the Hakushin API.""" GI = "gi" """Genshin Impact.""" HSR = "hsr" """Honkai: Star Rail.""" ZZZ = "zzz" """Zenless Zone Zero.""" class Language(...
1,743
Python
.py
74
18.810811
49
0.597561
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,159
constants.py
seriaati_hakushin-py/hakushin/constants.py
from __future__ import annotations from typing import Final, Literal from .enums import Game, HSRPath, Language __all__ = ( "GI_CHARA_RARITY_MAP", "GI_LANG_MAP", "HSR_API_LANG_MAP", "HSR_CHARA_RARITY_MAP", "HSR_LIGHT_CONE_RARITY_MAP", "PERCENTAGE_FIGHT_PROPS", ) GI_CHARA_RARITY_MAP: Final[di...
5,574
Python
.py
172
26.901163
93
0.624645
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,160
utils.py
seriaati_hakushin-py/hakushin/utils.py
from __future__ import annotations import re from typing import TYPE_CHECKING, TypeVar from .constants import ( ASCENDED_LEVEL_TO_ASCENSION, ASCENSION_TO_MAX_LEVEL, NOT_ASCENDED_LEVEL_TO_ASCENSION, PERCENTAGE_FIGHT_PROPS, STAT_TO_FIGHT_PROP, ) from .enums import Game if TYPE_CHECKING: from .m...
10,557
Python
.py
240
37.445833
104
0.644651
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,161
__init__.py
seriaati_hakushin-py/hakushin/__init__.py
from __future__ import annotations from . import utils from .client import * from .constants import * from .enums import * from .errors import * from .models import *
168
Python
.py
7
22.857143
34
0.775
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,162
hsr.py
seriaati_hakushin-py/hakushin/clients/hsr.py
from __future__ import annotations from typing import TYPE_CHECKING, Any from ..constants import HSR_API_LANG_MAP, TRAILBLAZER_NAMES from ..enums import Game, Language from ..models import hsr from ..utils import cleanup_text, remove_ruby_tags, replace_placeholders from .base import BaseClient if TYPE_CHECKING: ...
5,479
Python
.py
132
31.780303
95
0.597366
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,163
__init__.py
seriaati_hakushin-py/hakushin/clients/__init__.py
from __future__ import annotations from .gi import * from .hsr import * from .zzz import *
92
Python
.py
4
21.75
34
0.747126
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,164
gi.py
seriaati_hakushin-py/hakushin/clients/gi.py
from __future__ import annotations from typing import TYPE_CHECKING, Any from hakushin.enums import Game, Language from ..constants import GI_LANG_MAP from ..models import gi from .base import BaseClient if TYPE_CHECKING: from aiohttp import ClientSession __all__ = ("GIClient",) class GIClient(BaseClient): ...
5,138
Python
.py
127
30.740157
100
0.592771
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,165
base.py
seriaati_hakushin-py/hakushin/clients/base.py
from __future__ import annotations import logging from typing import TYPE_CHECKING, Any, Final, Self from aiohttp_client_cache.backends.sqlite import SQLiteBackend from aiohttp_client_cache.session import CachedSession from loguru import logger from ..constants import HSR_API_LANG_MAP from ..enums import Game, Langu...
4,504
Python
.py
105
33.238095
106
0.600823
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,166
zzz.py
seriaati_hakushin-py/hakushin/clients/zzz.py
from __future__ import annotations from typing import TYPE_CHECKING, Any from ..constants import ZZZ_LANG_MAP from ..enums import Game, Language from ..models import zzz from .base import BaseClient if TYPE_CHECKING: from collections.abc import Sequence from aiohttp import ClientSession __all__ = ("ZZZClie...
6,795
Python
.py
171
29.982456
97
0.588843
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,167
__init__.py
seriaati_hakushin-py/hakushin/models/__init__.py
from __future__ import annotations from . import gi, hsr, zzz
63
Python
.py
2
30
34
0.75
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,168
base.py
seriaati_hakushin-py/hakushin/models/base.py
from __future__ import annotations from typing import Any, Self from pydantic import BaseModel, model_validator from ..utils import cleanup_text, remove_ruby_tags, replace_device_params class APIModel(BaseModel): """Base class for all models in hakushin-py.""" @property def fields(self) -> dict[str, A...
1,001
Python
.py
23
34.347826
95
0.627835
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,169
light_cone.py
seriaati_hakushin-py/hakushin/models/hsr/light_cone.py
from __future__ import annotations from typing import Any, Literal from pydantic import Field, computed_field, field_validator, model_validator from ...constants import HSR_LIGHT_CONE_RARITY_MAP from ...enums import HSRPath from ..base import APIModel __all__ = ("LightCone", "LightConeDetail", "SuperimposeInfo") ...
3,361
Python
.py
76
37.802632
86
0.644588
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,170
__init__.py
seriaati_hakushin-py/hakushin/models/hsr/__init__.py
from __future__ import annotations from .character import * from .light_cone import * from .new import * from .relic import *
127
Python
.py
5
24.2
34
0.768595
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,171
new.py
seriaati_hakushin-py/hakushin/models/hsr/new.py
from __future__ import annotations from pydantic import Field from ..base import APIModel __all__ = ("New",) class New(APIModel): """Genshin Impact new stuff.""" character_ids: list[int] = Field(alias="character") light_cone_ids: list[int] = Field(alias="lightcone") relic_set_ids: list[int] = Fiel...
455
Python
.py
12
34.083333
56
0.684211
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,172
character.py
seriaati_hakushin-py/hakushin/models/hsr/character.py
from __future__ import annotations from typing import Any, Literal from pydantic import Field, computed_field, field_validator, model_validator from ...constants import HSR_CHARA_RARITY_MAP from ...enums import HSRElement, HSRPath from ..base import APIModel __all__ = ("Character", "CharacterDetail", "Eidolon", "Sk...
3,955
Python
.py
90
37.822222
130
0.645203
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,173
relic.py
seriaati_hakushin-py/hakushin/models/hsr/relic.py
from __future__ import annotations from typing import Any, Literal, Self from pydantic import Field, computed_field, field_validator, model_validator from ...utils import replace_placeholders from ..base import APIModel __all__ = ( "Relic", "RelicSet", "RelicSetDetail", "RelicSetEffect", "RelicS...
4,026
Python
.py
95
36.136842
95
0.630742
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,174
weapon.py
seriaati_hakushin-py/hakushin/models/zzz/weapon.py
from __future__ import annotations from typing import Any, Literal from pydantic import Field, computed_field, field_validator, model_validator from ...constants import ZZZ_SAB_RARITY_CONVERTER from ...enums import ZZZSpecialty from ...utils import cleanup_text from ..base import APIModel __all__ = ( "Weapon", ...
4,254
Python
.py
108
33.787037
93
0.639193
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,175
__init__.py
seriaati_hakushin-py/hakushin/models/zzz/__init__.py
from __future__ import annotations from .bangboo import * from .character import * from .disc import * from .items import * from .new import * from .weapon import *
166
Python
.py
7
22.571429
34
0.765823
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,176
new.py
seriaati_hakushin-py/hakushin/models/zzz/new.py
from __future__ import annotations from pydantic import Field from ..base import APIModel __all__ = ("New",) class New(APIModel): """ZZZ new stuff.""" character_ids: list[int] = Field(alias="character") bangboo_ids: list[int] = Field(alias="bangboo") weapon_ids: list[int] = Field(alias="weapon") ...
530
Python
.py
13
36.846154
58
0.684932
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,177
disc.py
seriaati_hakushin-py/hakushin/models/zzz/disc.py
from __future__ import annotations from pydantic import Field, field_validator from ..base import APIModel __all__ = ("DriveDisc", "DriveDiscDetail", "DriveDiscInfo") class DriveDiscInfo(APIModel): """ZZZ drive disc info model.""" name: str two_piece_effect: str = Field(alias="desc2") four_piece_e...
1,591
Python
.py
38
36.789474
75
0.653446
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,178
bangboo.py
seriaati_hakushin-py/hakushin/models/zzz/bangboo.py
from __future__ import annotations from typing import Any, Literal from pydantic import Field, field_validator, model_validator from ...constants import ZZZ_SA_RARITY_CONVERTER from ...utils import cleanup_text from ..base import APIModel from .common import ZZZExtraProp, ZZZMaterial __all__ = ("Bangboo", "BangbooA...
3,988
Python
.py
90
38.588889
91
0.64188
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,179
common.py
seriaati_hakushin-py/hakushin/models/zzz/common.py
from __future__ import annotations from pydantic import Field, computed_field from ..base import APIModel __all__ = ("ZZZExtraProp", "ZZZMaterial") class ZZZMaterial(APIModel): """Generic ZZZ material.""" id: int amount: int class ZZZExtraProp(APIModel): """Generic ZZZ extra property.""" id...
687
Python
.py
21
27.428571
45
0.646341
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,180
character.py
seriaati_hakushin-py/hakushin/models/zzz/character.py
from __future__ import annotations from typing import Any, Literal from pydantic import Field, computed_field, field_validator, model_validator from ...constants import ZZZ_SA_RARITY_CONVERTER from ...enums import ZZZAttackType, ZZZElement, ZZZSkillType, ZZZSpecialty from ...utils import cleanup_text from ..base imp...
12,238
Python
.py
286
36.597902
99
0.6574
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,181
items.py
seriaati_hakushin-py/hakushin/models/zzz/items.py
from __future__ import annotations from typing import Literal from pydantic import Field, field_validator from ..base import APIModel __all__ = ("Item",) class Item(APIModel): """ZZZ item model.""" icon: str rarity: Literal[1, 2, 3, 4, 5] = Field(alias="rank") class_: int = Field(alias="class") ...
564
Python
.py
17
28.647059
58
0.636364
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,182
weapon.py
seriaati_hakushin-py/hakushin/models/gi/weapon.py
from __future__ import annotations from typing import Any, Literal from pydantic import Field, field_validator, model_validator from ..base import APIModel __all__ = ("Weapon", "WeaponDetail", "WeaponProperty", "WeaponRefinement", "WeaponStatModifier") class WeaponProperty(APIModel): """Weapon's property.""" ...
2,357
Python
.py
52
39.653846
96
0.655127
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,183
artifact.py
seriaati_hakushin-py/hakushin/models/gi/artifact.py
from __future__ import annotations from typing import Any, Literal from pydantic import Field, field_validator, model_validator from ..base import APIModel __all__ = ( "Artifact", "ArtifactSet", "ArtifactSetDetail", "ArtifactSetDetailSetEffects", "ArtifactSetEffect", "ArtifactSetEffects", ...
3,414
Python
.py
79
37.759494
93
0.657584
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,184
__init__.py
seriaati_hakushin-py/hakushin/models/gi/__init__.py
from __future__ import annotations from .artifact import * from .character import * from .new import * from .weapon import *
126
Python
.py
5
24
34
0.775
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,185
new.py
seriaati_hakushin-py/hakushin/models/gi/new.py
from __future__ import annotations from pydantic import Field from ..base import APIModel __all__ = ("New",) class New(APIModel): """Genshin Impact new stuff.""" character_ids: list[int] = Field(alias="character") weapon_ids: list[int] = Field(alias="weapon") artifact_set_ids: list[int] = Field(al...
451
Python
.py
12
33.75
57
0.683603
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,186
character.py
seriaati_hakushin-py/hakushin/models/gi/character.py
from __future__ import annotations from typing import Any, Literal from pydantic import Field, field_validator, model_validator from ...constants import GI_CHARA_RARITY_MAP from ...enums import GIElement from ..base import APIModel __all__ = ( "Character", "CharacterConstellation", "CharacterDetail", ...
6,906
Python
.py
160
37.6375
91
0.668412
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,187
test_langs.py
seriaati_hakushin-py/tests/test_langs.py
from __future__ import annotations import pytest import hakushin @pytest.mark.asyncio async def test_langs() -> None: for lang in hakushin.Language: async with hakushin.HakushinAPI(hakushin.Game.GI, lang) as client: await client.fetch_character_detail("10000098") async with hakushin....
552
Python
.py
12
39.333333
75
0.725746
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,188
test_errors.py
seriaati_hakushin-py/tests/test_errors.py
from __future__ import annotations import pytest import hakushin @pytest.mark.asyncio async def test_not_found_error() -> None: with pytest.raises(hakushin.errors.NotFoundError): async with hakushin.HakushinAPI(hakushin.Game.GI) as client: await client.fetch_character_detail("0") asy...
551
Python
.py
12
39.25
69
0.728972
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,189
test_hsr.py
seriaati_hakushin-py/tests/test_models/test_hsr.py
from __future__ import annotations import pytest import hakushin @pytest.mark.asyncio async def test_new() -> None: async with hakushin.HakushinAPI(hakushin.Game.HSR) as client: await client.fetch_new() @pytest.mark.asyncio async def test_characters() -> None: async with hakushin.HakushinAPI(hakus...
1,385
Python
.py
33
36.545455
65
0.718984
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,190
test_gi.py
seriaati_hakushin-py/tests/test_models/test_gi.py
from __future__ import annotations import pytest import hakushin @pytest.mark.asyncio async def test_new() -> None: async with hakushin.HakushinAPI(hakushin.Game.GI) as client: await client.fetch_new() @pytest.mark.asyncio async def test_characters() -> None: async with hakushin.HakushinAPI(hakush...
1,538
Python
.py
37
36.243243
67
0.721886
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,191
test_zzz.py
seriaati_hakushin-py/tests/test_models/test_zzz.py
from __future__ import annotations import pytest import hakushin @pytest.mark.asyncio async def test_new() -> None: async with hakushin.HakushinAPI(hakushin.Game.ZZZ) as client: await client.fetch_new() @pytest.mark.asyncio async def test_characters() -> None: async with hakushin.HakushinAPI(hakus...
2,126
Python
.py
51
36.333333
65
0.728203
seriaati/hakushin-py
8
0
0
GPL-3.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,192
中文git.py
DuckDuckStudio_Chinese_git/中文git.py
import os import sys import json import requests import subprocess from colorama import init, Fore init(autoreset=True) script_path = os.path.dirname(os.path.abspath(__file__)) full_path = os.path.join(script_path, "中文git.py") exit_code = 0 # 只有不正常退出需要定义 # ---------- 版本定义及更新 ---------- # 定义版本号 VERSION = 'v2.10' # Git...
29,068
Python
.py
592
30.591216
252
0.50523
DuckDuckStudio/Chinese_git
8
1
6
GPL-2.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,193
中文git-pack.py
DuckDuckStudio_Chinese_git/中文git-pack.py
import os import sys import json import requests import subprocess from colorama import init, Fore init(autoreset=True) script_path = os.path.dirname(sys.argv[0]) full_path = os.path.join(script_path, "中文git.exe") exit_code = 0 # 只有不正常退出需要定义 # ---------- 版本定义及更新 ---------- # 定义版本号 VERSION = 'v2.10-pack' # --- 读取配置文件...
29,019
Python
.py
599
30.298831
180
0.501257
DuckDuckStudio/Chinese_git
8
1
6
GPL-2.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,194
中文git-pypi.py
DuckDuckStudio_Chinese_git/中文git-pypi.py
import os import sys import json import requests import subprocess from colorama import init, Fore # ----------- 此代码为PyPi专用,非函数代码请写在main()函数中! ----------- # --- 读取配置文件 --- def fetch_json(): global exit_code config_url = "https://duckduckstudio.github.io/yazicbs.github.io/Tools/chinese_git/files/json/config.js...
29,537
Python
.py
596
30.67953
252
0.501433
DuckDuckStudio/Chinese_git
8
1
6
GPL-2.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,195
中文git更新程序.py
DuckDuckStudio_Chinese_git/中文git更新程序.py
import os import sys import requests import argparse from colorama import init, Fore init(autoreset=True) exit_code = 0 def download_update_file(version): global exit_code # 根据版本确定下载 URL download_url = f'https://github.com/DuckDuckStudio/Chinese_git/releases/download/{version}/Chinese_git.exe' #spare...
2,550
Python
.py
58
32.051724
128
0.606965
DuckDuckStudio/Chinese_git
8
1
6
GPL-2.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,196
中文git_pypi.py
DuckDuckStudio_Chinese_git/ChineseGit/中文git/中文git_pypi.py
import os import sys import json import requests import subprocess from colorama import init, Fore # ----------- 此代码为PyPi专用,非函数代码请写在main()函数中! ----------- # --- 读取配置文件 --- def fetch_json(): global exit_code config_url = "https://duckduckstudio.github.io/yazicbs.github.io/Tools/chinese_git/files/json/config.js...
29,537
Python
.py
596
30.67953
252
0.501433
DuckDuckStudio/Chinese_git
8
1
6
GPL-2.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,197
del_old_files.py
DuckDuckStudio_Chinese_git/.auto_script/del_old_files.py
import os import sys import platform system = platform.system() print(f'[WARN] Test flag: System is {system}') if system == 'Darwin': # macOS 系统文件名 main_exe = '中文git_macos' update_exe = '中文git更新程序_macos' elif system == 'Linux': # Linux 系统文件名 main_exe = '中文git_linux' update_exe = '中文git更新程序_linu...
1,279
Python
.py
39
25.179487
69
0.659049
DuckDuckStudio/Chinese_git
8
1
6
GPL-2.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,198
AutoPack.py
DuckDuckStudio_Chinese_git/AutoPack/AutoPack.py
import os import sys import py7zr import zipfile import shutil import requests import subprocess from colorama import init, Fore # 中文Git发行版自动打包程序 # --- init --- init(autoreset=True)# 颜色显示 script_dir = os.path.dirname(os.path.abspath(sys.argv[0]))# 所在目录 os.chdir(script_dir)# 确保命令执行位置 # ------------ # --- repo config -...
7,875
Python
.py
181
35.872928
127
0.657898
DuckDuckStudio/Chinese_git
8
1
6
GPL-2.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)
2,289,199
AutoPack_CN.py
DuckDuckStudio_Chinese_git/AutoPack/AutoPack_CN.py
import os import sys import py7zr import zipfile import shutil import requests import subprocess from colorama import init, Fore # 中文Git发行版自动打包程序 - CN源码 # 被中文命名骂怕了... # --- 初始化 --- init(autoreset=True)# 颜色显示 脚本位置 = os.path.dirname(os.path.abspath(sys.argv[0]))# 所在目录 os.chdir(脚本位置)# 确保命令执行位置 # ------------ # --- 仓库配置 ...
8,321
Python
.py
182
29.725275
127
0.623826
DuckDuckStudio/Chinese_git
8
1
6
GPL-2.0
9/5/2024, 10:48:34 PM (Europe/Amsterdam)