Judge and score Apple/Android preference strings.
Project description
hcfjudger
hcfjudger is a tiny Python package for scoring and comparing Apple/Android preference strings.
hcfjudger 是一个用于给苹果 / 安卓偏好文本打分并进行比较判断的小型 Python 包。
Disclaimer
This package is a joke project for entertainment and demo purposes. It is not intended to represent a serious, factual, or normative evaluation of people, devices, or platforms.
本项目是一个带有玩笑性质的包,仅用于娱乐和演示目的,并不用于对人、设备或平台作出严肃、事实性或规范性的评价。
Install
安装
pip install hcfjudger
Python usage
Python 用法
from hcfjudger import HCFJudger, HCFScorer, judge, score
print(HCFScorer("苹果苹果")) # 0.75
print(score("苹果安卓")) # 0.5
print(HCFJudger("苹果手机>安卓手机")) # True
print(judge("苹果手机>安卓手机")) # True
CLI usage
CLI 用法
hcfjudger score 苹果安卓
hcfjudger judge 苹果手机>安卓手机
API
API 接口
HCFScorer(text: str) -> floatHCFJudger(expression: str) -> boolscore(text: str) -> floatjudge(expression: str) -> bool
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hcfjudger-0.1.0.tar.gz.
File metadata
- Download URL: hcfjudger-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c67aaee7d7a8fa8490592cd200bbd8e82e0867130d21b3ffd680dc88f051d18a
|
|
| MD5 |
3e0e68b29a6fb4d73a361ecb298a8a79
|
|
| BLAKE2b-256 |
52ffdcb27085d1aad5a49ddf40a484458766b60ae7ee48d98706a146667bfef2
|
File details
Details for the file hcfjudger-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hcfjudger-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84903db47ff04d4b610a1dd07e82f9349167d485d6bd64b23e38570b27c517c6
|
|
| MD5 |
fa0d4770718ba91392f25ad193e54d67
|
|
| BLAKE2b-256 |
e5ca1be4efb2180cc19748de1b8ad50a34ef091fe831ae92cee92173c0499967
|