diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/404.html b/404.html new file mode 100644 index 00000000..61f1e7cb --- /dev/null +++ b/404.html @@ -0,0 +1,836 @@ + + + +
+ + + + + + + + + + + + + + + + +Modules:
+optim
+ –
+ Classes:
+ + + + + + + + +
Rule
+
+
+
+ Bases: BaseModel
Methods:
+__getitem__
+ –
+ __len__
+ –
+ __or__
+ –
+ __sub__
+ –
+ difference
+ –
+ from_file
+ –
+ geoip
+ –
+ geosite
+ –
+ op
+ –
+ optimize
+ –
+ save
+ –
+ summary
+ –
+ union
+ –
+ Attributes:
+domain
+ (Set
)
+ –
+ domain_keyword
+ (Set
)
+ –
+ domain_regex
+ (Set
)
+ –
+ domain_suffix
+ (Set
)
+ –
+ ip_cidr
+ (Set
)
+ –
+ model_config
+ –
+
domain
+
+
+
+ class-attribute
+ instance-attribute
+
+
+domain: Set = set()
+
domain_keyword
+
+
+
+ class-attribute
+ instance-attribute
+
+
+domain_keyword: Set = set()
+
domain_regex
+
+
+
+ class-attribute
+ instance-attribute
+
+
+domain_regex: Set = set()
+
domain_suffix
+
+
+
+ class-attribute
+ instance-attribute
+
+
+domain_suffix: Set = set()
+
ip_cidr
+
+
+
+ class-attribute
+ instance-attribute
+
+
+ip_cidr: Set = set()
+
model_config
+
+
+
+ class-attribute
+ instance-attribute
+
+
+model_config = ConfigDict(extra='forbid')
+
optimize
+
+
+optimize() -> None
+
RuleSet
+
+
+
+ Bases: BaseModel
Methods:
+ + + + + +Attributes:
+ + + + + +Functions:
+merge_between_suffix
+ –
+ merge_domain_with_keyword
+ –
+ merge_domain_with_suffix
+ –
+ merge_ip_cidr
+ –
+ merge_suffix_with_keyword
+ –
+ remove_unresolvable
+ –
+
merge_between_suffix
+
+
+
merge_domain_with_keyword
+
+
+merge_domain_with_keyword(
+ domain: set[str], domain_keyword: set[str]
+) -> tuple[set[str], set[str]]
+
merge_domain_with_suffix
+
+
+merge_domain_with_suffix(
+ domain: set[str], domain_suffix: set[str]
+) -> tuple[set[str], set[str]]
+
Modules:
+container
+ –
+ logging
+ –
+ source
+ –
+ typing
+ –
+ utils
+ –
+ Classes:
+PresetConfig
+ –
+ Rule
+ –
+ RuleSet
+ –
+ Source
+ –
+ Functions:
+get_rule
+ –
+ get_source
+ –
+ Attributes:
+PRESETS
+ (list[PresetConfig]
)
+ –
+
PRESETS
+
+
+
+ module-attribute
+
+
+PRESETS: list[PresetConfig] = [
+ PresetConfig(
+ "ads",
+ "🛑 ADs",
+ [
+ "blackmatrix7:Advertising",
+ "DustinWin/geosite-all:ads",
+ "MetaCubeX/geosite:*-ads,*-ads-all,*@ads",
+ ],
+ [],
+ ),
+ PresetConfig(
+ "private",
+ "🔒 Private",
+ [
+ "blackmatrix7:Lan,NTPService",
+ "DustinWin/geoip-all:private",
+ "DustinWin/geosite-all:private",
+ "MetaCubeX/geoip:private",
+ "MetaCubeX/geosite:category-ntp*,private",
+ ],
+ ["preset:ads"],
+ ),
+ PresetConfig(
+ "cn",
+ "🇨🇳 CN",
+ [
+ "blackmatrix7:ChinaMax,Direct",
+ "DustinWin/geoip-all:cn",
+ "DustinWin/geosite-all:cn",
+ "liblaf:cn",
+ "MetaCubeX/geoip:cn",
+ "MetaCubeX/geosite:cn,*-cn,*@cn",
+ ],
+ ["liblaf:!cn", "preset:ads", "preset:private"],
+ ),
+ PresetConfig(
+ "proxy",
+ "✈️ Proxy",
+ [
+ "blackmatrix7:Global",
+ "DustinWin/geosite-all:proxy",
+ "MetaCubeX/geosite:*!cn*",
+ ],
+ ["preset:ads", "preset:cn", "preset:private"],
+ ),
+ PresetConfig(
+ "ai",
+ "🤖 AI",
+ [
+ "blackmatrix7:Claude,Copilot,Gemini,OpenAI",
+ "DustinWin/geosite-all:ai",
+ "MetaCubeX/geosite:openai",
+ ],
+ ["preset:ads", "preset:cn", "preset:private"],
+ ),
+ PresetConfig(
+ "download",
+ "☁️ Download",
+ [
+ "blackmatrix7:Download,OneDrive",
+ "MetaCubeX/geosite:onedrive",
+ ],
+ ["preset:ads", "preset:cn", "preset:private"],
+ ),
+ PresetConfig(
+ "emby",
+ "🍟 Emby",
+ ["liblaf:emby", "NotSFC:Emby"],
+ ["preset:ads", "preset:cn", "preset:private"],
+ ),
+ PresetConfig(
+ "media",
+ "📺 Media",
+ [
+ "blackmatrix7:GlobalMedia",
+ "DustinWin/geosite-all:youtube",
+ "MetaCubeX/geosite-lite:proxymedia,youtube",
+ "MetaCubeX/geosite:youtube",
+ ],
+ ["preset:ads", "preset:cn", "preset:private"],
+ ),
+]
+
PresetConfig
+
+
+
Rule
+
+
+
+ Bases: BaseModel
Methods:
+__getitem__
+ –
+ __len__
+ –
+ __or__
+ –
+ __sub__
+ –
+ difference
+ –
+ from_file
+ –
+ geoip
+ –
+ geosite
+ –
+ op
+ –
+ optimize
+ –
+ save
+ –
+ summary
+ –
+ union
+ –
+ Attributes:
+domain
+ (Set
)
+ –
+ domain_keyword
+ (Set
)
+ –
+ domain_regex
+ (Set
)
+ –
+ domain_suffix
+ (Set
)
+ –
+ ip_cidr
+ (Set
)
+ –
+ model_config
+ –
+
domain
+
+
+
+ class-attribute
+ instance-attribute
+
+
+domain: Set = set()
+
domain_keyword
+
+
+
+ class-attribute
+ instance-attribute
+
+
+domain_keyword: Set = set()
+
domain_regex
+
+
+
+ class-attribute
+ instance-attribute
+
+
+domain_regex: Set = set()
+
domain_suffix
+
+
+
+ class-attribute
+ instance-attribute
+
+
+domain_suffix: Set = set()
+
ip_cidr
+
+
+
+ class-attribute
+ instance-attribute
+
+
+ip_cidr: Set = set()
+
model_config
+
+
+
+ class-attribute
+ instance-attribute
+
+
+model_config = ConfigDict(extra='forbid')
+
optimize
+
+
+optimize() -> None
+
RuleSet
+
+
+
+ Bases: BaseModel
Methods:
+ + + + + +Attributes:
+ + + + + +
Source
+
+
+
+ Bases: ABC
Methods:
+ + + + + +Attributes:
+ + + + + +
__init__
+
+
+__init__() -> None
+
Modules:
+preset
+ –
+ Classes:
+ClashClassicalText
+ –
+ GeoIP
+ –
+ GeoSite
+ –
+ Preset
+ –
+ PresetConfig
+ –
+ SingBoxRuleSet
+ –
+ Source
+ –
+ Functions:
+get_rule
+ –
+ get_source
+ –
+ Attributes:
+PRESETS
+ (list[PresetConfig]
)
+ –
+
PRESETS
+
+
+
+ module-attribute
+
+
+PRESETS: list[PresetConfig] = [
+ PresetConfig(
+ "ads",
+ "🛑 ADs",
+ [
+ "blackmatrix7:Advertising",
+ "DustinWin/geosite-all:ads",
+ "MetaCubeX/geosite:*-ads,*-ads-all,*@ads",
+ ],
+ [],
+ ),
+ PresetConfig(
+ "private",
+ "🔒 Private",
+ [
+ "blackmatrix7:Lan,NTPService",
+ "DustinWin/geoip-all:private",
+ "DustinWin/geosite-all:private",
+ "MetaCubeX/geoip:private",
+ "MetaCubeX/geosite:category-ntp*,private",
+ ],
+ ["preset:ads"],
+ ),
+ PresetConfig(
+ "cn",
+ "🇨🇳 CN",
+ [
+ "blackmatrix7:ChinaMax,Direct",
+ "DustinWin/geoip-all:cn",
+ "DustinWin/geosite-all:cn",
+ "liblaf:cn",
+ "MetaCubeX/geoip:cn",
+ "MetaCubeX/geosite:cn,*-cn,*@cn",
+ ],
+ ["liblaf:!cn", "preset:ads", "preset:private"],
+ ),
+ PresetConfig(
+ "proxy",
+ "✈️ Proxy",
+ [
+ "blackmatrix7:Global",
+ "DustinWin/geosite-all:proxy",
+ "MetaCubeX/geosite:*!cn*",
+ ],
+ ["preset:ads", "preset:cn", "preset:private"],
+ ),
+ PresetConfig(
+ "ai",
+ "🤖 AI",
+ [
+ "blackmatrix7:Claude,Copilot,Gemini,OpenAI",
+ "DustinWin/geosite-all:ai",
+ "MetaCubeX/geosite:openai",
+ ],
+ ["preset:ads", "preset:cn", "preset:private"],
+ ),
+ PresetConfig(
+ "download",
+ "☁️ Download",
+ [
+ "blackmatrix7:Download,OneDrive",
+ "MetaCubeX/geosite:onedrive",
+ ],
+ ["preset:ads", "preset:cn", "preset:private"],
+ ),
+ PresetConfig(
+ "emby",
+ "🍟 Emby",
+ ["liblaf:emby", "NotSFC:Emby"],
+ ["preset:ads", "preset:cn", "preset:private"],
+ ),
+ PresetConfig(
+ "media",
+ "📺 Media",
+ [
+ "blackmatrix7:GlobalMedia",
+ "DustinWin/geosite-all:youtube",
+ "MetaCubeX/geosite-lite:proxymedia,youtube",
+ "MetaCubeX/geosite:youtube",
+ ],
+ ["preset:ads", "preset:cn", "preset:private"],
+ ),
+]
+
ClashClassicalText
+
+
+
+ Bases: Source
Methods:
+ + + + + +Attributes:
+ + + + + +
__init__
+
+
+
GeoIP
+
+
+
GeoSite
+
+
+
Preset
+
+
+
+ Bases: Source
Methods:
+ + + + + +Attributes:
+ + + + + +
__init__
+
+
+__init__() -> None
+
PresetConfig
+
+
+
SingBoxRuleSet
+
+
+
+ Bases: Source
Methods:
+ + + + + +Attributes:
+ + + + + +
__init__
+
+
+
Source
+
+
+
+ Bases: ABC
Methods:
+ + + + + +Attributes:
+ + + + + +
__init__
+
+
+__init__() -> None
+
Classes:
+Preset
+ –
+ PresetConfig
+ –
+ Functions:
+get_preset
+ –
+ get_rule
+ –
+ Attributes:
+PRESETS
+ (list[PresetConfig]
)
+ –
+
PRESETS
+
+
+
+ module-attribute
+
+
+PRESETS: list[PresetConfig] = [
+ PresetConfig(
+ "ads",
+ "🛑 ADs",
+ [
+ "blackmatrix7:Advertising",
+ "DustinWin/geosite-all:ads",
+ "MetaCubeX/geosite:*-ads,*-ads-all,*@ads",
+ ],
+ [],
+ ),
+ PresetConfig(
+ "private",
+ "🔒 Private",
+ [
+ "blackmatrix7:Lan,NTPService",
+ "DustinWin/geoip-all:private",
+ "DustinWin/geosite-all:private",
+ "MetaCubeX/geoip:private",
+ "MetaCubeX/geosite:category-ntp*,private",
+ ],
+ ["preset:ads"],
+ ),
+ PresetConfig(
+ "cn",
+ "🇨🇳 CN",
+ [
+ "blackmatrix7:ChinaMax,Direct",
+ "DustinWin/geoip-all:cn",
+ "DustinWin/geosite-all:cn",
+ "liblaf:cn",
+ "MetaCubeX/geoip:cn",
+ "MetaCubeX/geosite:cn,*-cn,*@cn",
+ ],
+ ["liblaf:!cn", "preset:ads", "preset:private"],
+ ),
+ PresetConfig(
+ "proxy",
+ "✈️ Proxy",
+ [
+ "blackmatrix7:Global",
+ "DustinWin/geosite-all:proxy",
+ "MetaCubeX/geosite:*!cn*",
+ ],
+ ["preset:ads", "preset:cn", "preset:private"],
+ ),
+ PresetConfig(
+ "ai",
+ "🤖 AI",
+ [
+ "blackmatrix7:Claude,Copilot,Gemini,OpenAI",
+ "DustinWin/geosite-all:ai",
+ "MetaCubeX/geosite:openai",
+ ],
+ ["preset:ads", "preset:cn", "preset:private"],
+ ),
+ PresetConfig(
+ "download",
+ "☁️ Download",
+ [
+ "blackmatrix7:Download,OneDrive",
+ "MetaCubeX/geosite:onedrive",
+ ],
+ ["preset:ads", "preset:cn", "preset:private"],
+ ),
+ PresetConfig(
+ "emby",
+ "🍟 Emby",
+ ["liblaf:emby", "NotSFC:Emby"],
+ ["preset:ads", "preset:cn", "preset:private"],
+ ),
+ PresetConfig(
+ "media",
+ "📺 Media",
+ [
+ "blackmatrix7:GlobalMedia",
+ "DustinWin/geosite-all:youtube",
+ "MetaCubeX/geosite-lite:proxymedia,youtube",
+ "MetaCubeX/geosite:youtube",
+ ],
+ ["preset:ads", "preset:cn", "preset:private"],
+ ),
+]
+
Preset
+
+
+
+ Bases: Source
Methods:
+ + + + + +Attributes:
+ + + + + +
__init__
+
+
+__init__() -> None
+
PresetConfig
+
+
+
get_preset
+
+
+
+ async
+
+
+Functions:
+as_set
+ –
+ download
+ –
+ split_strip
+ –
+ strip_comments
+ –
+