Judge and score Apple/Android preference strings.
Project description
hcfjudger
hcfjudger 是一个用于给“苹果-安卓”文本串打分并进行比较判断的小型 Python 包。
声明
本项目是一个纯开玩笑的包,目的仅仅是练习正则表达式,仅供娱乐。
安装
pip install hcfjudger
Python 用法
from hcfjudger import HCFJudger, HCFScorer
print(HCFScorer("苹果苹果")) # 0.875
print(HCFJudger("苹果手机>安卓手机")) # True
API
HCFScorer(text: str) -> floatHCFJudger(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
hcfjudger-0.2.0.tar.gz
(2.5 kB
view details)
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.2.0.tar.gz.
File metadata
- Download URL: hcfjudger-0.2.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28c1cb9b7471fd737eae331d6ec58c560f36efbaaa3f6d3871f7aa53caf1ff1f
|
|
| MD5 |
ab388ba244d76256a91e9193c6aa4780
|
|
| BLAKE2b-256 |
7edc577fa9dd4605e90bc3a872dce1ce96d0b1949cfd98d53aa136ed83ba7a80
|
File details
Details for the file hcfjudger-0.2.0-py3-none-any.whl.
File metadata
- Download URL: hcfjudger-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.6 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 |
35d2cb92350736ff3e4d080a2c6c26b971f1f503157d1e874c4a841f253df2b1
|
|
| MD5 |
4d43c4dff91f8b70bede32160ca20ea4
|
|
| BLAKE2b-256 |
0c6320246919ea095b9d60665c46d6e957599dba92c78da49aff66bfdc870261
|