Skip to main content

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
print(HCFJudger("苹果手机大于安卓手机"))    # True

API

  • HCFScorer(text: str) -> float
  • HCFJudger(expression: str) -> bool

CLI 用法

hcfjudger judge "苹果>安卓"
hcfjudger score 安卓苹果
python -m hcfjudger judge "苹果>安卓"

Project details


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.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hcfjudger-0.2.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file hcfjudger-0.2.1.tar.gz.

File metadata

  • Download URL: hcfjudger-0.2.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for hcfjudger-0.2.1.tar.gz
Algorithm Hash digest
SHA256 eb90931912a4649aa44f1614e724707d0be43244c56be0b1ebb311a3304fdf96
MD5 e208fca348bbb9212b79278ebeb12eb8
BLAKE2b-256 b02d7fbb720ba565370d10277da766dc2a2721a2cf2e6b8e15f0175bceba9b60

See more details on using hashes here.

File details

Details for the file hcfjudger-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: hcfjudger-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for hcfjudger-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c2563161af1f3e7c67fe634a26f9e084b9741fd0d7be6210ff7296daabdc57c3
MD5 ff4051f352e1c29b79f797364b74b5ed
BLAKE2b-256 f4ea224a251d42c5fdd2d1363fdab6a12c42bc754db8eedb164653197ee315b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page