transFX is a Python package
Project description
transFX
一个简单易用的 Python 数学变换和工具包。
安装
pip install transfx
或者使用 uv:
uv pip install transfx
快速开始
import transfx
# 创建 TransFX 实例
fx = transfx.TransFX()
print(f"版本: {fx.get_version()}")
# 数学运算
print(transfx.add(1, 2, 3)) # 6
print(transfx.sum(10, 20, 30)) # 60
print(transfx.sub(100, 25, 15)) # 60
print(transfx.mul(2, 3, 4)) # 24
print(transfx.div(120, 2, 3)) # 20.0
# 欢迎消息
transfx.hello() # Hello, World! This is from transFX Welcom Package.
功能特性
- 数学运算: 支持加法、减法、乘法、除法运算
- 类型安全: 严格的类型检查和错误处理
- 简单易用: 直观的 API 设计
- 轻量级: 无外部依赖
API 文档
数学函数
add(*args): 计算所有参数的和sum(*args): 计算所有参数的和(与 add 相同)sub(*args): 从第一个参数中依次减去后面的参数mul(*args): 计算所有参数的乘积div(*args): 从第一个参数开始依次除以后面的参数
工具函数
hello(): 显示欢迎消息
主类
TransFX(): 主要的 TransFX 类get_version(): 获取版本信息
许可证
GPL-3.0 License
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
transfx-0.0.4.tar.gz
(16.3 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
transfx-0.0.4-py3-none-any.whl
(16.4 kB
view details)
File details
Details for the file transfx-0.0.4.tar.gz.
File metadata
- Download URL: transfx-0.0.4.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0dd40677458d998619a7d1c7ea5332ea63c18164fd75a4ef16d4bb6ec1c7e7e
|
|
| MD5 |
22eab5a3e6f94cce1d72ad3d0abc59b1
|
|
| BLAKE2b-256 |
841a5aca258f3d22b2c6bf4dd874ff563232e83ebf3e553f30d3a07f407dfc7b
|
File details
Details for the file transfx-0.0.4-py3-none-any.whl.
File metadata
- Download URL: transfx-0.0.4-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e36acee3376d713216e822fea6efac5379058c3939d03b8498892e0f1bfd5fa3
|
|
| MD5 |
ab9d97ed86be17999b9ee09f07c5e069
|
|
| BLAKE2b-256 |
bc0e590deeeaddfc5f8c0542e8c503a3fbde975eb6e01b88cbe2cd8423d424b4
|